#Is there a way to use body velocity to push a person upward?

1 messages · Page 1 of 1 (latest)

prisma totem
#

Im following a tutorial on how to make a combat system on roblox, and im trying to make it so you can launch people with the first hit of a M1 combo. I was able to get the BV working for knockback on the final hit, but i dont know how to edit it so i could make what im trying to on the first one. Thoughts would be appriceated!

Code:

local BV3 = Instance.new("BodyVelocity")
            BV3.MaxForce, BV3.Velocity = Vector3.new(5e4, 5e2, 5e4), plr.Character.HumanoidRootPart.CFrame.lookVector * 10
            BV3.Parent = plr.Character.HumanoidRootPart    
            game.Debris:AddItem(BV3, 0.16)
dusty dome
#

bodyvelocity is deprecated

prisma totem
#

What was it replaced with

dusty dome
#

Linear velocity

#

But there is a way to push upward u gotta learn how to use them

prisma totem
#

How would i go about replacing them? I cant find any way how

dusty dome
#

Prob change the vector velocity or the maxforce im not sure the name

unique abyss
#

just assign the force of the linear velocity to the LookVector of the HumanoidRootPart and multiply it to push the person stronger

#
linearVelocity.Velocity = (char.HumanoidRootPart.CFrame.LookVector * 50)
-- change the 50 by whatever you want
prisma totem
unique abyss
#

just use a localscript

prisma totem
# unique abyss just use a localscript

Forgive me, im lost. Do i have to replace the body velocity script with a linear velocity one for that to work? if so i would really like to see a example

opaque furnaceBOT
#

studio** You are now Level 1! **studio

unique abyss
# prisma totem Forgive me, im lost. Do i have to replace the body velocity script with a linear...

BodyVelocity and LinearVelocity are the same thing, but BodyVelocity is depracted (mean you should use the new instance), so replace it with LinearVelocity

local linearVelocity = Instance.new("LinearVelocity")
linearVelocity.Parent = char.HumanoidRootPart -- Char = Player's character
linearVelocity.VelocityConstraintMode = Enum.VelocityConstraintMode.Vector
linearVelocity.VectorVelocity = char.HumanoidRootPart.CFrame.LookVector -- LookVector mean the direction he's looking at with a Vector3

i don't know if the script work, because i writed it on discord

prisma totem
#

I think it’s the right direct though

#

I’m just getting return to nil errors

prisma totem
#

Got it working!

#

But i cant make it go uo

#

Up*

prisma totem
#

Or back... or forward.. qwq