I have a piece of code that uses :ApplyImpulse to the HumanoidRootPart but I only have it for going forward right now. I was wondering how I could edit this script so it can boost the character upwards like a jump and how would i make it go left, right, back for strafing.
local char = plr.Character
local root = char and char:FindFirstChild("HumanoidRootPart")
--
if root then
local magnitude = mag
local direction = root.CFrame.LookVector
local mass = root.AssemblyMass
root:ApplyImpulse(direction*magnitude*mass)
end
Thanks!