Camera change on ProximityPrompt trigger

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)

This is the bit I was missing. I feel a bit stupid now seeing as this probably should’ve been common sense on my end. Regardless, I appreciate your assistance and hope you have a great rest of your day/night.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.