I put a LocalScript in the SpawnLocation. The LocalScript is:
script.Parent.Touched:connect(function(hit) humanoid = hit.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then char = humanoid.Parent if (char ~= nil) then plr = char:GetPlayerFromCharacter() if (plr ~= nil) then plr.CameraMode = Enum.CameraMode.LockFirstPerson end end end end)
Replace line 6 with
plr = game.Players:GetPlayerFromCharacter(char)
You just used the method wrong.
There, I think I fixed it now, I tested it out on Online Mode and it works, even when you reset.
wait(0) plr=game:service("Players").LocalPlayer --No garentee that this'll work wait(0) plr.CameraMode=0 wait(0) repeat wait(0)plr.CameraMode=1 until plr.CameraMode=="FirstPersonLock"