iFrexsim
(iFrexsim)
August 4, 2021, 7:11pm
#1
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.
7z99
(cody)
August 4, 2021, 7:22pm
#2
Are you tweening the position or the CFrame?
iFrexsim
(iFrexsim)
August 4, 2021, 7:22pm
#3
I’m tweening the CFrame in HumanoidRootPart.
7z99
(cody)
August 4, 2021, 7:23pm
#4
Would you be able to post your script?
iFrexsim
(iFrexsim)
August 4, 2021, 7:25pm
#5
I don’t want to share all of it but here’s the part that tweens the character.
iFrexsim
(iFrexsim)
August 4, 2021, 7:25pm
#6
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```
7z99
(cody)
August 4, 2021, 7:26pm
#7
You’re tweening the position, you have to tween the CFrame instead.
2 Likes
iFrexsim
(iFrexsim)
August 4, 2021, 7:27pm
#8
Oh wow I’m dumb, I guess I used CFrame before and then later decided not to for some reason lol
1 Like