Control the direction of BodyVelocity?

I’m adding this shoulder bash move to our game and I’m using BodyVelocity to move the player.

		local V = Instance.new("BodyVelocity",Character.HumanoidRootPart)
		V.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
		V.Velocity = Vector3.new(0, 10, 50)
		game.Debris:AddItem(V, .3)

I want it to move the player in the direction that they’re facing but this happens:


If anyone knows how to do this I would appreciate it

multiply the humanoids movedirection by the velocity

		local V = Instance.new("BodyVelocity",Character.HumanoidRootPart)
		V.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
		V.Velocity = Character.Humanoid.MoveDirection * 50 + Vector3.new(0, 10, 0)
		game.Debris:AddItem(V, .3)
1 Like

you can multiply the direction that the humanoidrootpart is facing by the speed you want to go

velocity = direction * speed