-
What do you want to achieve? Keep it simple and clear!
I want the enemy to rotate towards the character without tripping when its attacking
-
What is the issue? Include screenshots / videos if possible!
I have a script that rotates the enemy towards the nearest player when it attacks but the enemy sometimes falls over when it rotates. And im looking for any ways for it not to trip.
humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.Position,Vector3.new(char.HumanoidRootPart.Position.X,humanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z))
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried setting the model to massless and and searched around allot on the developer hub
1 Like
You could just use the AlignOrientation constraint which you could just toggle when needed to make the enemy character face the player, you could just put it in the enemy prefab and just reference it when you attack