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 make an FPS camera?

How do I make an FPS camera on my place?

1 comment

0

Thank you! This is really helpful!

2 answers

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

4 comments

0

It breaks a lot,I'd appreciate it if you can fix it or someone else to answer.

0

And how does this script break? Unless you're using admin and use the god command it shouldn't be breaking.

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.

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.

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!

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