Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Player stops rotating in first person with this script?

For a some reason when I try to change CameraSubject with local script, it does changes it but it stops rotating the character in first person...?

local camera = workspace.CurrentCamera
camera.CameraSubject = character:WaitForChild("Head")

Anyone knows how to solve this problem?

answer to matiss : No, I can't I did that script for first person body render with that script, but since its R15, when its not attached to head camera rip offs from body so I need it to lock camera to the head with this script but it breaks the first person camera rotation

4 comments

0

it stops rotating because in first person, the player can control their movement with the camera, maybe make it so you cant go in first person?

0

answered above

0

Do you need it to be first person, or is it for player's choice? Because if not, then I'd say lock it third person only.

0

for player choice, they just use mouse scroll just like before but it shows body in first person, it just won't work as I needed, I need it to attach camera at head so it won't rip off camera from body torso (R15 using), anyways local transparency script is already working

1 answer

you should make the camera type scriptable, so the player cannot move the camera

camera.CameraType = Enum.CameraType.Scriptable

This discussion is preserved as it was. New answers, comments, and votes are closed.