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

Calling directories, (Hiding a GUI)?

Asked by
yak602 10
4 years ago

Hello, Currently In my game I have a progress bar showing the amount of stages one has completed.

As this can get distracting for some players there is a hide GUI option button to the left. A player can click the button and the progress bar disappears.

I noticed that looks super ugly, so I combined all text buttons into a settings GUI.

This is the code I use to close my GUI with

script.Parent.MouseButton1Click:Connect(function() if script.Parent.Parent.Frame.Visible == false then script.Parent.Parent.Frame.Visible = true else script.Parent.Parent.Frame.Visible = false

end

end)>

Now here is where the problem starts,

This is called from the StarterGUI<Progress Bar<Textbutton<LocalScript This is in the same workspace as the progress bar GUI

Now when I put my local script into a different workspace directory it obviously doesn't work cause I'm not calling it.

I'm just 100% clueless on how to call a different part of a gui from a different directory.

The new directory looks like

StarterGui<Settings<Frame<Closeprogressbar<LocalScript

Answer this question