Hello! So I am trying to make 10 seconds on a for loop feel like 5 or any number i want without using like wait(0.5). like in tower of heck where when someone completes a tower the time goes faster how can i do this?
Thank you!
Hello! So I am trying to make 10 seconds on a for loop feel like 5 or any number i want without using like wait(0.5). like in tower of heck where when someone completes a tower the time goes faster how can i do this?
Thank you!
What do you mean by go faster? Possibly try this if I’m correct?
for i = 1,10 do
wait(.40)
print(i)
end
You could do something like this:
local multiplier = 1
for i = 1, 10, 1*multipler do
wait(1)
end
Then you can change the multiplier to whatever you want.
I mean I want instead of using wait 1 like:
local multiplier = 1
for i = 1, 10, 1*multipler do
wait(1)
end
I want that wait to get faster
Then don’t use wait(1), use something like (.40)
As @AWhale_OfATime said, you can use a timer multiplier, this is another option:
local multiplier = 1
local totalTime = 25
local function playerWon(player)
print(player.Name .. ' made it to the end!'
multiplier *= 2
end
for i = 1, totalTime do
wait(1 / multiplier)
end
Yeah but I think they want to add less time
Yeah it was my fault, I fixed it, sorry.
What I have is: Each 2 rounds in my game in the seconds left go down from 10 to 8 and from 8 to 6 but on the count down local script i want it to keep 10 but it feels like the timer I don’t know if this explains it or not.
I still don’t quite understand, the code I provided should work if you set the textlabel’s text to “i” instead of printing it.