Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is My Teleportation Not Loading?

Asked by
ruwuhi 23
4 years ago

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())

2 answers

Log in to vote
0
Answered by 4 years ago

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.

0
Thank you so much! ruwuhi 23 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

teleporting everyone:



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

Answer this question