Touched (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy Fixed |
>Camoy Added example |
||
Line 1: | Line 1: | ||
{| | {| | ||
|<onlyinclude>{{Event|name = Touched | |<onlyinclude>{{Event|name = Touched | ||
|arguments = [[BasePart]] '' | |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> | ||
|} | |} | ||
{{Example|<pre> | |||
game.Workspace.Part.Touched:connect(function(part) | |||
print(part) | |||
end) | |||
</pre>}} |