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

Local script not enabling screengui?

Basically, I want to make it so when the player clicks the button, after it has tweened out it makes the 'ChooseAnAbility' Gui Show up by enabling it, but whenever I try to do this it never works. Heres the script

script.Parent.MouseButton1Down:Connect(function()
	script.Parent.Parent.Position = script.Parent.Parent:TweenPosition(
		UDim2.new(0,0,-1.5,0),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Linear,
		2, 
		true
	)
	script.Parent.Parent.Parent.ChooseAnAbility.Enabled = true
end)

Help much appreciated, thanks

3 comments

0

This is a localscript inside the startergui right ?

0

Ye

0

It should be inside a Gui Button instead of startergui ?

1 answer

Doing script.Parent.Parent.Position = script.Parent.Parent:TweenPosition( is wrong, you only need to do script.Parent.Parent:TweenPosition(

script.Parent.MouseButton1Down:Connect(function()
	script.Parent.Parent:TweenPosition(
	        UDim2.new(0,0,-1.5,0),
	        Enum.EasingDirection.Out,
	        Enum.EasingStyle.Linear,
	        2, 
        true
    )
    script.Parent.Parent.Parent.ChooseAnAbility.Enabled = true
end)

2 comments

0

Still doest make the gui appear

0

Still doest make the gui appear

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