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

How do you make a person in first person?

Asked by
leathei -5
6 years ago

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

2 answers

Log in to vote
3
Answered by 6 years ago

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.
0
Thank you. leathei -5 — 6y
0
^ If the question helped you, mark it as answered Axceed_Xlr 380 — 6y
Ad
Log in to vote
1
Answered by
mattscy 3725 Moderation Voter Community Moderator
6 years ago

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.

Answer this question