I’m currently trying to make it so that whenever the Frame is opened, all the textbuttons are non-clickable and other frames can’t be open. I’ve tried using BoolValue and lots more and so far nothing has worked.
Any help would be great!
Example: I open a textbutton to open a frame, then the other textbuttons wont open the other frames.
for _,button in pairs(script.Parent:GetChildren()) do
if button:IsA("TextButton") then
button.MouseButton1Click:Connect(function()
for _,frame in pairs(script.Parent:GetChildren()) do
script.Parent:FindFirstChild(button.Text).Visible = true
if frame:IsA("Frame") and frame.Name ~= button.Name then
frame.Visible = false
end
end
end)
end
end
HELP.MouseButton1Click:Connect(function()
HELP.Hframe.Visible = not HELP.Hframe.Visible
for _,button in pairs(script.Parent:GetChildren()) do
if button:IsA("ImageButton") then
if button:FindFirstChildWhichIsA("Frame") then
if button:FindFirstChildWhichIsA("Frame").Visible == true and button.Name ~= HELP.Name then
button:FindFirstChildWhichIsA("Frame").Visible = false
end
end
end
end
end)
Yeah, so for example if I use a blur image for the background and remove all the ui from around the frame like the textbuttons, would it be the same thing? I just make the blur image visible?