#Tool Question

1 messages · Page 1 of 1 (latest)

lime beacon
#

Hello all! I have a question regarding how I would do the thing I want to do in my script. Basically, when a player enters a zone, I want to check if they are holding a tool, and if that tool is the part of a config of tools, then something happens. Also, if the player is already in the zone, and equips a tool that is in the config as well, i want something to happen. I want it to work with unequipping the tool as well.

Example:

zone.playerentering:connect(function(player)
if player is holding the correct type of tool, have the thing be visibe
else, if the player equips the right type of tool while still in the zone, have the thing be visibe
but if the player unequips the tool then have the thing go away
zone.playerexiting:Connect(fucntion(player)
have the thing go away

Does this make sense? I will answer any questions