Is there a script which can automatically teleport players from the lobby to a map and from the map back to the lobby but like, every 5 minutes or so.
Yes. Here is a quick one.
time = 60 * 5 -- 5 Mins players = game.Players:GetChildren() while true do for i = 1, #players do wait(time) players[i].Character:MoveTo(Vector3.new(pos1,pos2,pos3)) wait(time) players[i].Character:MoveTo(Vector3.new(pos1,pos2,pos3)) end end
local Time = 60 * 5 -- 5 Minutes local LobbyCFrame = CFrame.new(0, 0, 0) local MapCFrame = CFrame.new(0, 0, 0) local InLobby = true while wait() do wait(Time) if InLobby == true then for i,v in pairs (game.Players:GetPlayers()) do if v.Character:FindFirstChild("Torso") then v.Character.Torso.CFrame = MapCFrame end end wait(Time) InLobby = false elseif InLobby == false then for i,v in pairs (game.Players:GetPlayers()) do if v.Character:FindFirstChild("Torso") then v.Character.Torso.CFrame = LobbyCFrame end end wait(Time) InLobby = true end end