Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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

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

0
ok vectorxray 5 — 9y
Ad

Answer this question