So.. I have problem with my script as you can see int title.
I've been trying to do system in my gui that will show category that you clicked on or change showed category to category that you clicked on.(Yes I know it's hard to understand but if you see my code you should know what's going on)
Here's the script in both categories and link to imgur for photo of my starterGui folder.
Code:
local Category = script.Parent.Parent.Parent.Value.Value
local Name = script.Parent.Name
function onclick()
if script.Parent.Parent.Parent:FindFirstChild(Name).Visible == false and Category ~= script.Parent then
script.Parent.Parent.Parent:FindFirstChild(Name).Visible = true
Category = script.Parent
else
script.Parent.Parent:FindFirstChild(Category).Visible = false
script.Parent.Parent.Parent:FindFirstChild(Name).Visible = true
Category = script.Parent
end
end
script.Parent.MouseButton1Click:connect(onclick)
;
Link:
If doesn't work then link here: https://imgur.com/V1e2RTw
Also... How i can change those modern but ugly icons in Studio to old design?
[edit] here's that error:
Players.Ambulans1234.PlayerGui.buildUI.Categories.Beds.GuiClick:9: attempt to index nil with 'Visible' - Server - GuiClick:9
