here's the script
-- Constants -- local Camera = game.workspace.CurrentCamera local Player = game.Players.LocalPlayer
-- Camera -- repeat wait() until Player.Character
Camera.CameraType = "Scriptable" Camera.CFrame = game.Workspace.CamPart.CFrame
script.Parent.Enabled = true
here's an image of the button
file:///C:/Users/fergu/OneDrive/Pictures/New%20Game%20Graphic.PNG
Any help would be appreciated!

2 comments
Take a look at the mouse events for ui's https://developer.roblox.com/en-us/api-reference/event/GuiButton/MouseButton1Click
Could you add the actual script not a bunch of lines, and i might be able to help, not hating just asking thanks