How can I create a joystick controlled by a mouse without using dragdetectors?

I’m trying to create a joystick sort of like on a console controller, that would be controlled by a player’s mouse in 3d space. I don’t need someone to script it for me, I would rather like an explanation on where to get started.

2 Likes

you can use player:getMouse() in a local script to get the mouse

the new position that the player should walk to is located in the direction of
Vector3.new(distanceX * humanoidRootPart.CFrame.RightVector, humanoidRootPart.Position.Y, distanceY * humanoidRootPart.CFrame.LookVector)

where distanceX and distanceY is the difference between the mouse position and the joystick

then you can call :MoveTo() on the humanoid to move the character

1 Like

Oh sorry, that’s not what I meant. I’m trying to rotate a 3d lever not make a humanoid walk to a specific spot.