#AssemblyLinearVelocity Knockback system
63 messages · Page 1 of 1 (latest)
** You are now Level 3! **
Because “Velocity” is decipricated
and to make people write better code
roblox code changes every week
why do you want to use it?
LinearVelocity
use Vector3 then
I didn't see your message when I sent it
I’ve worked on it with parts
it can move parts by adding to the parts position using vector3
eh
there isnt much to really knockback except vector3
You can add Vector3 values to the players position and add an animation and play
yeah but Velocity is now decipricated
if you want to use it, go ahead
got it
so it's AssemblyLinearVelocity
syntax is like this:
humanoidrootpart.AssemblyLinearVelocity = Vector3.new(1000, 1000, 1000)```
They deprecated Velocity in favor of AssemblyLinearVelocity. Why? That's beyond me.
well... it works the same as Velocity
better to do a for
the player will get knockback where-ever it is
if its South-East, the player is knocked backed South East
I'm just giving an example on what direction it is
what is this

who be my girlfriend
plus the while loop would timeout cause of no wait()
Sorry if someone has already answered this, but it means it is deprecated and shouldnt be used for future use
It was replaced eith LinearAssemblyVelocity
No shit sherlock, we're talking about something else
my bad man
its ok
reverse it (I think)
if you have the forward direction make it negative to get the backward?
negate the number
if it were 10, negate it so it will be -10
uhh
Get the humanoid root part
the primary part’s CFrame.LookVector is forward. make it negative for the backward direction
the primary part is the humanoidrootpart tho
Researched it a bit. PrimaryPart is the humanoid root part on the R15 models, but the head on the R6 models.
🤔 thats very weird. good info though
can you show the whole code
AssemblyLinearVelocity Knockback system
so you want to move in the backwards direction? sorry im not really able to read the code very well im on phone
Also, you shouldn't be repeatedly adding multiple velocities on top of each other. They will be sent flying.
PrimaryPart.LinearAssemblyVelocity = -PrimaryPart.CFrame.LookVector * STRENGTH
there may be a typo mb
LinearAssemblyVelocity doesnt need velocity to be taken away 🤔. It automatically decreases in velocity
Are you thinking of LinearVelocity? or any other velocity object 🤔
Exactly what I wanted to say. I didn't know how to say it though.
it does?
Okay. Then mark the post as solved.
Whatever works