I have this script
wait(0.1) script.Parent.Parent.CameraMode = Enum.CameraMode.LockFirstPerson script.Parent.Parent.Characer.Humanoid.Died:connect(function(plr) wait(0.1) script.Parent.Parent.CameraMode = Enum.CameraMode.LockFirstPerson end)
this script is to lock your camera after you die and before so i never changes! this works when i join the game but when i reset myself it dosent go into first person? This works in studio on play solo, but when i start a server of 2 people on studio the 2nd person dosent go into first person??
I really need help with this and i put it in localscript and put wait(0.1) before when it locks it and after you die
please answer this is very important to me for my game ive been working on so noone zooms out and cheats.
Try this as a local script.
p = game.Players.LocalPlayer repeat wait() until p.Character p.CameraMaxZoomDistance = 0.5 -- This is basically first person
If you change the maxzoomdistance to 0.5, the minimum, the player will not be able to zoom out. It continues to work even after death.