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

How would I go about Forcing First Person view?

Asked by 10 years ago

So I've got this scope script bound to "q" and whenever I scope in and then out, I'm back to Third-Person. Any way to avoid this?

01Tool = script.Parent
02Player = game.Players.LocalPlayer
03Cam = game.Workspace.CurrentCamera
04 
05Tool.Unequipped:connect(function()
06Cam.FieldOfView = 80
07Player.CameraMode = "Classic"
08if Player.PlayerGui:FindFirstChild("Scope") ~= nil then
09Player.PlayerGui.Scope:Destroy()
10end
11end)
12 
13zoomed = false
14function ZOOM(key)
15if key then
View all 36 lines...
0
Have you tried doing 'Player.CameraMode = 0' or 'Player.CameraMode = 1'? Because I've noticed just doing 'Player.CameraMode = "LockFirstPerson" is a bit buggy. [0 = Classic, 1 = LockFirstPerson] TheeDeathCaster 2368 — 10y
0
Same effect. After pressing "q" to unzoom, it still brings me back to third person. broetchen 0 — 10y

3 answers

Log in to vote
0
Answered by 10 years ago

They have added a StarterPlayer folder to roblox, in there there is a camera option to keep you in first person, without scripts

Ad
Log in to vote
0
Answered by
RedCombee 585 Moderation Voter
10 years ago
1Cam.CameraMode = "LockFirstPerson"

I'm pretty sure that's what you're looking for.

0
I've done that, but it doesn't work. After pressing "q" to unzoom, it still brings me back to third person. broetchen 0 — 10y
Log in to vote
0
Answered by 10 years ago

EASY local plr = game.Players.localPlayer local cam = game.workspace.CurrentCamera local chr = nil

chr = character plr.CameraMode = 1

while false do wait () cam.CameraType = 0 cam.CoordinateFrame = CFrame.new (200,10,0) cam.focus = CFrame.new (200,7,500) cam.FieldOfView = 20 end

Put it in starter GUI

Answer this question