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
 

Grrr. Countdown help

Previous Thread :: Next Thread 
blueknight02 is not online. blueknight02
Joined: 30 Sep 2009
Total Posts: 20447
05 Aug 2011 12:23 AM
How would I make the messages come up?

And yes, I know random is not defined yet.

--Script made by blueknight02

wait(20)
h = Instance.new("Hint")
h.Parent = workspace



h.Text ="The game will now begin in 20 seconds"
wait(1)
h.Text ="The game will now begin in 19 seconds"
wait(1)
h.Text ="The game will now begin in 18 seconds"
wait(1)
h.Text ="The game will now begin in 17 seconds"
wait(1)
h.Text ="The game will now begin in 16 seconds"
wait(1)
h.Text ="The game will now begin in 15 seconds"
wait(1)
h.Text ="The game will now begin in 14 seconds"
wait(1)
h.Text ="The game will now begin in 13 seconds"
wait(1)
h.Text ="The game will now begin in 12 seconds"
wait(1)
h.Text ="The game will now begin in 11 seconds"
wait(1)
h.Text ="The game will now begin in 10 seconds"
wait(1)
h.Text ="The game will now begin in 9 seconds"
wait(1)
h.Text ="The game will now begin in 8 seconds"
wait(1)
h.Text ="The game will now begin in 7 seconds"
wait(1)
h.Text ="The game will now begin in 6 seconds"
wait(1)
h.Text ="The game will now begin in 5 seconds"
wait(1)
h.Text ="The game will now begin in 4 seconds"
wait(1)
h.Text ="The game will now begin in 3 seconds"
wait(1)
h.Text ="The game will now begin in 2 seconds"
wait(1)
h.Text ="The game will now begin in 1 seconds"
wait(1)
h.Text ="The game will now begin."
wait(1)
h.Text ="Map being selected..."
wait(1)
h.Text ="The map" ..random.." has been picked!"
wait(1)
h:Remove()
end


--------------------------------[Output]----------------------------------------


Fri Aug 05 01:19:34 2011 - Running Script "Workspace.Script"
Fri Aug 05 01:19:34 2011 - Workspace.Script:57: 'eof' expected near 'end'
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
05 Aug 2011 12:25 AM
The end at the bottom is the problem. Get rid of it.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
05 Aug 2011 12:27 AM
I'm going to make this more efficient...

wait(20)
h = Instance.new("Hint")
h.Parent = workspace

for i = 20, 1, -1 do
h.Text = "The game will now begin in " .. i .. " seconds"
wait(1)
end

h.Text ="The game will now begin."
wait(1)
h.Text ="Map being selected..."
wait(1)
h.Text ="The map" ..random.." has been picked!"
wait(1)
h:Remove()
Report Abuse
blueknight02 is not online. blueknight02
Joined: 30 Sep 2009
Total Posts: 20447
05 Aug 2011 12:28 AM
Oh, thanks.

For some reason, I thought I was trying to make some other function.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
05 Aug 2011 12:28 AM
No problem. :P
Report Abuse
blueknight02 is not online. blueknight02
Joined: 30 Sep 2009
Total Posts: 20447
05 Aug 2011 12:29 AM
@Electric, I tried to create the loop but for some reason it wouldn't work. I didn't really want to do it the way I showed previously, thank you alot. :)
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
05 Aug 2011 12:30 AM
No problem. :)
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