I want a BodyVelocity to be set based on movement variables and the direction a part is facing, so the player is able to control it with WASD, arrow keys, joystick, etc. I’m sure there’s a simple solution I’m missing, but this is what I have right now.
player:WaitForChild("BodyVelocity").Velocity = player.CFrame.LookVector * Vector3.new(mh,0,mv) * 10
Original idea:
player:WaitForChild("BodyVelocity").Velocity = (CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(ax),0) * CFrame.new(mh*20,0,-mv*20)).Position