Touched runs for all players even when it's in a local script?
Asked by
7 years ago Edited 7 years ago
I have a teleporting script and a part that detects if it got touched by a player and teleports the player that touched it. But it's not working as it's supposed to. It's teleporting ALL players. Even players that hasn't even touched it.
The script looks something like this but it's not the real script.
1 | part.Touched:Connect( function (p) |
3 | local plr = game.Players:GetPlayerFromCharacter(p.Parent) |
6 | player.Character.Humanoid.Torso.CFrame = CFrame.new( 206.25 , - 159.5 , - 1833 ) |