Player Knock back Code Not Working

I want to make a system that knocks players back like Minecraft basically.

The issue is it’s not working but with no errors at all. I’ve tried so many things and this is the closest I’ve gotten so far. Also, my code is not the cleanest, I usually clean up my code after it works completely.

This is my code:

local NameOfConvict = Player.Name
local FindConvict = game.Workspace:FindFirstChild(NameOfConvict)
local ConvictHRP = FindConvict:FindFirstChild("HumanoidRootPart") 
local VictimHRP = hitPart.Parent:FindFirstChild("HumanoidRootPart")
local BodyForce = Instance.new("BodyForce", VictimHRP)
BodyForce.Force = Player.Character.HumanoidRootPart.CFrame.LookVector*Vector3.new(CFrame.lookAt)

Please help me to fix this situation! :smile:

i’m pretty sure it should be something like this

BodyForce.Force = Player.Character.HumanoidRootPart.CFrame.LookVector*20-you can change this to whatever you want to 

Thanks but it still doesn’t work. No errors still.

Try changing the number to 200 or higher and change the parent property of the body force with a .Parent (local BodyForce = Instance.new("BodyForce") BodyForce.Parent = --parent here )