So I’ve written a script where a Frame will appear after clicking a button but it doesn’t,I have three different scripts but most of them are the same so here’s one of them.
I tried to change the script until it worked,now the original frame WILL disappear but the target frame won’t appear.
The other two frames are not visible fyi.
local AvaFrame = script.Parent.Parent.Avatar
local Button = script.Parent.Exit
local Avatar = AvaFrame.AvatarItems
local Pass = AvaFrame.Gamepasses
local IG = AvaFrame.InGame
local PassFrame = AvaFrame.Parent.Gamepass
local IGF = AvaFrame.Parent.InGame
Button.MouseButton1Down:Connect(function()
if IGF.Visible then
IGF.Visible = false
end
end)
Avatar.MouseButton1Down:Connect(function()
if IGF.Visible then
IGF.Visible = false
end
end)
Avatar.MouseButton1Down:Connect(function()
if AvaFrame.Visible then
AvaFrame.Visible = true
end
end)
Pass.MouseButton1Down:Connect(function()
if PassFrame.Visible then
PassFrame.Visible = true
end
end)
Pass.MouseButton1Down:Connect(function()
if IGF.Visible then
IGF.Visible = false
end
end)