Why does it teleport players who have not touched the object?
01 | local boat = game.Workspace.movingboat.MovingModel |
02 | local TeleportService = game:GetService( "TeleportService" ) |
03 | local code = TeleportService:ReserveServer( 6597645798 ) |
05 | local placeId = 6597645798 |
07 | local function onPartTouch(otherPart) |
08 | local player = game.Players:GetPlayerFromCharacter(otherPart.Parent) |
09 | local players = game.Players:GetChildren() |
12 | TeleportService:TeleportToPrivateServer(placeId, code, players) |
15 | script.Parent.Touched:Connect(onPartTouch) |
Help, lol. It seems if there is 4 people in the server, it will teleport all the players even if they have not touched the desired part.