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

How can I CFrame players in different place everyone 300 seconds?

So I tried to CFrame Players in different places before but they all the players teleports in the same place can anyone help me out? Like in Mad Games it teleports players in different places like in a room and one players teleport to a hallway so can anyone help me out?

Thanks to all the helpers!

1 answer

✓ Accepted answer

What happens in mad games to my knowledge is that there are invisible parts around the map that the tp script marks as a spawn. Then the tp script gathers all the players and tps them all randomly to the spawns.

-- the spawns would be in here
local spawns = {workspace.Spawn1, workspace.Spawn2}

for i, v in pairs(game.Players:GetPlayers()) do
	v.Character.Torso.CFrame = (spawns[math.random(#spawns)]).CFrame*CFrame.new(0,3,0)
end


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