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!