So I have a weapon and when it hits the enemy I want the enemy to move back to add weight to the hit. I decided to try BodyForce but for some reason it's not doing anything. I know it's being placed in the Enemy's HumanoidRootPart but still nothing is working.

local magnitude = 1000
local move = Vector3.new(-100, 0, 0) * magnitude 
bodyForce = Instance.new("BodyForce")
bodyForce.Parent = enemyCharacter:FindFirstChild("HumanoidRootPart")
bodyForce.Force = bodyForce.Parent.CFrame:vectorToWorldSpace(move)

I can see it being added to the enemy whenever I hit him, but the enemy doesn't get pushed back or move at all. Why?

2 comments

0

Try increasing the magnitude - the bigger a model you want to move, the more force is required.

0

I'll try that, thank you. Do you think there is any other way this could not be working? I've used BodyVelocity on them and that worked, as well as Body Position.