-
What do you want to achieve? Keep it simple and clear!
button tween service when hovered -
What is the issue? Include screenshots / videos if possible!
tween servcie not changing when hovered
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local TweenService = game:GetService("TweenService")
local button = script.Parent
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local originalSize = button.Size
local originalRotation = button.Rotation
button.MouseEnter:Connect(function()
local sizeTween = TweenService:Create(button, tweenInfo, {Size = originalSize + Vector3.new(0.1, 0.1, 0)})
sizeTween:Play()
local rotationTween = TweenService:Create(button, tweenInfo, {Rotation = originalRotation + Vector3.new(0, 0, 6)})
rotationTween:Play()
end)
button.MouseLeave:Connect(function()
local sizeTween2 = TweenService:Create(button, tweenInfo, {Size = originalSize})
sizeTween2:Play()
local rotationTween2 = TweenService:Create(button, tweenInfo, {Rotation = originalRotation})
rotationTween2:Play()
end)