Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rep = game:GetService("ReplicatedStorage")
- local minutes = rep:WaitForChild("Minutes")
- local seconds = rep:WaitForChild("Seconds")
- local text = script.Parent
- if seconds.Value <= 9 then
- text.Text = tostring(minutes.Value)..":0"..tostring(seconds.Value)
- else
- text.Text = tostring(minutes.Value)..":"..tostring(seconds.Value)
- end
- minutes:GetPropertyChangedSignal("Value"):Connect(function()
- if seconds.Value <= 9 then
- text.Text = tostring(minutes.Value)..":0"..tostring(seconds.Value)
- else
- text.Text = tostring(minutes.Value)..":"..tostring(seconds.Value)
- end
- end)
- seconds:GetPropertyChangedSignal("Value"):Connect(function()
- if seconds.Value <= 9 then
- text.Text = tostring(minutes.Value)..":0"..tostring(seconds.Value)
- else
- text.Text = tostring(minutes.Value)..":"..tostring(seconds.Value)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement