I have this script that relies on the TouchEnded event to sign people out of a system in the game, but when they a equip or unequip a tool, the TouchEnded event fires.
block.TouchEnded:Connect(function(obj)
if obj == player.Character.HumanoidRootPart then
print("Touch ended")
end
end)
also it’s a local part if that affects anything
1 Like
TouchEnded isn’t really a reliable Event to use for Touch tbh.
Can you add more detail to what you are trying to do so we can think of a better way to script this?
it’s for a register system for my cafe, I have a local part the size of the kitchen area to detect when they’re in or out of the kitchen, so when they stop touching the part, it logs them off of their register if they’re logged into one
Ok, use Region3
That should fix your problem
Alternatively you can use Magnitude and check the Distance too
3 Likes