#AssemblyLinearVelocity Knockback system

63 messages · Page 1 of 1 (latest)

crimson salmon
#

that means ur on that line / its incomplete

neat grottoBOT
#

studio** You are now Level 3! **studio

maiden shale
#

Because “Velocity” is decipricated

#

and to make people write better code

#

roblox code changes every week

#

why do you want to use it?

primal widget
#

LinearVelocity

maiden shale
#

use Vector3 then

primal widget
#

Use position

#

If you want to animate it, use TweenService

maiden shale
#

Use Vector3 for moving

#

then use Vector3 and animation

#

no

primal widget
#

I didn't see your message when I sent it

maiden shale
#

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

primal widget
#

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

maiden shale
#

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

true leaf
#

who be my girlfriend

maiden shale
#

plus the while loop would timeout cause of no wait()

past heron
#

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

maiden shale
past heron
#

my bad man

maiden shale
#

its ok

primal widget
#

reverse it (I think)

past heron
#

if you have the forward direction make it negative to get the backward?

primal widget
#

negate the number

#

if it were 10, negate it so it will be -10

#

uhh

#

Get the humanoid root part

past heron
#

the primary part’s CFrame.LookVector is forward. make it negative for the backward direction

past heron
primal widget
past heron
primal widget
#

can you show the whole code

jaunty condor
#

AssemblyLinearVelocity Knockback system

past heron
#

so you want to move in the backwards direction? sorry im not really able to read the code very well im on phone

primal widget
#

Also, you shouldn't be repeatedly adding multiple velocities on top of each other. They will be sent flying.

past heron
#

PrimaryPart.LinearAssemblyVelocity = -PrimaryPart.CFrame.LookVector * STRENGTH

#

there may be a typo mb

primal widget
#

You're using a whiletrue loop on it

#

1,000 will send it off flying.

past heron
#

LinearAssemblyVelocity doesnt need velocity to be taken away 🤔. It automatically decreases in velocity

#

Are you thinking of LinearVelocity? or any other velocity object 🤔

primal widget
#

it does?

#

Okay. Then mark the post as solved.

#

Whatever works