Hi i have this script, that make a random number appear in the gui, but i dont know how to break the loop, i tried defining a variable named Running and using an
While running do
But i still wont work, any help?
Also here is the full script
local gui = script.Parent
local text = gui.TextLabel
local running = true
print(running)
while running do
wait()
text.Text = math.random(1, 5)
end
running = false
print(running)