|
| 10 Mar 2013 06:52 PM |
local easy = game.Lighting.Easy:Clone() local med = game.Lighting.Med:Clone() local hard = game.Lighting.Hard:Clone() local extreme = game.Lighting.xtreme:Clone() local h = Instance.new("Hint", Workspace) local check = math.random(1,50) local victory = game.Workspace.RoundOver
while true do
if check <= 10 then h.Text = "A easy horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil easy:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() easy:Destroy() else if check <= 20 and >10 then h.Text = "A medium horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil med:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() med:Destroy() end else if check <= 40 and >30 then h.Text = "A hard horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil hard:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() hard:Destroy() end else if check <= 50 and >40 then h.Text = "Wait.. Whats going on here!" wait(3) h.Text = "The sky is going red!" game.Lighting.Ambient = Color3.new(255,0,0) game.Lighting.FogEnd = 400 wait(3) h.Text = "Whats happening.. WAIT ZOMBIES!" h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil extreme:Clone().Parent = game.Workspace wait(60) h.Text = "I think we survived!!" game.Lighting.Ambient = Color3.new(127,127,127) game.Lighting.FogEnd = 1000 wait(2) victory:Play() wait(2) victory:Pause() extreme:Destroy() end
I don't know how to fix it, this is the output
line 26: 'end' expected (to close 'while' at line 10) near 'else' Error: line 27: unexpected symbol near '>'
~«stealing shopping carts since the 1930's»~ |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 07:06 PM |
bump
~«stealing shopping carts since the 1930's»~ |
|
|
| Report Abuse |
|
|
MrTechn0
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1252 |
|
|
| 10 Mar 2013 07:09 PM |
| can you give us any type of errors our anything? |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 07:10 PM |
line 26: 'end' expected (to close 'while' at line 10) near 'else' Error: line 27: unexpected symbol near '>'
~«stealing shopping carts since the 1930's»~ |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 07:12 PM |
You ended the if statement, before all of the elseifs. I'll try fixing it in a second.
¤ ¤ † K M <( •д• )> X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 07:14 PM |
local easy = game.Lighting.Easy:Clone() local med = game.Lighting.Med:Clone() local hard = game.Lighting.Hard:Clone() local extreme = game.Lighting.xtreme:Clone() local h = Instance.new("Hint", Workspace) local check = math.random(1,50) local victory = game.Workspace.RoundOver while true do if check <= 10 then h.Text = "A easy horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil easy:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() easy:Destroy() elseif check <= 20 and > 10 then h.Text = "A medium horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil med:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() med:Destroy() elseif check <= 40 and > 30 then h.Text = "A hard horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil hard:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() hard:Destroy() elseif check <= 50 and >40 then h.Text = "Wait.. Whats going on here!" wait(3) h.Text = "The sky is going red!" game.Lighting.Ambient = Color3.new(255/255,0,0) game.Lighting.FogEnd = 400 wait(3) h.Text = "Whats happening.. WAIT ZOMBIES!" h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil extreme:Clone().Parent = game.Workspace wait(60) h.Text = "I think we survived!!" game.Lighting.Ambient = Color3.new(127/255,127/255,127/255) game.Lighting.FogEnd = 1000 wait(2) victory:Play() wait(2) victory:Pause() extreme:Destroy() end end
¤ ¤ † K M <( •д• )> X D † ¤ ¤
|
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 07:17 PM |
easy:Destroy()
is now underlined
~«stealing shopping carts since the 1930's»~ |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 07:20 PM |
local easy = game.Lighting.Easy:Clone() local med = game.Lighting.Med:Clone() local hard = game.Lighting.Hard:Clone() local extreme = game.Lighting.xtreme:Clone() local h = Instance.new("Hint", Workspace) local check = math.random(1,50) local victory = game.Workspace.RoundOver while true do if check >= 10 then h.Text = "A easy horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil easy:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() easy:Destroy() elseif check <= 20 and check >= 10 then h.Text = "A medium horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil med:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() med:Destroy() elseif check <= 40 and check >= 30 then h.Text = "A hard horde of zombies have been spotted!" wait(3) h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil hard:Clone().Parent = game.Workspace wait(60) h.Text = "The zombies are leaving!" wait(2) victory:Play() wait(2) victory:Pause() hard:Destroy() elseif check <= 50 and check >= 40 then h.Text = "Wait.. Whats going on here!" wait(3) h.Text = "The sky is going red!" game.Lighting.Ambient = Color3.new(255/255,0,0) game.Lighting.FogEnd = 400 wait(3) h.Text = "Whats happening.. WAIT ZOMBIES!" h.Text = "You have 60 seconds to fight them off!" wait(3) h.Text = nil extreme:Clone().Parent = game.Workspace wait(60) h.Text = "I think we survived!!" game.Lighting.Ambient = Color3.new(127/255,127/255,127/255) game.Lighting.FogEnd = 1000 wait(2) victory:Play() wait(2) victory:Pause() extreme:Destroy() end end |
|
|
| Report Abuse |
|
|