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
5 years ago
Edited 5 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 — 5y
0
frozen in place? DeceptiveCaster 3761 — 5y
0
Yeah, sorry, I don't speak english Ince_FS 13 — 5y

Answer this question