GUI effect is not working

Hello, :wave:

  1. I want to achieve the simple gui effect of tween :grin:

  2. The GUI doesnt change :tired_face:

  3. I look for solutions, like different scripts but doesnt work :face_with_monocle:

Heres the script

local button = script.Parent

button.MouseEnter:Connet(function(button)
	script.Parent:TweenSize(UDim2.new(0.169, 0,0.231, 0), "In", "Quad", 1)
end)

button.MouseLeave:Connet(function(button)
	script.Parent:TweenSize(UDim2.new(0.161, 0,0.221, 0), "In", "Quad", 1)
end)

Thanks for read! :grin:

You spelled it wrong, itโ€™s Connect.

2 Likes

You spelled Connect wrong I believe.

I hate it when people doesnโ€™t tell us the error of the script. Itโ€™s a very simple fix because you spelled Connect wrong. You shouldโ€™ve at least tell us the error and maybe you can already solve the problem by yourself.

1 Like

Woah, Chill dude, thats is devforum about

i mean dude u forgot to add play at the end

button.MouseEnter:Connect(function(button)
	script.Parent:TweenSize(UDim2.new(0.169, 0,0.231, 0), "In", "Quad", 1):Play()
end)

button.MouseLeave:Connect(function(button)
	script.Parent:TweenSize(UDim2.new(0.161, 0,0.221, 0), "In", "Quad", 1):Play()
end)

i just tried it (works for me)