Basically, I created a simple “grapple” effect thing by tweening the position of the player. However, what I don’t like is this stuttering that comes along with it: https://gyazo.com/901b4832182e9e2928304637d9450570
local properties = {
Position = currentPoint.Position + Vector3.new(0,2,0) --currentPoint is where the player is going
}
local tweenInfo = TweenInfo.new(
flySpeed.Value, -- This is set to 1
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local tweenPosition = tweenService:Create(humRoot,tweenInfo,properties)
tweenPosition:Play()
This stuttering appears to be related to the rotation of the camera, not the tweening of the humanoid’s position. Try removing the rotation of the camera and see if that stutters, if it does please post the code for that. If not, please let me know and I will try to help solve the problem, it’s quite difficult to tell what the cause of the stutter is with multiple things changing all at once, with no way to separate them.
Out of curiousity, are you anchoring the rootpart or doing something which would stop gravity from influencing the position of the player while they are grappling?
Anchor the rootpart as the player is flying towards the part/begins grapple. It should negate all jitter effects because the physics is acting on the player while tween is occuring.
As others have said, the jitter is caused due to gravity influencing the position of the player, causing them to fall down and then be teleported up with each frame.
To overcome this you can use one of many methods,
Anchor the rootpart while tweening
Use a bodyPosition such that it blocks gravity (if you need help with this one let me know)