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

FPS works in studio but not online?

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.

1 comment

0

its also in starter gui

1 answer

✓ Accepted answer

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.

1 comment

0

Thanks For Answering But Ive Already Found A Solution :)

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