local function convertMoveToCameraSpace()
local move = hum.MoveDirection
if move.Magnitude == 0 then
return Vector3.zero
end
move = Vector3.new(move.X, 0, move.Z)
if move.Magnitude == 0 then
return Vector3.zero
end
move = move.Unit
local cam = workspace.CurrentCamera
local cf = cam.CFrame
local result =
cf.RightVector * move.X +
cf.LookVector * move.Z
return result.Unit
end
this is dynamic joystick movement for flying system
why do i move left when joystick is shifted to right
and vice versa
** You are now Level 2! **