I’m trying to add a Knockback function to My Combat System using Linear Velocity, but it seems laggy when i apply the knockback, the player looks like he is teleporting instead of moving.
Body Velocity and the Old Body Movers are Deprecated so i don’t want to use even if they are still available
I already tried to use ApplyImpulse for Knockbacks but it seems to only work on Client Side, and i also tried to Make all the parts Massless… but this doesn’t worked too
Any New Body Movers you guys recommend for Knockback in a Combat Game?
robloxapp-20230205-1556299.wmv (989.4 KB)
function TestKB(Player_Char)
local linearVelocity = Instance.new("LinearVelocity")
linearVelocity.Name = "KNOCK_BACK_VELOCITY"
linearVelocity.Attachment0 = Player_Char.PrimaryPart.RootRigAttachment
linearVelocity.MaxForce = math.huge
linearVelocity.VectorVelocity = Player_Char.PrimaryPart.CFrame.LookVector * -25
linearVelocity.Parent = Player_Char.PrimaryPart
game.Debris:AddItem(linearVelocity, .25)
end