Tweening position stutters

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()

Suggestions?

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.

1 Like

I’m assuming by

you mean the camera zoom effects?

Basically I’m saying to disable anything done to the camera and see if the problem persists.

Currently zooming the camera is the only thing that changes the camera, disabling that makes no difference in the stuttering.

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?

Pretty sure the OP is using tweens to move the player to the part. Just anchor the rootpart and that should fix the camera jitter issue :man_shrugging:

2 Likes

The only time I’m anchoring the root is when the tween is completed, using tween.Completed

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)
  • Etc
1 Like

how would you do that i have an issue to i cant anchor the part because i use a touch event to stop the tween