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:

01x=1
02script.Parent.MouseButton1Click:Connect(function (ueeeee)
03    if x==1 then
04        script.Parent.Parent.Parent.Buttons.zero.Visible=false--"zero is a tutorial label, all of them are numbers like this
05        script.Parent.Parent.Parent.Buttons.one.Visible=true
06        x=x+1
07    if x==2 then
08        script.Parent.Parent.Parent.Buttons.one.Visible=false
09        script.Parent.Parent.Parent.Buttons.two.Visible=true
10            x=x+1
11    if x==3 then
12        script.Parent.Parent.Parent.Buttons.two.Visible=false
13        script.Parent.Parent.Parent.Buttons.three.Visible=true
14            x=x+1
15end

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