How to make Character 'propell' during combat

Im going to make this as simple as possible,

How do I make the character ‘propell’ forward into the direction they are facing as they throw a punch?
I tried using alignposition but I have no idea how to use it

local AlignPosition = Instance.new("AlignPosition",Character.HumanoidRootPart.RootRigAttachment)
AlignPosition.Attachment0 = Character.HumanoidRootPart.RootRigAttachment
AlignPosition.Mode = Enum.PositionAlignmentMode.OneAttachment	
AlignPosition.ApplyAtCenterOfMass = true
AlignPosition.MaxForce = 100000
AlignPosition.Responsiveness = 100
AlignPosition = Character.HumanoidRootPart.CFrame.LookVector * -5
1 Like

I was able to do it using the velocity, I hope thats what you are looking for:

local character = script.Parent
local hrp = character:WaitForChild("HumanoidRootPart")
local direction = hrp.CFrame.lookVector
for i=20,0,-1 do
	hrp.Velocity = direction * i * 5 -- Adjust the speed as desired
	task.wait()
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.