Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

FPS works in studio but not online?

Asked by 10 years ago

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.

0
its also in starter gui LittleBigDeveloper 245 — 10y

1 answer

Log in to vote
2
Answered by 10 years ago

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.

0
Thanks For Answering But Ive Already Found A Solution :) LittleBigDeveloper 245 — 10y
Ad

Answer this question