Hey, I am having some troubles with BodyGyros.
For some reason whatever I do, increase every power the bodygyro has the Humanoid Root part still won’t move an inch on the Y Axis due to some built in humanoid forces. How am I supposed to do this without it looking choppy? And no, I can’t set the state of the humanoid to physics because I need there to still be some humanoid movement. Anyone who has the solution to this please let me know, it would be much appreciated!
Here is the block of code for anyone that needed it:
while UIS:IsKeyDown(input.KeyCode) do
if input.KeyCode == Enum.KeyCode.Space then
if Running then
local LookVector = root.CFrame.LookVector
local Angle = math.acos( LookVector:Dot(Vector3.new(0,1,0))/(LookVector.Magnitude * LookVector.Magnitude) )
self.LookBG.CFrame = root.CFrame * CFrame.Angles(0,0,math.rad(Angle))
end
self.FlightBV.Velocity = Vector3.new(0,10,0)
else
if Running then
local LookVector = root.CFrame.LookVector
local Angle = math.acos( LookVector:Dot(Vector3.new(0,-1,0))/(LookVector.Magnitude * LookVector.Magnitude) )
self.LookBG.CFrame = root.CFrame * CFrame.Angles(0,0,math.rad(Angle))
end
self.FlightBV.Velocity = Vector3.new(0,-10,0)
end
wait()
end