-
What do you want to achieve? I want make the knockback go straight
-
What is the issue? It simply dont go straight.
- What solutions have you tried so far? I tryed look on others post, i bassicaly use
--That is done on client, server send the hitter humanoid root part
bodyVelocity.P = 200
bodyVelocity.MaxForce = Vector3.new(10000,10000,10000)
--make the hitted player face the hitter player.
humanoidRootPart.CFrame = CFrame.new(humanoidRootPart.CFrame.Position,Vector3.new(args[6].CFrame.Position.X,humanoidRootPart.CFrame.Position.Y,args[6].CFrame.Position.Z))
--args[6] == the HITTER humanoidRootPart
bodyVelocity.Velocity = args[6].CFrame.LookVector * 360
bodyVelocity.Parent = humanoidRootPart
But i tryed other ways looking on others people post like:
local Direction = (humanoidRootPart.Position - args[6].Position).Unit
bodyVelocity.Velocity = Direction * 360
But dont work, i dont know what is happening, but when i try it on horizontal it work perfectly: