How do I make the player's character not turn around when moving the camera, but also…
- User
How do I make the player's character not turn around when moving the camera, but also allowing he head and hands to move corresponding to the head
- Assistant
As an AI language model, I do not have knowledge of which game engine or programming language you are using. Generally speaking, you would need to separate the rotation of the character's body from the rotation of the camera. One way to do this is to have a separate transform for the character's head and hands, which is parented to the camera. This way, when the camera rotates, the head and hands will follow, but the body will remain facing the same direction.
Another option is to use a script to apply the rotation of the camera to the head and hands, while keeping the body rotation fixed. This would require more programming knowledge and would depend on which game engine and programming language you are using.
In summary, you need to find a way to separate the rotational movement of the camera from the character's body rotation and apply it only to the head and hands.
- User
Can you make me a script to make the player’s character not turn around when moving the camera, but also allowing he head and hands to move corresponding to the head in a Roblox studio script
- Assistant
Certainly! Here's an example script that should achieve the desired effect:
lua - User
What if I want the character to be able to move but not turn?
- Assistant
To allow the character to move but not turn, you can modify the script to only update the character's position and not its rotation. Here's an updated version of the script that should achieve this:
lua