Where it is zoomed all the way in and stays there.
Examples: Murder/Murder Mystery
Incorrect to all, I REALLY RECOMMEND that:
while true do wait(0.5) script.Parent.Parent.CameraMode = "LockFirstPerson" end
1 | game.Players.reaper 5. CameraMode = 1 |
If you found this useful please choose it as the correct answer.
@reaper5 just wow
That is working, it has been tested!
How do you think that this code WILL work on every PLAYER!
Create a localscript and put it into the StarterGui, we will now get the player:
1 | local player = game.Players.LocalPlayer |
Now we need to LOCK the player in FPS Mode
1 | local player = game.Players.LocalPlayer |
2 | player.CameraMode = Enum.CameraMode.LockFirstPerson |
3 | player.Camera.FieldOfView = 55 -- Or change your FOV |
That's it and reaper5 stop.
Whenever a player enters your game(after he/she's load) he goes into 1stPerson Only.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | if player:WaitForDataReady() then |
3 | player.CameraMode = "LockFirstPerson" |
4 | end |
5 | end ) |
Try this, it is easier to munipulate it when say a map ends or your character dies. It must be in a local script.
01 | --_G.FirstPersonEnabled should be modified through your main script, that way people aren't always stuck in First Person Mode. |
02 |
03 | repeat wait() until _G.FirstPersonEnabled = = true |
04 | while wait() do |
05 | if _G.FirstPersonEnabled = = true and script.Parent.Parent.Character.Humanoid.Health~ = 0 then |
06 | script.Parent.Parent.CameraMode = 1 |
07 | else |
08 | script.Parent.Parent.CameraMode = 0 |
09 | end |
10 | end |
--Look, you can use this:
game.Players.PlayerAdded:connect(function(player)
1 | if player:WaitForDataReady() then |
2 |
3 | player.CameraMode = "LockFirstPerson" |
4 |
5 | end |
end)
--just know that this is roblox's built in fps camera. It is buggy.