Hello guys, my name is Spideyalvaro99
So as you know, Im not a proffesional scripter but I always try to make my models and script. Today I needed a camera system and I found this one(FNAF2 Camera V.13 - Roblox) but it has a type of bug. As you can see in this video the camera point is looking to the camera model and is not inside the model.
I tryed to fix this problem but I didn’t find anything. Here I leave you some pictures from all the scripts. Some of them are the same for all(for example if there are 7 buttons, it is repeated 7 times).
I don’t see you actually scripting the player’s camera in any of these scripts. Could you please add the script that’s actually supposed to change the player’s camera position?
It seems to me that the script only sets your camera’s CameraSubject to the part. If you would like to have the camera to look from the part, you’d have to set the CFrame to the part aswell. All you have to do is a simple Camera.CFrame = part.CFrame.
local Camera = workspace.CurrentCamera
Camera.CameraType = "Scriptable"
Camera.CameraSubject = workspace.CameraPart
Camera.CFrame = workspace.CameraPart.CFrame
To reset to player view, just change the CameraType back to custom and set the CameraSubject back to the character’s humanoid.
CameraSubject does not mess stuff up. Infact; it’s kind of necessary. If you were to create a script to make your camera look at a moving part, a simple CameraSubject = part will suffice. If you “just change the CFrame”, you’d have to run that every single frame so your camera follows the part’s movement.