Help my camera won't go back to the player

Help I wanted it so that whenever the player clicks that button his camera goes back to the player and the cutscene is finished but I need help any solutions?

local camera = workspace.CurrentCamera
local focus = workspace.Focus
local playBtn = script.Parent
local Place = game.Workspace.Focus2
local player = game.Players.LocalPlayer
local TweenService = game:GetService(“TweenService”)

repeat
wait(.1)
camera.CameraType = Enum.CameraType.Scriptable
local Info = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
-1,
false,
0
)
local CamTween = TweenService:Create(camera, Info, {CFrame = Place.CFrame})
CamTween:Play()

until camera.CameraType == Enum.CameraType.Scriptable

camera.CFrame = focus.CFrame

local function onPlay()
camera.CameraType = Enum.CameraType.Custom
print(“function”)
playBtn.Visible = false
end

playBtn.Activated:Connect(onPlay)

You can set the Camera’s CameraSubject to the player’s humanoid, and change the camera type to Enum.CameraType.Custom.

it’s still not working I put it in the function

local function onPlay()

camera.CameraType = “Custom”

camera.CameraSubject = Humanoid

print(“function”)

playBtn.Visible = false

end

playBtn.Activated:Connect(onPlay)