Is it possible to detect when a player gets of a part by means of jumping, walking off, etc?
✓ ANSWER ACCEPTED
Is it possible to detect when a part is walked off of?
1 answer
✓ Accepted answer
Use the Touched event in conjunction with the TouchEnded event:
local part = game.Workspace.Part
part.Touched:connect(function(hit)
print(hit.Name.. " is touching ".. part.Name)
part.TouchEnded:wait()
print(hit.Name.. " is no longer touching ".. part.Name)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thank you.