Visible is not a valid member of frame?

So, I am trying to make a code with three GUIs, they all disappear, however for the last GUI none of the images or texts display. I have tried to use both .visible and :Destory and none of them seem to work. They have the same error.

local Players = game:GetService("Players") 

local Player = Players.LocalPlayer 
local PlayerGui = Player:WaitForChild("PlayerGui", 5) 
if not PlayerGui then warn("PlayerGui wasn't found") return end 

local Disclaimer = PlayerGui:WaitForChild("Disclaimer")
local Main = PlayerGui:WaitForChild("MainMenu")
local Note = PlayerGui:WaitForChild("NoteFromJoey")

Note.Enabled = false
Main.Enabled = false
Disclaimer.Enabled = true

local button = Disclaimer.Iagree

button.MouseButton1Click:Connect(function()
	Disclaimer:Destroy()
end)
button.MouseButton1Click:Connect(function()
	Main.Enabled = true
end)

local btn = Main.PlayBTN

local quit = Main.Quit

btn.MouseButton1Click:Connect(function()
	Main.Enabled = false
end)

quit.MouseButton1Click:Connect(function()
	game.Players.LocalPlayer:Kick("Quit Game")
end)

btn.MouseButton1Click:Connect(function()
	Note.Enabled = true
end)

local Mypage = Note.Pages

btn.MouseButton1Click:Connect(function()
	Mypage.visible = true
end)

local page = Note.OldPage

page.MouseButton1Click:Connect(function()
	Note:Destroy()
end)

I don’t entirely know what I did wrong, but of course, I’m new to this and learning very slowly.

Visible must be capitalized. replace that line with “Mypage.Visible”

2 Likes

Thanks! I can’t believe I missed something that simple :rofl: