RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a countdown for cst"
-- server script for countdown local countdownTime = 10 -- set the countdown time in seconds local countdownText = game.Workspace.CountdownText -- create a TextLabel in Workspace to display the countdown local countdownSound = game.Workspace.CountdownSound -- create a Sound in Workspace to play a sound effect during the countdown function startCountdown() countdownText.Visible = true countdownSound:Play() for i = countdownTime, 1, -1 do countdownText.Text = tostring(i) wait(1) end countdownText.Visible = false countdownSound:Stop() -- add code here to start the game or do something else after the countdown end startCountdown() -- call the function to start the countdown