I'm making a tool where if you hit someone, the player who got hit would be sent in the opposite direction, but it's sending the player sideways. Here's the code:
local handle = script.Parent.Handle
local db = true
handle.Touched:Connect(function(plrhit)
if plrhit.Parent:FindFirstChild("Humanoid") and db == true then
db = false
local BodyAng = Instance.new("BodyVelocity")
BodyAng.Velocity = Vector3.new(handle.CFrame.LookVector.X * 20,handle.CFrame.LookVector.Y * 20,handle.CFrame.LookVector.Z * 20)
BodyAng.MaxForce = Vector3.new(500000,500000,500000)
BodyAng.Parent = plrhit.Parent.HumanoidRootPart
wait(2)
db = true
plrhit.Parent.HumanoidRootPart.BodyVelocity:Destroy()
end
end)
Any help would be appreciated!

1 comment
Works perfectly. Thank you!