So im tryinto make an air commbat system, wehre if players meet in air they go into combat in the air, where the person with the first essentially lands the combo. The combo should keep them in the same spot in the air, and after the 5th hit do some kb. My problem is keeping them in the same spot in the air. Ive tried using body poisition but it doesnt seem to be working amazing, b/c the npc ive beeen testing on ranodmly spins, falls down, and it doesn’t feel smooth… thoughts? Heres the code
DamageModule.Damage(char,HitHum.Parent,UppercutDamage)
StunHandler.Stun(HitHum,UppercutStunTime)
local KnockbackInfo = {
Name = "VictimKnockback",
Order = KnockbackModule.uppercut,
Velocity = Hrpt.CFrame.LookVector * 30 + Vector3.new(0,70,0) ,
DestroyTime = 0.3
}
if game.Players:GetPlayerFromCharacter(hitchar) then
KnockbackEvent:FireClient(game.Players:GetPlayerFromCharacter(hitchar),KnockbackInfo)
else
HitHRPT.Anchored = false
local OppKnockback = Instance.new("BodyVelocity")
OppKnockback.MaxForce = Vector3.new(8000, 8000, 8000)
OppKnockback.Parent = HitHRPT
OppKnockback.Velocity = Hrpt.CFrame.LookVector * 30 + Vector3.new(0,75,0)
OppKnockback.Name = "OppKnockback"
game.Debris:AddItem(OppKnockback,.3)
local Order = Instance.new("IntValue", OppKnockback)
Order.Value = KnockbackModule.uppercut
Order.Name = "Order"
end