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

How Do I Create A Spectating Script?

I am currently working on a game that included spectating. How do I make a spectating script?

1 answer

✓ Accepted answer

This would need to be in a LocalScript located in the player's StarterGui or Backpack. You find the CurrentCamera in Workspace, and change the CameraSubject to the desired player's Humanoid (To view First Person).

game.Workspace.CurrentCamera.CameraSubject = game.Players.DESIREDPLAYER.Character.Humanoid

That is just an outline/guide. Putting that in an empty script and running the game won't make it work. To change it back, just make the CameraSubject to the original player's Humanoid with the following:

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid

More information can be found here.

Hoped I helped.

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