Why is the camera not moving to the part

repeat wait() until game:IsLoaded()


local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local StarterPlatForm = game.Workspace:FindFirstChild("CharacterCustomPlate")
local CameraPart = game.Workspace.CharacterCustomizezation:FindFirstChild("CustomizeCamera")
local PLrsCamera = game.Workspace.CurrentCamera 

repeat PLrsCamera.CameraType = Enum.CameraType.Scriptable  wait(1) until PLrsCamera.CameraType == Enum.CameraType.Scriptable




PLrsCamera.CFrame = CameraPart.CFrame

Can some tell me why I keep getting this error

Players.wackybot123.PlayerScripts.LocalScript:16: attempt to index nil with ‘CFrame’

Make sure that CameraPart exists and is not nil. Check to see that names are typed correctly and the parts exist within workspace in the line where you define the variable “CameraPart”.

I know why it isn’t working silly me

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.