|
| 22 Oct 2011 01:37 PM |
| Guys, can somebody make a script that every 2 minutes it says :Wave 1, then next 2 minutes Wave 2 Wave 3 Wave 4 Wave 5 then resets to wave 1 level 2? |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 22 Oct 2011 04:00 PM |
Well, I made one for you. However, if you were making something, such as a CoD zombie-type game, then it would not work, how you asked it to be, as it will just keep going, no matter the condition, unless edited otherwise.
level = 1 wave = 1 while wait() do if wave > 4 then wave = 1 level = level + 1 end local m = Instance.new("Message",Workspace) m.Text = "Wave "..wave.."; Level "..level wait(5) m:remove() wait(12) wave = wave + 1 end
|
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 22 Oct 2011 04:01 PM |
Right..
That is the one that I used for testing, which just had a smaller wait.
Change wait(12) to wait(115)
Or just re-copy, as..
level = 1 wave = 1 while wait() do if wave > 4 then wave = 1 level = level + 1 end local m = Instance.new("Message",Workspace) m.Text = "Wave "..wave.."; Level "..level wait(5) m:remove() wait(115) wave = wave + 1 end
|
|
|
| Report Abuse |
|
|
NBCKing
|
  |
| Joined: 09 Oct 2011 |
| Total Posts: 133 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 22 Oct 2011 04:03 PM |
| You're not being helpful, NBCKing. |
|
|
| Report Abuse |
|
|