Why is my GUI hover function not working?

It is not drawing any error at all in the script. I don’t know what is going on. The button is parented to a scrolling frame inside another frame and I don’t know how to fix it!
Here is the code:

Button.MouseEnter:Connect(function()
	local CornerTween = TweenService:Create(UiCorner,TweenInfo.new(.05,Enum.EasingStyle.Circular,Enum.EasingDirection.In), {CornerRadius = UDim.new(.1,0)})
	local SizeTween = TweenService:Create(UiScale,TweenInfo.new(.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out), {Scale = 1.1})

	CornerTween:Play()
	SizeTween:Play()
end)

Button.MouseLeave:Connect(function()
	local CornerTween = TweenService:Create(UiCorner,TweenInfo.new(.05,Enum.EasingStyle.Circular,Enum.EasingDirection.In), {CornerRadius = UDim.new(.2,0)})
	local SizeTween = TweenService:Create(UiScale,TweenInfo.new(.2,Enum.EasingStyle.Back,Enum.EasingDirection.Out), {Scale = 1})
	
	CornerTween:Play()
	SizeTween:Play()
	SizeTween.Completed:Wait()
end)


Here is what I want to happen, in the play button, and what is happening, in the matchmake button!

Never mind! I found it out. Apparently there was not a variable for the UIStroke that I am tweening :skull:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.