I want my knockback system to shove the player back and up which it does do but it reaches a certain position where the momentum just stops instead of slowing dowing over time
here is my test knockback code
local horizontalPower = 100
local verticalPower = 30
function module.HitKnockback(attacker : Model, target : Model)
local attackerRoot = attacker:FindFirstChild("HumanoidRootPart")
local targetRoot = target:FindFirstChild("HumanoidRootPart")
local diff = targetRoot.Position - attackerRoot.Position
local horizontalDir = (diff * Vector3.new(1, 0, 1)).Unit
local verticalDir = Vector3.new(0, 1, 0)
local knockbackDir = ((horizontalDir * horizontalPower) + (verticalDir * verticalPower))
targetRoot:ApplyImpulse(knockbackDir * targetRoot.AssemblyMass)
end
** You are now Level 1! **