Focus is not a valid member of workspace (clearly it is). what is wrong with my code?
local camera = wspace.CurrentCamera
local focus = wspace.Focus
local playBtn = script.Parent
local mainFrame = script.Parent.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
repeat
wait(.1)
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = focus.CFrame
local function onPlay()
camera.CameraType = Enum.CameraType.Custom
mainFrame.Visible = false
end
playBtn.Activated:Connect(onPlay)```