Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i stop click teleport from teleporting everyone in the game?

Screenshot I'm using a click teleport script just because it more accurate than a touch teleport-er but I've ran into a problem. Everyone in the game gets teleported instead of just the player that clicked. I've tried many things to fix this but nothing so far has worked, can anyone give me some insight to what i should do?

2 comments

0

image failed to load at least for me

0

Image failed to load for some reason.

1 answer

✓ Accepted answer

It's obviously because you are iterating through all the players by using game.Players:GetChildren(). MouseClick passes one parameter, which is the player that clicked on the ClickDetector. If you use that parameter and not the entire load of players in-game, it should fix your problem.

1 comment

0

Thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.