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

How do i make a tutorial gui with a button that has a next button?

Asked by
Hafrew 16
4 years ago
Edited 4 years ago

hello there!! im trying to make a gui so that when you click on the next button another text shows up. here is the code for the next button:

x=1
script.Parent.MouseButton1Click:Connect(function (ueeeee)
    if x==1 then
        script.Parent.Parent.Parent.Buttons.zero.Visible=false--"zero is a tutorial label, all of them are numbers like this
        script.Parent.Parent.Parent.Buttons.one.Visible=true
        x=x+1
    if x==2 then
        script.Parent.Parent.Parent.Buttons.one.Visible=false
        script.Parent.Parent.Parent.Buttons.two.Visible=true
            x=x+1
    if x==3 then
        script.Parent.Parent.Parent.Buttons.two.Visible=false
        script.Parent.Parent.Parent.Buttons.three.Visible=true
            x=x+1
end

the link:https://docs.google.com/document/d/e/2PACX-1vTPye8fVAem7C67G3N4zfZWicE-gnv9M4PZoiODIPY6kGc9BJbkuvjwJBzXjM7_FlDhYDp1syN1-SYo/pub

0
The script looks functioning. What's the problem? LeedleLeeRocket 1257 — 4y
0
when i press the button it does nothoing Hafrew 16 — 4y
0
Could you edit your post and send a picture of the hierarchy that the script is in? LeedleLeeRocket 1257 — 4y
0
ok Hafrew 16 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

The image helped a lot. The problem is the text labels are parented to the button inside the buttons frame. Simply drag them out of the button and under the buttons frame.

Ad

Answer this question