Ad
Log in to vote
0

How to get Bodygyro to Rotate and Face the Player?

Asked by 3 months ago

So I'm making an NPC so if you go near it, it moves its body to face you and I'm using bodygyro to do it. Does anyone know how to do this?

Script I'm Using:

script.Parent.Touched:connect(function(Character)
local b = Instance.new('BodyGyro')
b.Parent = script.Parent.Parent.HumanoidRootPart
b.P = 13000
b.D = 400
b.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
--end
end)

Answer this question