I've made pages in my GUI but my next page button isn't working. I tried a lot of thing but none of them worked. Please help.
Click this if you would like to see the GUI.
This is the highlighted script in the next button:
local Frame = script.Parent.Parent.Parent:WaitForChild('MainFrame')
local Page1 = Frame.Page1
local Page2 = Frame.Page2
local Page3 = Frame.Page3
script.Parent.MouseButton1Click:connect(function()
Page1.Visible = false
wait(0.1)
Page2.Visible = true
end)

2 comments
Try prining something in the function.
I already tried it and printing works in the function.