RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"how do you make a number go down using textlabel"
-- local script (StarterGUI) local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui", player.PlayerGui) local countdownLabel = Instance.new("TextLabel", screenGui) countdownLabel.Text = "10" -- starting number countdownLabel.TextColor3 = Color3.fromRGB(255, 255, 255) countdownLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0) local function countdown() for i = tonumber(countdownLabel.Text), 1, -1 do countdownLabel.Text = tostring(i) wait(1) end end countdown()