I made this script to get how many instances are in the game and displaying that.
local TotalInstances = game:GetChildren()
local Stats = game:GetService("Stats")
while true do
script.Parent.Text = Stats.InstanceCount .. "/" .. #TotalInstances
end
the script does not change the gui's text. Whats wrong?

3 comments
So was the problem not having a wait statement?
Your problem was most likely having a normal script in the TextLabel which does not even run because it is in the Client.
You could also use while wait() do so there doesn't need to be that wait() statement.