All players see loading screen when someone is teleporting

Hello, I have Issue, my friend wrote this script for teleporters that have a teleport loading screen. When I test teleporters in a test with 2 players. When I test it, other player gets the loading screen too, I used LocalScript, local player-a, and normal Script but that didn’t work. I don’t know why that happens.

Script:

Explorer:ex

1 Like

All of the players in the game are waiting for the .Touched event and they never check if the player touching the teleporter is themselves meaning if any player touches the teleporter they all recieve the touch event and show the GUI.

1 Like

Well I am no expert at lua but it seems you got a issue with the Tweeninfo service your transparencies seem off to me.

1 Like

So I need to create event?

No… In the .Touched event you need to check if the player touching the part is the current player or not. All players are checking for anyone to touch the teleporters but they don’t check who touched the teleporter so they all get the GUI.

4 Likes

Thanks!

1 Like