Hello! How can I change this script to make it open the frame inside “ExclusiveCodes”? I want to use THIS Code I do NOT want to change the script in any way, except for it opening the frame inside ExclusiveCodes.
Script:
script.Parent.MouseButton1Click:Connect(function()
for _, v in pairs (script.Parent.Parent.Parent.Parent:GetChildren()) do
if v:IsA("Frame") then
for _, nV in pairs(v:GetChildren()) do
if nV:IsA("TextButton") then
for _, v2 in pairs(nV:GetChildren()) do
if v2:IsA("Frame") then
if v2 == script.Parent.Parent.Frame then
v2.Visible = not v2.Visible
else
v2.Visible = false
end
end
end
end
end
end
end
end)
Example Image of where everything is:
(You click the ImageButton to open the frame, the LocalScript that I said above is the script to open the frame)
Any help will be appreciated!