LocalSimulationTouched (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
Distinguishing between Touched.
>MrNicNac
Clarifying more.
Line 2: Line 2:
|<onlyinclude>{{Event|name = LocalSimulationTouched
|<onlyinclude>{{Event|name = LocalSimulationTouched
|arguments = [[Instance]] ''part''
|arguments = [[Instance]] ''part''
|description = Fired when another part comes in contact with another object. This event only sends data to the '''client''' that something has been touched, not the server.
|description = Fired when another part comes in contact with another object. This event only sends data to the '''client''' notifying it that two parts have collided, whereas [[Touched]] send data to the server.
|object = BasePart
|object = BasePart
|}}</onlyinclude>
|}}</onlyinclude>

Revision as of 17:24, 21 June 2011

LocalSimulationTouched ( Instance part )
Description Fired when another part comes in contact with another object. This event only sends data to the client notifying it that two parts have collided, whereas Touched send data to the server.
Member of: BasePart
Example
game.Workspace.Part.LocalSimulationTouched:connect(function(p)
  print(p)
end)