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

Could a local script detect if a part touched something?

Asked by 3 years ago

Hello, thanks for your coming. My question is could a local script detect if a part touched something in the map or I have to use a remote event in order to do that?

1 answer

Log in to vote
0
Answered by 3 years ago

Local scripts cannot understand touched events. This is because anyone can touch the part, not just the local player. However, for example, in guis, since they get replicated to the player's PlayerGui, ONLY the local player can use the gui replicated to them. Hence, the best way to do this is a RemoteEvent

Ad

Answer this question