AuxeticJoin Date: 2013-07-22 Post Count: 112 |
I want a script that has a microsecond for my basketball group.
Ex: Under 24 seconds, it has 24.0 then it goes like this 23.9, 23.8, 23.7, 23.6, 23.5, 23.5, 23.4, 23.3, 23.2, 23.1, 23.0, 22.9... until it reach at 0.0
So if you think you can make a script like this, reply here! Maybe I can pay you 50 robux.
|
|
feranoJoin Date: 2008-11-23 Post Count: 5094 |
Can you specify more clearly and I can probably just whip something up for free |
|
AuxeticJoin Date: 2013-07-22 Post Count: 112 |
Tenths of a second. (ex: 0.5 / 4.7)
|
|
feranoJoin Date: 2008-11-23 Post Count: 5094 |
Do you just want that to print? |
|
|
Like a clock timer countdown going down by .01?
y-y-you too... |
|
AuxeticJoin Date: 2013-07-22 Post Count: 112 |
Um, just a local.
|
|
AuxeticJoin Date: 2013-07-22 Post Count: 112 |
Yes, you got the idea.
|
|
gum444Join Date: 2011-05-06 Post Count: 549 |
I think it would go like this...
y = Instance.new("Hint")
y.Parent = game.Workspace
local time = 24
y.Text = time
wait(0.1)
time = -0.1
???
im sure a good scripter could fix that because that will NOT work, but its a start! |
|
AuxeticJoin Date: 2013-07-22 Post Count: 112 |
Thank you for idea but it just stays 24, might edit it idk.
|
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
gimme 50 robux
for i = 1, 24, 0.10 do
local value = 24-i
print(value)
end
countdown with tenths of a second
|
|
feranoJoin Date: 2008-11-23 Post Count: 5094 |
for (24, 0) do
y = Instance.new("Hint", game.Workspace)
local time = 24
y.Text = time
wait(0.1)
time = time -0.1
I'm on my phone so I can't do much, but here this is slightly improved |
|
feranoJoin Date: 2008-11-23 Post Count: 5094 |
I messed up the for statement but ya you get the point. |
|
|
local num = 25
while wait(.1) do
num = num - .1
if num <=0 then
break
end
end
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
feranoJoin Date: 2008-11-23 Post Count: 5094 |
for CountDown= 24, 0, 0.1 do
y = Instance.new("Hint", game.Workspace)
local time = 24
y.Text = time
wait(0.1)
time = time -0.1
I'm on my phone so I can't do much, but here this is slightly improved |
|
LocardJoin Date: 2014-04-13 Post Count: 3516 |
If you want to run into floating point errors, go with Clirex's script.
If not, then...
for i = 240,0,-1 do
local text = i*.1
--do whatever you want with text
wait(.1)
end
|
|
MisBloxyJoin Date: 2008-09-13 Post Count: 164 |
wai is every 1 having a hard time with this? did u go in studio and est it? maybe not.
i has an example too. i test mine and it works:
m = Instance.new("Message")
m.Parent = workspace
t = 24
for i = 1, t*10 do
t = t - 0.1
m.Text = t
wait(0.1)
end
|
|
LocardJoin Date: 2014-04-13 Post Count: 3516 |
No one is having a hard time. It's just that everyone is giving a different result because there's multiple ways of writing out this problem.
I tested mine and it works, of course. |
|
|
Actually half of these are crap, because they result in the number being num.19999999.
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
feranoJoin Date: 2008-11-23 Post Count: 5094 |
No no no this is the best way to do it:
Print("24")
Wait(0.1)
Print("23.9")
Wait(0.1)
Print("23.8")
Wait(0.1)
Print("23.7")
Wait(0.1)
Print("23.6")
Wait(0.1)
Print("23.5")
And so on until it reaches 0 :P
This is super efficient and is totally what you're trying to do |
|
ClirexJoin Date: 2012-06-22 Post Count: 2721 |
youre all idiots, use mine op |
|
LocardJoin Date: 2014-04-13 Post Count: 3516 |
Thanks for understanding my post, Clirex. |
|
|
@Clirex your's is probably the crappiest of them all when I extend on my point above.
Output of yours:
"1.6999999999999
1.5999999999999
1.4999999999999
1.3999999999999
1.2999999999999
1.1999999999999
1.0999999999999
0.99999999999994
0.89999999999994
0.79999999999994
0.69999999999994
0.59999999999993
0.49999999999993
0.39999999999993
0.29999999999993
0.19999999999993
0.099999999999927"
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
MisBloxyJoin Date: 2008-09-13 Post Count: 164 |
ik how to fix the .19999... problem.
do this: tostring(time):sub(1,4)
|
|
|
CWRA0444Join Date: 2010-01-14 Post Count: 6013 |
time = 24
h = Instance.new("Hint")
h.Parent = workspace
for i = 1, 24 do
wait()
h.Text = time
time = time - 0.1
end
just a siggy in its natural habitat |
|