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

Why is My Teleportation Not Loading?

I have been trying to use the teleportation service for a while now. The statements below are being run but they aren't teleporting. Please help me understand why.

local TS = game:GetService("TeleportService")

TS:Teleport(4826395697, game.Players:GetPlayers())

1 comment

2 answers

✓ Accepted answer

I've never actually tried using teleport service before, but I think you can do it like this.

local TS = game:GetService("TeleportService")

for i,plr in pairs(game.Players:GetPlayers()) do
	TS:Teleport(4826395697,plr)
end

What this does is it loops through all the players, and it teleports each one.

1 comment

0

Thank you so much!

teleporting everyone:



local TS = game:GetService("TeleportService")

for i = 1, #game.Players:GetChildren() do
TS:Teleport(4826395697, game.Players:GetChildren[i])
end

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