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 » Game Design
Home Search
 

Re: Hint Timer

Previous Thread :: Next Thread 
cherrypepsi is not online. cherrypepsi
Joined: 06 Apr 2008
Total Posts: 13
10 Dec 2014 01:37 PM
Hi everyone -

I've started to learn the LUA language and I need some help.
I'm attempting to create a hint timer, where it counts down from 15 in seconds.
I have a basic idea of what to do but not sure how to put to it together

Thanks in advance!
Report Abuse
cherrypepsi is not online. cherrypepsi
Joined: 06 Apr 2008
Total Posts: 13
10 Dec 2014 06:10 PM
To clarify...

Just a simple Hint at the top of the screen.
Hint = Instance.new("Hint")
Hint.Text = "Loading..."
Hint.Parent = workspace

All I need it to do is countdown 15 seconds.
Example: "15 seconds until the next round"


Report Abuse
Superwarrior360 is not online. Superwarrior360
Joined: 21 Feb 2013
Total Posts: 2703
10 Dec 2014 06:46 PM
Hint = Instance.new("Hint")
Hint.Text = "Loading..."
Hint.Parent = workspace
Hint.Text = "15 seconds left"
Hint.Text = "14 seconds left"
Hint.Text = "13 seconds left"
Hint.Text = "12 seconds left"
Hint.Text = "11 seconds left"
Hint.Text = "10 seconds left"
Hint.Text = "9 seconds left"
Well, you should get the idea.
Report Abuse
cherrypepsi is not online. cherrypepsi
Joined: 06 Apr 2008
Total Posts: 13
10 Dec 2014 06:50 PM
I knew this was a possible option.
But there is a simpler way to do this using a loop.
However I don't know how to do so.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
10 Dec 2014 06:54 PM
for i = 15,1,-1 do
Hint.Text = i.. " seconds left"
wait(1)
end

The third number is the number the loop counts by, so it goes from 15 to 1 subtracting 1 each time.
Report Abuse
cherrypepsi is not online. cherrypepsi
Joined: 06 Apr 2008
Total Posts: 13
10 Dec 2014 06:55 PM
Thank you! I've been trying to get this to work!
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
10 Dec 2014 08:05 PM
Np
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
10 Dec 2014 08:06 PM
nearly cried when someone suggested that huge block of code
wiki.roblox.com/index.php?title=Writing_Clean_Code
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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