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()













5 comments

0

please answer :(

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.

0

Thanks dude

0

how would you get all the players guis and then change them?

0

Just clone it into the player (You can find the player from line 11)