Hi. I have some goalkeeper tools and i want them to only work when they are in a specific area. How would i do this?
1 Like
Well, you can use magnitude or Region3 for this, however Region3 isn’t recommended anymore, so it detects when the Player has reached a certain area.
Then you can either delete the tool they have or just disable the tool script via another script. [ Whenever they leave the area ]
Hope this helped and it is how I would go about doing it.
2 Likes
Region3 is fine, here’s the function you’ll need to get the parts within some Region3 value:
https://developer.roblox.com/en-us/api-reference/function/WorldRoot/FindPartsInRegion3
Then you can use the following function to unequip the tools every task.wait() or whatever length of time:
https://developer.roblox.com/en-us/api-reference/function/Humanoid/UnequipTools
1 Like