Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I Made a minigame script but its not working anyone can help?

Asked by 6 years ago
Edited 6 years ago

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
0
does it show an error in the output log? if so on what line rennoc100 -4 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

No its doesnt gives any error

Ad

Answer this question