generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: DisasterScript

Previous Thread :: Next Thread 
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
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 is not online. TheJKM98
Joined: 20 Dec 2010
Total Posts: 511
04 Apr 2014 10:50 PM
Edit? There is nothing TO edit.
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
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 is not online. 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 is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
04 Apr 2014 10:53 PM
Snap
Burn
Crackle
Pop
Served
Fool
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
04 Apr 2014 10:57 PM
Please
Report Abuse
robocu is not online. robocu
Joined: 18 Feb 2009
Total Posts: 210
04 Apr 2014 10:58 PM
omfgomfogmfogmfg
-=Robo=-
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
04 Apr 2014 11:00 PM
we're not scripting maids
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
04 Apr 2014 11:04 PM
Please :(
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
04 Apr 2014 11:11 PM
:(
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
05 Apr 2014 10:41 PM
Ok, I'll help the poor noob :)
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
05 Apr 2014 10:45 PM
You really don't know how to use loops?

i'm asian
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
05 Apr 2014 10:52 PM
Me?
yes
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
05 Apr 2014 10:53 PM
sorry, talking to op

i'm asian
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
06 Apr 2014 09:00 AM
ohkydohky
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image