Rotating a part with a players movement inputs

  1. What do you want to achieve? I want to be able to rotate a part based on a players movement inputs. For example lets say someone on mobile holds up on the joystick I want the part to start facing that direction

  2. What is the issue? I cant find a way to convert these movements inputs into some sort of orientation

  3. What solutions have you tried so far? I tried to use move direction but that didn’t go very far.

Any ideas or help would be appreciated!

Just so yall get a better idea, when I say they are holding up with a joystick or W key for example, the part will continue to rotate in that direction.

I figured it out, if anyone wants to do something like this just type something like this

local GetMoveVector = require(Player:WaitForChild(“PlayerScripts”).PlayerModule:WaitForChild(“ControlModule”)):GetMoveVector()

print(GetMoveVector)
coolPart.Orientation += Vector3.new(-GetMoveVector.Z, -GetMoveVector.X, 0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.