New bodymover not really working as planned

I’m trying out a new method for knocking a player backwards with knockback type moves for my game. Only problem is I know I’m doing it wrong, but how can I do it correctly? When I change the Force to ‘PushBack’ it doesn’t really do what I want it to do. It pushes the player sideways rather than backwards.

Here’s an example of the script:

local pushBack = Instance.new("VectorForce",oRoot)
local att = Instance.new("Attachment")
att.Parent = oRoot
pushBack.Attachment0 = att
pushBack.Force = CFrame.new(yourRoot.Position, oRoot.Position).lookVector * 1000

@Dracolyx
VectorForces have a RelativeTo property, which is set to “Attachment0” by default (meaning forces are converted to object space). Changing the RelativeTo property to World will make it so that the force is applied in the direction you set it, instead of relative to the Attachment0’s orientation.

1 Like