Can someone tell me how to fix this script or give me the right code?
function run() local plr = game.Players.LocalPlayer local camera = game.Workspace.Camera2:Clone() if plr.PlayerGui then camera.Parent = plr.PlayerGui end game.ScreenGui.Intro.Play.MouseButton1Click:Connect(run)
-- INSERT LOCAL SCRIPT INSIDE THE BUTTON --
-- put the code below:
local plr = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function)_ local camera = game.Workspace.Camera2:Clone() if not plr.PlayerGui:FindFirstChild("Camera2") then camera.Parent = plr.PlayerGui end end)