Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I create a script that performs a function after the player stops touching a part?

Asked by
Zusik 5
10 years ago

The title pretty much explains it. How do I make a script that performs a function after a player stops touching a certain part?

1 answer

Log in to vote
0
Answered by 10 years ago

You would use this event http://wiki.roblox.com/index.php?title=API:Class/BasePart/TouchEnded

Workspace.Part.TouchEnded:connect(function(otherPart)
  print(otherPart)
end)
Ad

Answer this question