local Camera = game.Workspace.CurrentCamera game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) if string.sub(msg,1,10) == Prefix.."spectate " then Camera.CameraSubject = game.Players:FindFirstChild(string.sub(msg,11)).Character.Humanoid end end) end)
try
Camera.CameraSubject = Enum.CameraSubject. --type what you want the camera subject to be after the .
Cameras can be changed by a local script, NOT a server script. So, if you want to change the CameraSubject, you have to do it in a local script.
Also, you can change the CameraSubject to a player's character model instead of a player's humanoid. Like this:
local cam = workspace.CurrentCamera cam.CameraSubject = game.Players.LocalPlayer.Character