|
| 04 Apr 2014 10:47 PM |
| I'm making a disaster script. I am having trouble on the 4th-to-last line. It keeps erroring. I want it so it sets a Countdown and goes from IntermissionTime to 0. IntermissionTime = 60. Edit, please. Thank you. |
|
|
| Report Abuse |
|
|
TheJKM98
|
  |
| Joined: 20 Dec 2010 |
| Total Posts: 511 |
|
|
| 04 Apr 2014 10:50 PM |
| Edit? There is nothing TO edit. |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2014 10:50 PM |
oops forgot script
disasters = { "", "", "", "", }
IntermissionTime = 60 DisasterOccurTime = 70
MessageGui = game.Lighting.MessageGui while true do wait(3.5) MessageGui.Parent = game.Players.LocalPlayer.PlayerGui MessageGui.TextLabel.Text = "Round beginning in " ... IntermissionTime ... "!" wait(IntermissionTime) MessageGui.TextLabel.Text = "Disaster occuring! Get to safety! Ending in 10 seconds..." end |
|
|
| Report Abuse |
|
|
yurhomi10
|
  |
| Joined: 10 Dec 2008 |
| Total Posts: 13886 |
|
|
| 04 Apr 2014 10:51 PM |
| I'm not scripting or helping you at all since you talked to us like workmen. YOU do the work. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 04 Apr 2014 10:53 PM |
Snap Burn Crackle Pop Served Fool |
|
|
| Report Abuse |
|
|
| |
|
robocu
|
  |
| Joined: 18 Feb 2009 |
| Total Posts: 210 |
|
| |
|
| |
|
| |
|
| |
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 05 Apr 2014 10:41 PM |
| Ok, I'll help the poor noob :) |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2014 10:45 PM |
You really don't know how to use loops?
i'm asian |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
| |
|
|
| 05 Apr 2014 10:53 PM |
sorry, talking to op
i'm asian |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
| |
|
|
| 06 Apr 2014 09:13 AM |
Two periods to continue a string, not three.
MessageGui.TextLabel.Text = "Round beginning in " .. IntermissionTime .. "!"
**BELOW HERE IS NOT IMPORTANT TO YOUR QUESTION BUT I FELT LIKE PUTTING IT IN FOR SOME REASON**
Three periods are actually used in functions to take multiple arguments:
function f(...) local args = {...} --create a table of the arguments for i, v in ipairs(args) do print(i, v) end end
f(1, 4, 7)
>>1, 1 >>2, 4 >>3, 7 |
|
|
| Report Abuse |
|
|