Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

4 comments

0

The script looks functioning. What's the problem?

0

when i press the button it does nothoing

0

Could you edit your post and send a picture of the hierarchy that the script is in?

0

ok

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.