Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i make something like a book with pages?

Asked by 3 years ago

I am making a tutorial for my game, and I ran into one problem. I want to make it so that you can press a button that says "Next" but I just cannot figure out how to do this. Here is my code so far. Any help would be greatly appreciated.

script.Parent.MouseButton1Click:Connect(function()
    local page = 1
    if page == 2 then
        page = page + 1
        print(page)
    end
    if page == 1 then
        page = page + 1
    end
    if page == 3 then
        script.Parent.Parent.TextLabel.Text = "Cool! Now you are at one of the most important places in the game, the C++ Hub!  The C++ hub is where you can learn things about C++, and you can also test your knowledge!"
        page = page + 1
    end
    if page == 2 then
        script.Parent.Parent.TextLabel.Text = "Ok. follow the arrows that lead to the TV near the 'learn' sign. "
        print(page)
        page = page + 1
    end
end)
0
is script this in a part Boss246813579 -6 — 3y
0
this script is for a textlabel and a textbutton in screengui danielminecrafter66 18 — 3y
0
can you tell us what is exactly not working here? sne_123456 439 — 3y

Answer this question