Why wouldn't the Camera's Subject be focused on the truss? Here is the Code:
local cam=workspace.CurrentCamera
local button=game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
-- In Line 2 SH cut off :WaitForChild("ScreenGui")
game.Players.PlayerAdded:connect(function(plr)
cam.CameraSubject=workspace:FindFirstChild("Truss")
end)
button.TextButton.MouseButton1Down:connect(function()
cam.CameraSubject=plr.Character:WaitForChild("Humanoid")
end)
I want the Camera's Subject to go back to the Humanoid when the Gui is clicked.
This Error kept popping up in the Output
Please Respect that I am a Beginner.

3 comments
The Camera glitches up, It stays in the same Pos.
But anyways thx bro.
People often make the same mistake you just did. FindFirstChild() either returns the child, or nil. It's only useful because it works like a function, so it won't throw an error if its nil. It's only useful in if statements, though, because otherwise if it returns nil you will be saying "nil.MouseButton1Click"