I'm making a page system but I have these scripts inside every single button but with only the numbers changed.
My pages go 1-9
I'm wondering if there is a far better way of doing this, because when I wind up with an error I have to fix around 17 scripts all together..
If there is a better way to do this, I will just have it in one local script that does everything and have only two buttons (back and next) in the frame that holds everything.
Next Buttons
local Content = script.Parent.Parent.Parent
local PageFour = script.Parent.Parent --Current
local PageFour = Content.PageFour --Next
local Next = script.Parent
Next.MouseButton1Down:connect(function()
PageThree.Visible = false --Current
PageFour.Visible = true --Next
end)
Back Buttons
local Content = script.Parent.Parent.Parent
local PageThree = script.Parent.Parent --Current
local PageTwo = Content.PageOne --Previous
local Back = script.Parent
Back.MouseButton1Down:connect(function()
PageThree.Visible = false --Current
PageTwo.Visible = true --Previous
end)
