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: Is there a simpler way to do this?

Previous Thread :: Next Thread 
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:02 PM
[ Content Deleted ]
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:03 PM
[ Content Deleted ]
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
22 Sep 2013 03:03 PM
for i = 500, 1, -1 do
hint.Text = "Time remaining: "..i
wait(1)
end
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:04 PM
[ Content Deleted ]
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
22 Sep 2013 03:05 PM
Hint = Instance.new("Hint",Workspace)
for i = 500,1,-1 do
Hint.Text = tostring(i)
wait(1)
end
Hint:Destroy()
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:06 PM
[ Content Deleted ]
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:07 PM
[ Content Deleted ]
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
22 Sep 2013 03:09 PM
... wat
They should work...
Report Abuse
Saviorofdragons is not online. Saviorofdragons
Joined: 10 Jan 2013
Total Posts: 489
22 Sep 2013 03:10 PM
local timer=500
Game.Workspace.Hint.Text="Time Remaining:"..timer
while wait(1) do
timer=timer-1
Game.Workspace.Hint.Text="Time Remaining"..timer
end

Since the for loops didn't work try this. It's a bit more lengthy though.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
22 Sep 2013 03:11 PM
@Jack,
Both of them work (as long as you 'define' hint in Voidion's).
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:12 PM
[ Content Deleted ]
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
22 Sep 2013 03:12 PM
You forgot to use "tostring()".
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:14 PM
[ Content Deleted ]
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
22 Sep 2013 03:14 PM
Saviors never stops.
tostring isn`t needed in this case.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
22 Sep 2013 03:14 PM
@Dennis,
It would work with or without the use of 'tostring()'.
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
22 Sep 2013 03:15 PM
Oh, and new instances of hints are named "Message".
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
22 Sep 2013 03:16 PM
`Cept in his he didn`t Instance a new one.
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
22 Sep 2013 03:17 PM
hint = Instance.new("Hint", workspace)
for i = 500, 1, -1 do
wait(1)
hint.Text = "Time remaining: " ..tostring(i)
end
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:18 PM
[ Content Deleted ]
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
22 Sep 2013 03:18 PM
Yes he did... I can read it with my own two eyeballs.

Also, the wiki indicates that the Text property of hints uses a string.
http://wiki.roblox.com/index.php/Text_(Property)
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
22 Sep 2013 03:21 PM
for i = 500, 0, -1 do
local Hint = Workspace:FindFirstChild("Countdown") or Instance.new("Hint", Workspace)
Hint.Name = "Countdown"
Hint.Text = "Time remaining: "..i
wait(1)
end
Hint:Destroy()
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
22 Sep 2013 03:22 PM
Don`t use Saviors, That loop never ends.
Hints can use numbers to.
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:23 PM
[ Content Deleted ]
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
22 Sep 2013 03:24 PM
I don't get how this can be so complicated. The first script I posted should work just fine.
Report Abuse
Jack0414 is not online. Jack0414
Joined: 07 Feb 2012
Total Posts: 21721
22 Sep 2013 03:24 PM
[ Content Deleted ]
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