I was wondering why my camera manipulation isn’t working. I followed a tutorial and looked at other posts similar to this but none of them worked for me. This is in a regular Script.
local ProximityPrompt = script.Parent
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
ProximityPrompt.Triggered:Connect(function()
local Clone = game.ReplicatedStorage.NPC:Clone()
Clone.Parent = workspace
wait()
Camera.CameraType = "Scriptable"
Camera.CFrame = game.Workspace.FocusPart.CFrame
end)