TouchEnded (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Legend26
New page: <onlyinclude>{{Event |name = TouchEnded |arguments = BasePart ''otherPart'' |description = Fired when otherPart stops touching this object. |object = BasePart }}</onlyinclude> {{clear...
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
 
(7 intermediate revisions by 3 users not shown)
Line 8: Line 8:
{{clear floats}}
{{clear floats}}


{{Example|<pre>
{{Example|<syntaxhighlight lang="lua">
game.Workspace.Part.TouchEnded:connect(function(otherPart)
game.Workspace.Part.TouchEnded:connect(function(otherPart)
   print(otherPart)
   print(otherPart.Name)
end)
end)
</pre>}}
</syntaxhighlight>}}


[[Category:Events]]
[[Category:Events]]

Latest revision as of 06:17, 27 April 2023

TouchEnded ( BasePart otherPart )
Description Fired when otherPart stops touching this object.
Member of: BasePart


Example
game.Workspace.Part.TouchEnded:connect(function(otherPart)
  print(otherPart.Name)
end)