This is a Localscript inside a TextBox inside a Frame Inside a GUI inside a Folder inside starter GUI. This script shows no errors in output when clicked, and no errors in output in general. I don't get why this isnt working. Please help!
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
--Camera
repeat wait() until Player.Character
Camera.CameraType = "Scriptable"
Camera.CFrame = game.Workspace.CamPos1.CFrame
--Left Door
function click()
Camera.CFrame = game.Workspace.RDoorView.CFrame
script.Parent.MouseButton1Down:connect(click)
end

2 comments
Your setting the parameter of the function inside MouseButton1Down to "click," but your trying to call the function that has the same name.
I forgot to change it but I edited it out just now. Make sure you refresh before posting a comment but thanks lol