Hey friends!
ETA: I’m a noob when it comes to scripting, I’ve got the basics down-ISH but otherwise it’s a bit over my head. Yes I’ve checked the resources available to me but I need it explained to me like I’m 5 lol.
I’ve found myself stuck while scripting my Character Creation GUI.
And this is my 'back' button for them to return to the previous list
`local mainMenu = script.Parent.Parent.Parent.MainMenu
local hairMenu = script.Parent.Parent.Parent.Hair
local backButton = hairMenu:FindFirstChild(“BackMain”)
script.Parent.MouseButton1Click:Connect(function()
hairMenu.Visible = false
mainMenu.Visible = true
if backButton then
backButton.Visible = false
end
end)`
I’ve got this issue where when I click an option, and it shows the colors, and then click the back button, everything is great UNTIL I choose the next option. Then basically it’s showing the new options on TOP of the old options (i.e. the old options should’ve been made visible = false but it’s not.)
Now I know where I went wrong, and that I’m technically setting the scrolling frame holding the colors to false and not the actual option, so of course they’re gonna layer.
My QUESTION is this:
Is there a way for me to code this so that I can reference all the children of the scrolling frame and set their visibility to false without going in and individually setting variables?
If it’s important, here’s a video of the specific issue in practice.
Thanks in advance!