So im trying to make a jetpack but these 2 lines keep messing it up, I can make it so i can only fly on a horizontal axis but i want to make it so i can diagonally and etc.
These are the two Lines
--- One Axis Script
BodyV.MaxForce = Vector3.new(0,math.huge,0)
BodyV.Velocity = Vector3.new(0,1,0)
I get stuck in midair with this one
--- Stuck in mid-air script
BodyV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BodyV.Velocity = Vector3.new(0,0,0) --- No matter what i change this too same problem
You might need to get the CurrentCamera’s CFrame LookVector in a LocalScript (Probably through a loop inside a RunService Event using RenderStepped to detect every time the camera moves)
If you want to limit the direction to only the Y axis, then simply multiply the look vector by Vector3.new(0, 1, 0) which will cancel out the X and Z axis and leave the Y axis only.