script.Parent.Damage.OnServerEvent:Connect(function(plr, hum, dmg)
hum.Parent:FindFirstChild("Humanoid").Health = hum.Parent:FindFirstChild("Humanoid").Health - dmg
local pushforce = Instance.new("BodyVelocity")
pushforce.Name = "PushForce"
pushforce.MaxForce = Vector3.new(10000000,10000000,10000000)
pushforce.Velocity = (plr.Character.HumanoidRootPart.CFrame.lookVector) * 25
pushforce.Parent = hum
game.Debris:AddItem(pushforce,.15)
end)
Ok so this fires whenever i shoot someone with a shotgun i made, problem is that the knockback only moves the humanoid root part, doesen’t really rotate it? it just pushes it along the floor without adding any rotational force