This loop doesn't output anything
01 | local g = "Times" |
02 | local number = 1 |
03 | local texts = game.StarterGui.ScreenGui.TextLabel |
04 |
05 | while number < 50 do |
06 | Instance.new( "Part" ,workspace) |
07 | print (g,number) |
08 | wait( 0.2 ) |
09 | number = number+ 1 |
10 | end |
11 |
12 | while true do --THIS LOOP |
13 | print ( "works" ) |
14 | texts.Text = "parts =" , tostring (number) --use tostring |
15 | wait( 1 ) |
16 | 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