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

[Answered] How do i detect a Local Part being touched?

Asked by
PastDays 108
4 years ago
Edited 4 years ago

So if a part is server side detecting a touch is very easy by doing:

 .Touched:Connect

But how do i do the same thing with a local part, If you put this in a local script it does nothing so is it possible?

1
For starters, LocalScripts will not run in the Workspace, so putting one in a part isn't going to get you anywhere. The LocalScript would have to be somewhere it can run (like the player) and the part would have to be accessed by accessing it as a child (or descendant) of Workspace instead of being the script's Parent. DeceptiveCaster 3761 — 4y
0
um u do the same thing with a local part but a local script instead Gameplayer365247v2 1055 — 4y
0
RobloxWhizYT I know putting a local script in workspace won't do anything that's why i said that, I don't quite understand what you are telling me to do. PastDays 108 — 4y
0
Oh i see you mean have the local script in a place like StarterGui and run it from there, I'll give that a go sounds like it should work though. PastDays 108 — 4y
0
Ok that worked perfectly, I can't believe i didn't think of that thank you. PastDays 108 — 4y

Answer this question