Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why isn't a part of this is not working?

I tested this before and it worked, but now one part of the script does not work! Here is the script(problems included):

function LoadAsset()
	Box = script.Parent
	Frame = script.Parent.Parent
	if Box.Text == "Loading Assets" then -- from here
		wait(0.2)
		Box.Text = "Loading Assets."
	end
	if Box.Text == "Loading Assets." then
		wait(0.2)
		Box.Text = "Loading Assets.."
	end
	if Box.Text == "Loading Assets.." then
		wait(0.2)
		Box.Text = "Loading Assets..."
	end
	if Box.Text == "Loading Assets..." then
		wait(0.2)
		Box.Text = "Loading Assets" -- till here does not work!
	end
	function End() -- the rest works fine
		Frame.Visible = false
	end
	while wait(10)do
		End()
	end
end
while true do
	LoadAsset()
end

As you can see the broken bit is making a text loop repeating it again and again. during early testing it worked, but no it does not!

1 answer

1You need the change the PlayerGui not the StarterGui...doing that will only change it on reset!

Frame = game.Players.LocalPlayer.PlayerGui -- Try that

1 comment

0

ok

This discussion is preserved as it was. New answers, comments, and votes are closed.