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

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

Asked by 9 years ago

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

Log in to vote
1
Answered by
RoboFrog 400 Moderation Voter
9 years ago

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.

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 raspyjessie 117 — 9y
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. RoboFrog 400 — 9y
0
Actually putting the players max zoom to = worked just as good as firstperson lock raspyjessie 117 — 9y
Ad

Answer this question