Hi, for a local script to work for a button, you need to place it in PlayerScripts or CharacterScript, or even PlayerGui
local Button = game.Workspace:WaitForChild("Button")
local Player = game.Players.LocalPlayer
local CurrentCamera = game.Workspace.CurrentCamera
local ClosedCamera = game.Workspace:FindFirstChild("ClosedCamera")
local Char = Player.Character or Player.CharacterAdded:Wait()
Button.Triggered:Connect(function(Player)
print("Button")
end)