Camera Setting to a Part's CFrame in Studio, but not the Roblox Client

Hello!
I am trying to make a title screen where the camera will go to a standstill point and until you click play, it will stay at the CFrame of a part.

The script I made works fantastic inside studio, but when I go to the actual game page in the Roblox Client, the camera never went to the CFrame of the part.

Client is giving me no errors, and its just not going to the CFrame.

Below is a video on whats happening and the code.

local CurrentCam = workspace.CurrentCamera

local CamPart = workspace:WaitForChild("CameraPart")

local Play = script.Parent:WaitForChild("Play")

wait(0.001)

script.Parent.Enabled = true

CurrentCam.CameraType = Enum.CameraType.Scriptable

CurrentCam.CFrame = CamPart.CFrame

local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local hum = Character:WaitForChild("HumanoidRootPart")

hum.Anchored = true

local function playEntered ()
	CurrentCam.CFrame = CamPart.CFrame
	
end

Play.ImageButton.MouseButton1Click:Connect(function()
	CurrentCam.CameraType = Enum.CameraType.Custom
	hum.Anchored = false
	script.Parent.Enabled = false
	wait(0.001)
	script:Destroy()
end)

-- I use alot of WaitForChild so I can eliminate the issue for not strong loading times 
-- (script running before HumanoidRootPart or the camera part loads in.

Below is the video: 2022-11-13 17-35-42

I have tried refreshing the page (because I have had issues in the past with that happening)

If you set the Camera on the Server, it can set everyone’s Camera to the Intro, its best to use a LocalScript as it only Manipulates the Players Camera Only

The camera is within the StarterGUI and is in a local script