Touched (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
Brackets
>Camoy
formatted
Line 1: Line 1:
{|
<onlyinclude>{{Event
|<onlyinclude>{{Event|name = Touched
|name = Touched
|arguments = [[BasePart]] ''part''
|arguments = [[BasePart]] ''part''
|description = Fired when another part comes in contact with this object.
|description = Fired when another part comes in contact with this object.
|object = BasePart
|object = BasePart
|}}</onlyinclude>
}}</onlyinclude>
|}
 
{{clear floats}}
 
{{Example|<pre>
{{Example|<pre>
game.Workspace.Part.Touched:connect(function(part)
game.Workspace.Part.Touched:connect(function(part)
Line 11: Line 13:
end)
end)
</pre>}}
</pre>}}
[[Category:Events]]

Revision as of 15:14, 27 January 2011

Touched ( BasePart part )
Description Fired when another part comes in contact with this object.
Member of: BasePart


Example
game.Workspace.Part.Touched:connect(function(part)
  print(part)
end)