First off Here's the 'game' [[[[[StarterGui, [[[[PIXL EDITOR, [[[Page1, -- A frame [[TextButton, -- A TextButton that says "Page 2" [Script1, -- A script]]] [[[Page2, -- A frame [[TextButton, -- A TextButton that says "Page 1" [Script2, -- A script]]] (I put a [ on each child and a ] to show it's the last child in that main parent) Script1:
local screen = game.StarterGui["PIXL EDITOR"]
local model = script.Parent.Parent
local Page2 = screen.Page2
script.Parent.MouseButton1Down:connect(function()
wait(1)
Page2.Visible = true
Page2.TextButton.Active = true
for _,v in pairs(Page2:GetChildren()) do
v.Visible = true
end
model.Visible = false
model.TextButton.Active = false
for _,v in pairs(model:GetChildren()) do
v.Visible = false
end
end)
Script2:
local screen = game.StarterGui["PIXL EDITOR"]
local model = script.Parent.Parent
local Page1 = screen.Page1
script.Parent.MouseButton1Down:connect(function()
wait(1)
Page1.Visible = true
Page1.TextButton.Active = true
for _,v in pairs(Page1:GetChildren()) do
v.Visible = true
end
model.Visible = false
model.TextButton.Active = false
for _,v in pairs(model:GetChildren()) do
v.Visible = false
end
end)
(The buttons are on the right of the screen in the same spot, but Page1.Visible is false and Page1.TextButton.Active is false while Page2 and it's TextButton have the properties set to true) When you spawn in, you see the button that says "Page 1" on the right, when you click it all GUIs are invisible. if I don't reply within 24 hours follow me on roblox and send me some sort of message reminding me of this question please. P.S. PIXL EDITOR is a gui editor plugin so I can't rename that.
