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

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

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"

2 comments

1

Try putting the script in StarterCharacterScripts?

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.

1 answer

✓ Accepted answer

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

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