I am making an in-game tutorial and I have most of it dont, but I am having trouble with one thing…

The tutorial tells the player to click the “edit” button and the GUI stays there without a continue button until the player clicks the right button and until the player clicks the right button all the other buttons are disabled.

However, whenever I try it doesn’t work and I can’t find any help of YouTube or anywhere else.

I tried using a MouseButton1Click:Connect() function inside of the same script for the specific tutorial line and connected it to the edit button, but it won’t work

local editB = game.StarterGui.Screen.Right.EditButton
local tutorial = game.StarterGui.Tutorial.TutorialFrame
local edit = game.StarterGui.Edit
local arrow = game.StarterGui.Tutorial.TutorialFrame.Cont3Arrow

local text = "Click the ''Edit'' button on the rigt of the screen"
local continue4  = script.Parent.Parent.Continue4
local textMain = script.Parent.Parent.TextMain

script.Parent.MouseButton1Click:Connect(function()
	local continue3 = script.Parent.Parent.Continue3
	
	continue3.Visible = false
	

	for i = 1, #text do
		textMain.Text = string.sub(text, 1, i)
		wait()
	end
	arrow.Visible = true
	editB.MouseButton1Click:Connect(function()
		wait()
		tutorial:TweenPosition(UDim2.new(0.13,0,0.294,0), "Out", "Linear", 1, true)
		continue4.Visible = true
		edit.Enabled = true

end)




	
end)

My arrow won't show and it doesn't do anything when I click "Edit" and I dont know how o tmkae the arrow bounce up and down to show the player the button (Tween won't work)

2 comments

0

use tweenservice instead?

0

I did