Hello! I was trying to make a Horror Stories GUI game and I got most of the game working, but my super sized Next Page button seems to not work, can someone please help me figure out why? Here is the code:
local bin = script.Parent.Parent local gui = script.Parent.Parent.Parent.MainMenu local Text1 = script.Parent.Parent.Text1 local Text2 = script.Parent.Parent.Text2 local Text3 = script.Parent.Parent.Text3 local Text4 = script.Parent.Parent.Text4 local Text5 = script.Parent.Parent.Text5 local Text6 = script.Parent.Parent.Text6 local Text7 = script.Parent.Parent.Text7 local Text8 = script.Parent.Parent.Text8 local Text9 = script.Parent.Parent.Text9 local Text10 = script.Parent.Parent.Text10 local Image1 = script.Parent.Parent.Image1 local Image2 = script.Parent.Parent.Image2 local Image3 = script.Parent.Parent.Image3 local Page1 = script.Parent.Parent.Page1 local Page2 = script.Parent.Parent.Page2 local Page3 = script.Parent.Parent.Page3 local Page4 = script.Parent.Parent.Page4 local Page5 = script.Parent.Parent.Page5 local Page6 = script.Parent.Parent.Page6 local Page7 = script.Parent.Parent.Page7 local Page8 = script.Parent.Parent.Page8 local Page9 = script.Parent.Parent.Page9 local Page10 = script.Parent.Parent.Page10 local Button = script.Parent function leftClick() if Page1 == true then Text1.Visisble = false Text2.Visible = true Page1 = false Page2 = true print("Next Page has been completed!") elseif Page2 == true then Text2.Visisble = false Text3.Visible = true Page2 = false Page3 = true print("Next Page has been completed!") elseif Page3 == true then Text3.Visisble = false Text4.Visible = true Page3 = false Page4 = true print("Next Page has been completed!") elseif Page4 == true then Text4.Visisble = false Text5.Visible = true Page4 = false Page5 = true Image1.Visible = false Image2.Visible = true print("Next Page has been completed!") elseif Page5 == true then Text5.Visisble = false Text6.Visible = true Page5 = false Page6 = true print("Next Page has been completed!") elseif Page6 == true then Text6.Visisble = false Text7.Visible = true Page6 = false Page7 = true print("Next Page has been completed!") elseif Page7 == true then Text7.Visisble = false Text8.Visible = true Page7 = false Page8 = true print("Next Page has been completed!") elseif Page8 == true then Text8.Visisble = false Text9.Visible = true Page8 = false Page9 = true Image2.Visible = false Image3.Visible = true print("Next Page has been completed!") elseif Page9 == true then Text9.Visisble = false Text10.Visible = true Page9 = false Page10 = true print("Next Page has been completed!") Button.Text = ("Complete Story") elseif Page10 == true then gui.Visible = true gui.SlenderDone.Visible = true wait(0.1) bin.Visible = false print("Button scripts ended successfully!") end end script.Parent.MouseButton1Click:Connect(leftClick)