Fight4money is here again! I yet again have a question about my to-be popular game called BLOX Halloween. Here it is: http://web.roblox.com/BLOX-Halloween-place?id=178897794 So, i want to add an if statement in the MainGameScript. So, i have a round in which there are players and a pathfinding ghoul in the map. I want it so when the players have all died, a gui would pop up saying that the ghoul won (i have the GUI) If there are still players left after the time limit, gui to pop up saying that the players won (i have this GUI too) This the snippet of code for that round, please say what I should add ti it to do this:
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()
THE GAME WORKS I just need an if statement as said above.
Closed as Not Constructive by M39a9am3R, Perci1, and TheeDeathCaster
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?