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

How Do Put A Players Camera In FirstPerson?

Asked by 10 years ago

Just like any horror game, you need a FirstPerson script. But the problem is: how do I do that? Any Suggestions?

2 answers

Log in to vote
2
Answered by
lomo0987 250 Moderation Voter
10 years ago

I believe this will work.

game.Players.PlayerAdded:connect(function(player)
    player.CameraMode = "LockFirstPerson"
end)
Ad
Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago
while wait() do
if script.Parent.Parent.Character.Humanoid.Health~=0 then
script.Parent.Parent.CameraMode = 1
else
script.Parent.Parent.CameraMode = 0
end
end

This script is to reset people's cameras to normal on death and FPS on respawn, THIS MUST BE PUT IN A LOCAL SCRIPT UNDER STARTERGUI OR STARTERPACK.

Answer this question