local launch = script.Parent:WaitForChild("launch")
local Player = game.Players.LocalPlayer
local CountDown = 11
--local User = game.CreatorId
if Player.UserId == 51944675 then
launch.Visible = true
end
script.Parent.launch.MouseButton1Click:connect(function()
while CountDown > 0 do
CountDown = CountDown - 1
script.Parent.ImageLabel.COUNT.Text = CountDown
wait(2)
end
script.Parent.ImageLabel.COUNT.Text = "WE HAVE LIFT-OFF"
game.ReplicatedStorage:WaitForChild("workspaceEvents").rockets.launch:FireServer()
end)
I want the countdown to be globally visible once the button is pressed.
while CountDown > 0 do
CountDown = CountDown - 1
script.Parent.ImageLabel.COUNT.Text = CountDown
wait(2)
end
script.Parent.ImageLabel.COUNT.Text = "WE HAVE LIFT-OFF"
How may I do this?
