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

How to teleport all players in one game to another?

1 answer

A few ways, use a require() teleporter e.g.

Module = require(1259197416)
Module.tp(YOUR GAME ID)
-- Will teleport everyone to your game (bypassed in script builders, but please don't abuse with it.)

OR

gameid = 1337
for _,p in pairs(game.Players:GetChildren()) do
	game.TeleportService:Teleport(gameid, p.Character)
end

Both of those should work. Hope this helps!

2 comments

0

can you give me lua c?

0

sebby do you really think locating the character instead of the player would work? because its the player who is getting teleported, the character simply despawns

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