of     1   

LunaticHakuzu
#139498651Monday, July 07, 2014 4:18 AM GMT

This script is in a local script, and I have already defined plr as the local player. Also, there are no output errors. plr.CharacterAdded:connect( function() plr.CameraMode = 'LockFirstPerson' end ) No first person locks.
fireblade2
#139498872Monday, July 07, 2014 4:20 AM GMT

This won't fire the first time the player spawns if the character loads before the localscript. Since when the player dies a new localscript is created, this essentially will never fire.
LunaticHakuzu
#139499050Monday, July 07, 2014 4:22 AM GMT

Ah, I forgot about that. Thank you. But why does the character load before the localscript? And is there any instance that the script loads before the character?
fireblade2
#139499616Monday, July 07, 2014 4:29 AM GMT

I don't really know. I do know, however, that in situations where it is inconsistent, or uncertain what order thing are appearing, it's important to make appropriate accommodations. This includes waiting for objects before trying to index them, rather than waiting arbitrary times and hoping for the best.
GanjaGrower420
#139506210Monday, July 07, 2014 5:44 AM GMT

local player = game.Players.LocalPlayer player.CameraMode = 0 --Enum.CameraMode.Classic wait() player.CameraMode = 1 Seems to work
GanjaGrower420
#139506281Monday, July 07, 2014 5:45 AM GMT

Make sure its a local script though

    of     1