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

How do i lock a person in firstperson? Even after they reset

I have tried to lock a person in first person but when they reset they seem to lose it. Is there a way to get them not to lose it when they reset or die?

1 answer

There's probably a more efficient way, but one way that would most definitely work is placing an invisible, can't collide button over the spawn (or each applicable spawn).

Assuming you're using a localscript to do this, you can make anybody who touches that button get the force first person script placed into their PlayerGui. Or, you could probably just place the local script into StarterGui, put a wait(1) at the top (maybe even shorter) and you'll be fine.

If it isn't a local script, it's a hassle to do so and I would just suggest moving it to a local script. If you'd like me to explain the process I'd use for the regular script, I could do so, but it'll be more prone to errors caused by ROBLOX servers.

3 comments

0

I think i might do that spawn thing even know it will be a huge burden to do so :/ And it is in a local script but i will need to separate it

0

Why not use the StarterGui thing then? Just make a ScreenGui and place only the local script into it -- it'll then run every time somebody joins or respawns.

0

Actually putting the players max zoom to = worked just as good as firstperson lock

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