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

How do I make an FPS camera?

Asked by
Regg12 0
10 years ago

How do I make an FPS camera on my place?

0
Thank you! This is really helpful! GlxkTerrence 5 — 6y

2 answers

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago

Place in a LocalScript in StarterGui or StarterPack.

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
0
It breaks a lot,I'd appreciate it if you can fix it or someone else to answer. Regg12 0 — 10y
0
And how does this script break? Unless you're using admin and use the god command it shouldn't be breaking. M39a9am3R 3210 — 10y
0
I tried putting the whole text into a LocalScript and after that I've tried to put it in StarterGui it didn't work.I tried in StarterPack after but it still didn't work. Regg12 0 — 10y
0
It does work, could you be copying the numbers too? If so, hover over the top right corner to find the View Source button, and copy from there. M39a9am3R 3210 — 10y
Ad
Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
10 years ago

Here you Go

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        if plr and char then
            plr.CameraMaxZoomDistance = 0.5
            plr.CameraMinZoomDistance = 0.5
        end
    end)
end)

Enjoy!

Answer this question