‹ All natives
Namespace: ENTITY
API set: server
Language: Luau Improve
entity:clearBucket
Also: player:clearBucket
entity:clearBucket(zone: Zone?)
Gives the bucket back.
Parameters#
- zone (
Zone, optional): with a zone: removes the bucket bound to it. Without: resets the base bucket to 0
Example#
classroom.onExit = function(zone, player)
player:clearBucket(zone)
end
See also#