I have this script here but it won’t stop the tween whenever I use Tween:Stop()
local button = script.Parent
local ts = game:GetService("TweenService")
local tweenout = ts:Create(button, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Size = UDim2.new(1.018, 0,0.095, 0), Position = UDim2.new(0.026, 0,0.108, 0)})
local tweenin = ts:Create(button, TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = UDim2.new(0.944, 0,0.082, 0), Position = UDim2.new(0.026, 0,0.121, 0)})
local Ent = false
script.Parent.MouseEnter:Connect(function()
if Ent == false then
Ent = true
tweenin:Stop()
tweenout:Play()
end
end)
script.Parent.MouseLeave:Connect(function()
if Ent == true then
Ent = false
tweenout:Stop()
tweenin:Play()
end
end)
I’ve always stopped my tweens like this before but all of a sudden it won’t work anymore, is there an update that causes this?
It does work with Tween:Play() though…