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

Where is the Camera located in a local player?

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

✓ Accepted answer

Use CurrentCamera, so long as the script is local.

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

More Camera Properties

2 comments

0

Okay Thanks!

1

137 rep. Add another 3 and you get 1337.

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