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

A Round In My Game? (on my real account)

Asked by 10 years ago

I am fight4money. I created a halloween game called "Blox Halloween", on my real account Here it is: http://www.roblox.com/BLOX-Halloween-place?id=178897794 So, in the game, i have rounds. When the script ends, i want it to repeat. I put in a repeat, but will it work? Here is the script, and everything works, just look at the end at the repeat:?

game.StarterGui.GameaGUIs.StatusTitle.Text = "Intermission"
wait (10)
game.StarterGui.GameaGUIs.StatusTitle.Text = "Game Chosen: Survive The Ghoul!"
wait (2)
game.Lighting.GhoulMap:clone().Parent = game.Workspace
wait (5)
target = CFrame.new(897, 755, -50)

wait(2)

for i, player in ipairs(game.Players:GetChildren()) do
    player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
end
game.Lighting.GlobalShadows = true
game.Lighting.TimeOfDay = "00:00:00"
wait (200)
game.Workspace.GhoulMap:Destroy()
game.StarterGui.GameaGUIs.StatusTitle.Text = "Intermission"
wait (10)
game.StarterGui.GameaGUIs.StatusTitle.Text = "Game Chosen: Zombie Mission!"
game.Lighting.ZombieMission:clone().Parent = game.Workspace
game.Lighting.GlobalShadows = false
game.Lighting.TimeOfDay = "14:00:00"
target = CFrame.new(1267, 746, -2270)

wait(2)

for i, player in ipairs(game.Players:GetChildren()) do
    player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
end
wait (100)
game.Workspace.ZombieMission:Destroy()
game.StarterGui.GameaGUIs.StatusTitle.Text = "Intermission"
wait (10)
game.Lighting.GhostFight:Clone().Parent = game.Workspace
wait (1)
game.StarterGui.GameaGUIs.StatusTitle.Text = "Game Chosen: Skeleton Fight!"
wait (5)

target = CFrame.new(999, 2053, -3173)

wait(2)

for i, player in ipairs(game.Players:GetChildren()) do
    player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
end
game.Workspace.GhostFight:Destroy()
repeat 

until game.Workspace.GhostFight:Destroy()













0
please answer :( fight4money -2 — 10y
1
Just put the entire thing in a while loop if you want it to keep on running. Also, remember to change GUIs in a player's PlayerGui, because the PlayerGui is what they are currently seeing. Perci1 4988 — 10y
0
Thanks dude fight4money -2 — 10y
0
how would you get all the players guis and then change them? fight4money -2 — 10y
0
Just clone it into the player (You can find the player from line 11) Mystdar 352 — 10y

Answer this question