Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make a person in first person?

Idk how to make a person to go to first person when they first make a game

2 answers

To make a First person perspective, the following code is used:

-- Declaration Section 

local player = game:GetService("Players").LocalPlayer
local isFirstPerson = false

-- Processing Section 

print ("Changing to First Person Mode!")
player.CameraMode = "LockFirstPerson"
player.CameraMaxZoomDistance = 0.5
print ("First Person Mode Initialized!")
isFirstPerson = true 

And that's basically it.

If this helped, please mark as answered! Have a lovely day of coding.

2 comments

0

Thank you.

0

^ If the question helped you, mark it as answered

You shouldn't need any scripting for this. All you have to do is open the Explorer and Properties with View tab>Explorer and View tab>Properties. Then, select the StarterPlayer in the explorer window, and its properties should appear in the properties window. Find the property called CameraMode and set it to LockFirstPerson instead of Classic.

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