RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a script that generates a timer at the top of the screen"
-- local script local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui") screenGui.Parent = player.PlayerGui local timerLabel = Instance.new("TextLabel") timerLabel.Parent = screenGui timerLabel.Size = UDim2.new(0, 200, 0, 50) timerLabel.Position = UDim2.new(0.5, -100, 0, 10) timerLabel.BackgroundTransparency = 1 timerLabel.Font = Enum.Font.SourceSans timerLabel.TextSize = 32 timerLabel.TextColor3 = Color3.new(1, 1, 1) timerLabel.TextStrokeTransparency = 0 local time = 0 while true do timerLabel.Text = "Time: " .. time .. "s" wait(1) time = time + 1 end