How to cast velocity with CFrame?

  1. What do you want to achieve? Keep it simple and clear!
    I want to achieve a way to set velocity to the player based off from the current position on another player (player using the push force)

  2. What is the issue? Include screenshots / videos if possible!
    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried doing some loops with CFrame, but got nothing

local OrientationPush = CFrame.new(Player.Character.HumanoidRootPart.Position, Humanoid.Parent.HumanoidRootPart.CFrame.lookVector * -100)
	Humanoid.Parent.UpperTorso.Velocity = OrientationPush

This is the part of the code that gives the error.

im terrible with cframe scripting and i rarely use it but, pretty sure you have to do vector3.new

You don’t need to create a new CFrame here.
To push them backwards based on their orientation (LookVector), you can simply do:

HumanoidRootPart.Velocity = HumanoidRootPart.CFrame.LookVector * - 100

(UpperTorso) does not exist with R6, only R15 have this, hence why I’m using HumanoidRootPart.

1 Like