The camera change activates when the player clicks a GUI button.
Script:
local Camera = game.Workspace.CurrentCamera local Players = game.Players.LocalPlayer local button = game.StarterGui.Camera.TextButton button.MouseButton1Click:Connect(function(player) repeat wait() until Players.Character Camera.CameraType = "Scriptable" Camera.CFrame = workspace.Rocket.Rocket.CamPart.CFrame end)
You are attempting to reference StaterGui when you should be referencing the current gui which is PlayerGui.
Fix:
local Camera = game.Workspace.CurrentCamera local Players = game.Players.LocalPlayer local button = game.Players:FindFirstChild(Players.name).PlayerGui.Camera.TextButton button.MouseButton1Click:Connect(function(player) repeat wait() until Players.Character Camera.CameraType = "Scriptable" Camera.CFrame = workspace.Rocket.Rocket.CamPart.CFrame end)