Ad
Log in to vote
0

Countdown Gui with decimals, adding random 0s or 9s to the end. Whats wrong with it?

Asked by 3 days ago

Hello, I have been making a count down with decimals but I run it seems to add 0s or 9s to the end. Depending if I use IntValue or NumberValue. Here is my code:

script.Parent.MID.Text = m..":"..s
while true do
    if s <= 0.00 then
            if m == 0 then
                break;
            else
                m=m -1
                s = 58.99
            end
        else
        s = s-.01
        end 
    if s <= 9.99 then
        script.Parent.MID.Text= m..":0"..s
    else
        script.Parent.MID.Text= m..":"..s
    end
    wait(.01)
end

Thanks.

Answer this question