Hello, I was writing a main menu script for my game and this script is not working anymore. There is no errors and this is a local script
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local character = player.Character or player.CharacterAdded:Wait()
local play = script.Parent.PlayButton
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = workspace.Cam1.CFrame
play.MouseButton1Click:Connect(function()
camera.CameraType = Enum.CameraType.Custom
print("hello")
end)