Hi, i’m trying to make a system where u play an animation, but only if you moved your mouse enough on the X axis. I sort of achieved what i wanted but it’s not very smooth… How would i make it more smooth?
Mouse.Move:Connect(function()
local deltaCurrent = Vector2.new(Mouse.X, Mouse.Y)
deltaCurrent = deltaCurrent - prevDelta
prevDelta += deltaCurrent
if deltaCurrent.X > 50 then
if MixingAnimation.IsPlaying == false then
MixingAnimation:Play()
else
MixingAnimation:AdjustSpeed(deltaCurrent.X/150)
end
else
MixingAnimation:AdjustSpeed(0)
end
end)
Thanks in advance!