i dont know how to put it but… its kinda self explanatory, its only supposed to step by 0.1 but its having these really big numbers with really small imperfections
task.spawn(function()
local initialTime = 1
for i = 1, 0, -0.1 do
wait(0.1)
initialTime = initialTime - 0.1
cooldownGUI.TextLabel.Text = tostring("cooldown: " .. initialTime)
end
end)
Try using math.round() to your advantage. All you have to do is this: math.round(i * 10) / 10, which should keep the decimal place of your numbers, while not getting float numbers
task.spawn(function()
for i = 1, 0, -0.1 do
wait(0.1)
local CooldownNumber = math.round(i * 10) / 10
cooldownGUI.TextLabel.Text = tostring("cooldown: " ..CooldownNumber)
end
end)