Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Setting the camera to another player?

How would I set the players camera to another players camera? would it be game.Players.playername.Camera? or

1 answer

✓ Accepted answer

You would set the CurrentCamera's CameraSubject to another player's humanoid.

--local script

local Players = game.Players:GetChildren()
local PlayerSubject = Players[math.random(1, #Players)] --Setting it to a random player

local Camera = game.Workspace.CurrentCamera --Note that the CurrentCamera can only be accessed from a local script.

Camera.CameraSubject = PlayerSubject.Character.Humanoid

Something like that, I think. Except you would put the random player in a loop, to make it a different player. Just look at the Wiki, it explains more xD My code isn't quite right.

This discussion is preserved as it was. New answers, comments, and votes are closed.