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

Where is the Camera located in a local player?

Asked by 9 years ago

I am trying to make a script inwhich it changes the field of view when activated. It needs to be the local player's camera so only that player's field of view changes. I just don't know what I should do to edit the Camera's properties


Tool.Activated:connect(function() SlashAnimLoaded:Play() game.Players.LocalPlayer. ???.FieldOfView = 20 --??? is where I don't know what to put to find the camera. end)

Any help?

1 answer

Log in to vote
1
Answered by
Redbullusa 1580 Moderation Voter
9 years ago

Use CurrentCamera, so long as the script is local.

Tool.Activated:connect(function()
    SlashAnimLoaded:Play()
    workspace.CurrentCamera.FieldOfView = 20
end)

More Camera Properties

0
Okay Thanks! minikitkat 687 — 9y
1
137 rep. Add another 3 and you get 1337. EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question