How would I make the clock display two digits instead of 1 constantly without it showing "3:0"?
What can I do to stop the clock at any time? (i.e. when touching a part, the clock is disabled and stops counting down)
How would I clone this from ServerStorage? (So that I can spawn this during the final event)
Also, it only works when all scripts (except the second one) are enabled.
Ensuring the minutes and seconds values are written in the textbox constantly
while true do
script.Parent.Frame.TextBox.Text = script.Parent.Frame.TextBox.Minute.Value .. ":" .. script.Parent.Frame.TextBox.Second.Value
wait()
end
Incomplete: if the seconds reach from 0 to 9, add another 0 in front of it so output would not look like "3:0"
while true do
script.Parent.Frame.TextBox.Text = script.Parent.Frame.TextBox.Minute.Value .. ":0" .. script.Parent.Frame.TextBox.Second.Value
wait(7.5)
script.Parent.While.Disabled = false
script.Disabled = true
end
The actual timer
wait (7.5)
for i = 1,2 do
script.Parent.Frame.TextBox.Minute.Value = script.Parent.Frame.TextBox.Minute.Value - 1
script.Parent.Frame.TextBox.Second.Value = 59
wait (1)
for i = 1, 59 do
script.Parent.Frame.TextBox.Second.Value = script.Parent.Frame.TextBox.Second.Value - 1
wait (1)
end
end
The tweening part + hint message with a sound
local frame = script.Parent.Frame
wait (2)
hint = Instance.new("Hint", workspace)
hint.Text = "Let's put three minutes on the clock..."
wait(2)
script.Parent.Sound:Play()
frame:TweenPosition(UDim2.new(0,700,0,450), 'Out', 'Elastic' ,1.5)
wait(1)
hint.Text = "On your mark..."
wait(1)
hint.Text = "Get set..."
wait(1)
hint.Text = "GO!"
wait(2)
hint:Destroy()
This is part of a Legends Of The Hidden Temple style project, specifically the Temple Run segment.
