Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't my first person script work for the second player in my game?

Asked by 7 years ago

I have a first person script that I made. But when I tested it in studio with 2 players, my script works for the first player who is able to move/look around in first person. But when I tested it out with the second player, the second player wouldn't be able to move/look around. In addition, the second player is also in first person just no able to look around.

My script is a LocalScript and I put it in the StarterGui.

Please help me, Thank you.

Script:

local plr = game.Players.LocalPlayer

plr.CameraMode = "1"

1
Try putting the script in StarterCharacterScripts? Kareem35 79 — 7y
0
Can't help if I only see two lines of code and it is not even formatted correctly for the sight to enable the scripters to read your code clearly. yougottols1 420 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Try game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson instead. Put it in StarterPlayerScripts.

Ad

Answer this question