Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a value like 03 using the variable value itself? [closed]

Asked by 3 years ago

Does anyone know how I would make something like 03 using a 0, then the variable next to it? This is my current script

local timer = script.Parent
local minutes = 10
local seconds = 0
local milliseconds = 0

repeat
    if milliseconds < 9 then
        milliseconds = --What would go here, I can't do 0milliseconds or 0..milliseconds
        timer.Text = tostring(minutes)..":"..tostring(seconds).."."..tostring(milliseconds)
    elseif milliseconds <= 0 then
        seconds = seconds - 1
        milliseconds = 59
    end
until minutes <= 0 and seconds <= 0 and milliseconds <= 0

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?