RCW3993
(rcw)
November 3, 2024, 2:52am
#1
I’m drafting a combat system. For knockback, I’m using body velocity.
local bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(totalForce, totalForce, totalForce)
bv.Velocity = hrp.CFrame.LookVector * speed
bv.Parent = eHum.Parent.HumanoidRootPart
game.Debris:AddItem(bv, .5)
I have two problems:
There’s that weird pause at the start before it actually speeds up. I want to get rid of that.
I can’t seem to make it go any faster than this; I’d like to.
If anyone can help I’d really appreciate it. Thanks!
makeitxx
(Shad0wB3n3athU)
November 3, 2024, 2:56am
#2
you should probably use vector velocity or even vector force instead of body velocity , because it works way better, im not sure about the pause, but you can change the speed way better, and vector velocity is more advanced with more features and etc, but that means it requires a little bit more than just a Velocity property
Exozorcus
(Exozorcus)
November 3, 2024, 2:59am
#3
is this a local or server script?
RCW3993
(rcw)
November 3, 2024, 3:00am
#4
This is a server script. @makeitxx did you mean a linear velocity?
makeitxx
(Shad0wB3n3athU)
November 3, 2024, 3:01am
#5
no its called a vector velocity i remember
makeitxx
(Shad0wB3n3athU)
November 3, 2024, 3:03am
#7
wait lemme check studio, i swear i remember
Scottifly
(Scottifly)
November 3, 2024, 3:05am
#8
Try searching the forums. I believe I’ve heard of using an Impulse effectively for knockbacks. Posts have mentioned issues with physics and Friction as well.
I think @makeitxx meant a VectorForce .
makeitxx
(Shad0wB3n3athU)
November 3, 2024, 3:05am
#9
oh wait its just called vector force, not vector velocity
1 Like
Exozorcus
(Exozorcus)
November 3, 2024, 3:06am
#10
set the rigs network ownership to the nearest player, and let them handle the body velocity for better visuals on their side
1 Like
RCW3993
(rcw)
November 3, 2024, 3:11am
#11
This works, but I’d recommend using :ApplyImpulse() instead of a body velocity
Exozorcus
(Exozorcus)
November 3, 2024, 3:11am
#12
you wanna use body velocities, your choice
system
(system)
Closed
November 17, 2024, 3:12am
#13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.