Hi, Im trying to make a fpp cutscene. Someone told me to code something like this but the end result has the camera rotating properly but instead its around my player. Any way to fix this???
Edit: Sorry I didnt make it clear "No I dont want it around my player, its supposed to be in a npcs head and the npc looks around while the player sees it"
My Camera Code:
local camera = workspace.CurrentCamera
local cam = game.Workspace.MainCharIntroOne:WaitForChild("Head")
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
repeat
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
while true do
camera.CFrame = cam.CFrame
wait()
end
There is currently no errors or warnings in the output btw.

3 comments
You need to change the CFrame of the camera to the CFrame of the object you wish to rotate around. I hope this answers your question.
^^^
No I dont want it around my player, its supposed to be in a npcs head and the npc looks around while the player sees it