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

HumanoidRootPart Tween isn't working good?

Asked by
Ince_FS 13
6 years ago
Edited 6 years ago

I'm making a HumanoidRootPart follow camera, but, when I tween the HumanoidRootPart to the CFrame the player get frozen in the place, why?

if PrimaryPart.Velocity.Magnitude <= 0 or shared.Aim then
local CLV = Camera.CFrame.LookVector;
local CR = math.atan2(-CLV.X, -CLV.Z);

    Humanoid.AutoRotate = false;
    game:GetService("TweenService"):Create(PrimaryPart, TweenInfo.new(.3), {CFrame = CFrame.new(PrimaryPart.Position)*CFrame.Angles(0, CR+-math.rad(8), 0)}):Play();
else
    Humanoid.AutoRotate = true;
end
0
what do you mean by stunned User#5423 17 — 6y
0
frozen in place? DeceptiveCaster 3761 — 6y
0
Yeah, sorry, I don't speak english Ince_FS 13 — 6y

Answer this question