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
Your script isnt running at all!!!!!!!!!!!
I suspect it is a LocalScript
, and if so, note that they only run inside either the Player, the Character, or inside the Player Service. If they are not parented to any of them, they won't budge at all