I was making a game where a part generates random numbers and tells them,but it seems that it doesn't display the text when I test my server.
text = game.Workspace.Xpanel.SurfaceGui.TextLabel.Text
while wait() do
x = math.random(1, 10)
print (x)
while wait (x) do
text = "Working."
wait(1.5)
text = "Working.."
wait(1.5)
text = "Working..."
break
end
if x == 7 or x == 5 then
text = "5 and 7 have been chosen"
end
end
