Tweening a character

Whenever I try to tween the character (with Motor6Ds) only the primary part is being tweened. I’ve heard that Welds and Motor6Ds should follow the primary part but this does not seem to be the case.

I’ve searched around a bit but everyone just says to use Welds or Motor6Ds.

o0l4rb6cH1

Are you tweening the position or the CFrame?

I’m tweening the CFrame in HumanoidRootPart.

Would you be able to post your script?

I don’t want to share all of it but here’s the part that tweens the character.

If you would like text:

				if (-input.Position.Y >= 0.85) then
					character.CharValues.ColumnAdded.Value = true;
					character.CharValues.Column.Value = math.clamp(character.CharValues.Column.Value + 1, -16, 16);
					
					character.CharValues.CanMove.Value = false;
					tweenService:Create(character.HumanoidRootPart, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {Position = Vector3.new(character.HumanoidRootPart.Position.X, character.HumanoidRootPart.Position.Y, character.CharValues.Column.Value * 4)}):Play();

					wait(0.1);

					character.CharValues.CanMove.Value = true;
				elseif (-input.Position.Y <= -0.85) then
					character.CharValues.ColumnAdded.Value = true;
					character.CharValues.Column.Value = math.clamp(character.CharValues.Column.Value - 1, -16, 16);
					
					character.CharValues.CanMove.Value = false;
					tweenService:Create(character.HumanoidRootPart, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {Position = Vector3.new(character.HumanoidRootPart.Position.X, character.HumanoidRootPart.Position.Y, character.CharValues.Column.Value * 4)}):Play();
					
					wait(0.1);
					
					character.CharValues.CanMove.Value = true;
				end
			end
			
			if (character.CharValues.ColumnAdded.Value) then
				if (-input.Position.Y <= 0.2) and (-input.Position.Y >= -0.2) then
					character.CharValues.ColumnAdded.Value = false;
				end
			end```

You’re tweening the position, you have to tween the CFrame instead.

2 Likes

Oh wow I’m dumb, I guess I used CFrame before and then later decided not to for some reason lol

1 Like