You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? A good timer
What is the issue? It works in Run but not in Play
What solutions have you tried so far? Trying to look for the issue but I dont see it
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local RunService = game:GetService("RunService")
local label = script.Parent
local function startTimer(timeLeft)
RunService:BindToRenderStep("Timer", Enum.RenderPriority.Last.Value -1, function(delta)
timeLeft -= delta
local minutes = math.floor(timeLeft / 60)
local seconds = math.floor(timeLeft % 60)
local hundreths = math.floor(timeLeft % 1 * 100)
label.Text = string.format("%02i:%02i.%02i", minutes, seconds, hundreths)
if label.Text == "00:00.00" then
label.Text = "00:00.00"
workspace.B.Script.Disabled = false
script:Destroy()
end
end)
end
startTimer(30)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.