i am trying to make a easy script that tells you how many parts you spawned in the world. but it only says "parts = 1" and doesn't update. why is dat
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.5)
texts.Text = "parts = "..number
wait(0.5)
number = number+1
end

1 comment
but it still doesn't udpate