for i = 1, 250 do
local TPart = Instance.new("Part", workspace)
TPart.Anchored = true
TPart.Size = Vector3.new(math.random(30), math.random(30), math.random(30))
TPart.CFrame = CFrame.new(math.random(-100, 100), TPart.Size.Y/2, math.random(-100, 100))
for iterator, player in pairs(game.Players:GetChildren()) do
local character = player.Character or game.Workspace:WaitForChild(player.Name)
if character then
character.Torso.Anchored = true
end
if i < 250 then
game.StarterGui.ScreenGui.TextLabel.Text = "Number of parts loaded: " .. i
else
game.StarterGui.ScreenGui.TextLabel.Text = "Welcome! Please enjoy your stay!"
end
if i == 250 then
character.Torso.Anchored = false
end
end
wait(.01)
i = i + 1
end
I was making a procedural generation script, and a loading screen with a ScreenGui but the text isn't changing. Anyone know why? Thanks! :D

1 comment
I'll give it a try. Thanks!