This loop doesn't output anything
local g = "Times"
local number = 1
local texts = game.StarterGui.ScreenGui.TextLabel
while number < 50 do
Instance.new("Part",workspace)
print(g,number)
wait(0.2)
number = number+1
end
while true do --THIS LOOP
print("works")
texts.Text = "parts =", tostring(number) --use tostring
wait(1)
end

2 comments
Have you tried using while true do? Or RunService.Stepped?
here is the original script with while true and still doesn't output