Here ya go!
try to use:
local rStorage = game:GetService("ReplicatedStorage")
local configs = rStorage:WaitForChild("Configs")
while true do
repeat
local timer = 10
repeat wait()
configs.Status.Value = "Intermission: ".. timer
wait(1)
timer = timer - 1
until configs.Status.Value == "Intermission: 0"
timer = 0
until configs.Status.Value == "Intermission: 0"
configs.Status.Value = "Loading... "
--Teleport all players to a place
wait(5)
local id = "" --- your id here
local players = game:GetPlayers()
local TpService = game:GetService("TeleportService")
TpService:Teleport(id,players)
end
Also if you want custom teleport gui, you can use:
local rStorage = game:GetService("ReplicatedStorage")
local configs = rStorage:WaitForChild("Configs")
local loadGUI = rStorage:FindFirstChild("loadGUI") -- you could swap this ScreenGUI
while true do
repeat
local timer = 10
repeat wait()
configs.Status.Value = "Intermission: ".. timer
wait(1)
timer = timer - 1
until configs.Status.Value == "Intermission: 0"
timer = 0
until configs.Status.Value == "Intermission: 0"
configs.Status.Value = "Loading... "
--Teleport all players to a place
wait(5)
local id = "" --- your id here
local players = game:GetPlayers()
local TpService = game:GetService("TeleportService")
local playerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
loadGUI.Parent = playerGUI
TpService:SetTeleportGui(loadGUI)
TpService:Teleport(id,players)
end