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: how can i make it where to do a countdown

Previous Thread :: Next Thread 
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 02:52 PM
i try'd this which i know was not going to work...

local button = script.Parent
local num = 300

local i = num == -1

button.Text = "Wait ("..i.."'s)"

OT: Join this group to get Snipes on Limiteds from our members or sell snipes! http://www.roblox.com/My/Groups.aspx?gid=737295
Report Abuse
MrTucan1996 is not online. MrTucan1996
Joined: 19 Aug 2009
Total Posts: 5994
04 Jul 2014 02:53 PM
repeat
for i = 300,0, -1 do
script.Parent.Text = "Intermission in" ..i
until i == 0
Report Abuse
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
04 Jul 2014 02:53 PM
easy

timee = 120

for i = timee,0,-1 do
local Min = math.floor(i/60)
local Sec = i-(60*Min)
h.Value= Min..":"..(Sec<10 and "0" or "")..Sec
wait(1)
end
Report Abuse
ohno1112 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
04 Jul 2014 02:54 PM
local button = script.Parent
local num = 300
for i = 1, 300 do
button.Text = "Wait"..num-1.."'s"
num = num - 1
wait(1)
end
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:15 PM
@mr

try'd yours, didn't work

repeat
            for i = 300,0, -1 do
                script.Parent.Text = "Wait (" ..i.. "'s)"
                scrip.Parent.Disabled = true
            end
        until i == 0
Report Abuse
FizBloxx is not online. FizBloxx
Joined: 18 Jan 2014
Total Posts: 95
04 Jul 2014 03:17 PM
countdownTime = 30

for i = countdownTime, 1, -1 do
wait(1)
end
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:21 PM
nope ^

can someone make one where is does the countdown from 300 seconds and has it where it shows as text
Report Abuse
FizBloxx is not online. FizBloxx
Joined: 18 Jan 2014
Total Posts: 95
04 Jul 2014 03:22 PM
countdownTime = 300

for i = countdownTime, 1, -1 do
local hint = Instance.new("Hint",game.Workspace) --Hint or whatever
hint.Name = "CountdownHint"
hint.Text = "Game will begin in " ..i --Or whatever
wait(1)
end
Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
04 Jul 2014 03:25 PM
local countdownTime = 300
local hint = Instance.new("Hint",game.Workspace)
hint.Name = "CountdownHint"

for i = countdownTime, 1, -1 do
hint.Text = "Game will begin in " ..i
wait(1)
end

hint:Destroy()
--Does not instantiate "hint" each iteration
Report Abuse
FizBloxx is not online. FizBloxx
Joined: 18 Jan 2014
Total Posts: 95
04 Jul 2014 03:26 PM
Well, maybe he knows how to do it xD
Report Abuse
FizBloxx is not online. FizBloxx
Joined: 18 Jan 2014
Total Posts: 95
04 Jul 2014 03:27 PM
@fireblad2

xD
Oh yeah, I forgot to put the hint outside :P
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:28 PM
I am trying to do this and it is not working...

countdownTime = 300
        for i = countdownTime, 1, -1 do
            script.Parent.Text = "Wait (" ..i.. "'s)"
            wait(1)
        end
Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
04 Jul 2014 03:35 PM
Is the script's parent a hint or a message?
Report Abuse
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
04 Jul 2014 03:39 PM
I have already gave you it

timee = 120
h = Instance.new("Hint", Workspace)
for i = timee,0,-1 do
local Min = math.floor(i/60)
local Sec = i-(60*Min)
h.Text= Min..":"..(Sec<10 and "0" or "")..Sec
wait(1)
end
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:41 PM
@Fire

it is a button

@bad

i only needs secs not mins and secs (not to advanced)
Report Abuse
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
04 Jul 2014 03:43 PM
If you just want secs, then it's simple

120 = 2 minutes

60 = 1 minute

20 = 20 seconds

it's not that hard
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:47 PM
your script is made for mins and secs. plus i don't need a hint

it is a button and i need it where it changes that text.


Report Abuse
nobbers12345 is not online. nobbers12345
Joined: 06 Feb 2011
Total Posts: 4425
04 Jul 2014 03:49 PM
Button
*click*
>Changes humanoid text?
or
>Creates message
Which one?

I hate the LGBT. Those laser guided battle tanks are just too damn powerful.
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:51 PM
@above

title...
Report Abuse
Rackm is not online. Rackm
Joined: 07 Jan 2014
Total Posts: 718
04 Jul 2014 03:56 PM
...
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