LockFirstPerson is not working for some reason?
I'm trying to make a round based game where it teleports players to the round and back. When they are in the round it should turn them to first person (using LockFirstPerson), but it doesn't work or print any errors in the output? I also used the print method to find out the code where the error starts, and it didn't print anything.
(InRound is a bool value that changes when the player enters the round)
This is also a local script. I tried it out as a server script as well and it still didn't work.
01 | local InRound = game.ReplicatedStorage.InRound |
02 | local Plr = game.Players.LocalPlayer |
05 | if InRound.Value = = true then |
07 | Plr.CameraMode = Enum.CameraMode.LockFirstPerson |
10 | if InRound.Value = = false then |
11 | Plr.CameraMode = Enum.CameraMode.Classic |