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

Smooth humanoid rotation?

Asked by
drahsid5 250 Moderation Voter
8 years ago

So I'm trying to rotate a humanoid in a direction smoothly, but what I've got isn't smooth, does anyone know how to fix this?

local ray = Ray.new(Self.Torso.Position,AI.Track.Torso.Position)
Self.Torso.CFrame=cf.new(Self.Torso.CFrame.p,vc(ray.Direction.x,Self.Torso.CFrame.lookVector.y,ray.Direction.z))

Answer this question