Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix tween slowing down once it is close to destination?

Asked by
vra000 22
2 years ago
Edited 2 years ago

So basically, I am making an FNF game, and I was working on the arrows. But when I tween them, they slow down as they get closer to the destination. Here is the video: https://www.kapwing.com/videos/6293b06277f07b00a88c442c. As you can see, the arrows do not stay their speed, and slow down. Here is my code:

local function movenote(v, move)
    local goal = {}
    goal.Position = UDim2.new(v.Position.X.Scale,0,move,0) --v is the arrow, move is 0.2
    local tweening = TweenInfo.new(
        scrollspeed, --0.6
        Enum.EasingStyle.Linear,
        Enum.EasingDirection.InOut,
        0,
        false,
        0)
    local tween = tweenservice:Create(v,tweening,goal)
    tween:Play()
end
0
You could probably get rid of the easing direction line all together, but I'm not sure, I don't use the linear setting. AbettrWesley 6 — 2y
0
doesn't work, also when i use v:TweenPosition, the arrows stay at their current speed, but when the game is paused, this is what works. vra000 22 — 2y
0
The problem is that when I use this, the arrow doesn't stay at its current speed vra000 22 — 2y

Answer this question