I have this if statement inside of a function and its supposed to make you do a side flip, but it only flips you on the x axis. Let's say you are facing the x axis, the animation would make you flip sideways, but you would be going forward, I want to know how I could make the body velocity change relative to the characters torso. what's going on
if char and char.Humanoid then
local anim = char.Humanoid:LoadAnimation(char:FindFirstChild("LJumpAnim"))
anim:Play()
local bodyVelocity = Instance.new("BodyVelocity",char.Torso)
bodyVelocity.Velocity = Vector3.new(-15,-1,0)
bodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
wait(1.3)
bodyVelocity:remove()
debounce = true
end
Help is appreciated

1 comment
You have not set P http://wiki.roblox.com/index.php?title=API:Class/BodyVelocity/P