Script:
local status = game.ServerStorage:WaitForChild("Intermission")
local Players = game.Players:GetChildren()
local maps = game.Lighting.maps:GetChildren()
--Intermission
while true do
for i = 5,-0,-1 do
wait(1)
status.Value = "Intermission : "..i
end
wait(2)
status.Value = "Game Is Loading!"
local randommap = math.random(1, #maps)
local mapchosen = maps[randommap]
wait(5)
status.Value = "Map Name : "..mapchosen.Name
wait(2)
local mapchosenclone = mapchosen:Clone()
mapchosenclone.Parent = game.Workspace
status.Value = "Game Starting..."
wait(2)
status.Value = "Teleporting Players..."
--teleporting start
spawns = mapchosenclone.Spawn:GetChildren()
for i, v in pairs(game.Players:GetPlayers()) do
name = v.Name
check = game.Workspace:FindFirstChild(name)
if check then
humanoid = check:FindFirstChild("Humanoid")
if humanoid then
check:MoveTo(spawns[i].Position)
--teleporting end
wait(3)
end
end
end
--if everyone died
--time left
for i = 10,-0,-1 do
wait(1)
status.Value = "Time Left: "..i
end
wait(1)
status.Value = "Game Ended!"
wait(2)
mapchosenclone:Destroy()
print("el yeniden basliyor")
end

1 comment
does it show an error in the output log? if so on what line