How to make a random number between "1" and "1000" appear on a text box every few seconds?

Given a TextLabel gui,

local textLabel = game:GetService("StarterGui").ScreenGui.Frame.TextLabel

while wait(1) do
    local textYouWant = math.random(1, 1000)
    textLabel.Text = tostring(textYouWant)
end
3 Likes