I’m confused since I already used this script but now it’s like glitched and I always get the wrong view.
local Part = game.Workspace.Cam
local Camera = game.workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(Part.CFrame)
View I wanted:
View I got:
Maybe the part hasn’t loaded yet? try with
local Part = game.Workspace:WaitForChild("Cam")
-- WaitForChild to make sure it has loaded
local Camera = game.Workspace.CurrentCamera
-- also respect game.Workspace capitals
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(Part.CFrame)
1 Like
Nice try but still doesnt work 
Infinite yield possible on ‘Workspace:WaitForChild(“Cam”)’ - Studio
Make sure a Part named “Cam” exists in workspace, and make sure its anchored too
1 Like
I’ve got it now . Created A New Part Renamed it and replaced the CFrame.New with just the Cframe
local Part = game.Workspace:WaitForChild("CamPart")
-- WaitForChild to make sure it has loaded
local Camera = game.Workspace.CurrentCamera
-- also respect game.Workspace capitals
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = Part.CFrame
1 Like