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

How to change the field of view when the character spawns?

Asked by
C1RAXY 81
6 years ago
Edited 6 years ago

Hello, I have a doubt...

If I want to set for example "42" field of view when I join the game, the script should be Local or normal script? Is "camera" property of StarterPlayer or Workspace?

btw if someone can give me any website to learn basic - advanced lua or the best way to learn lua, comment below please..

0
There are no websites to help you about Roblox's LUA, except the Roblox's Developer Wiki, of course! AIphanium 124 — 6y
0
There are Tutorials in the wiki too. AIphanium 124 — 6y
0
Here is a tutorial about "Camera Manipulation" : https://www.robloxdev.com/articles/Camera-manipulation AIphanium 124 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Local script:

local cam = game.Workspace.CurrentCamera
local player = game.Players.Localplayer.Name

wait(3)
cam.Type = "Scriptable"
cam.FeildOfView = 42

-When learning I just recommend going on the internet and searching up what you would like to achieve and then look for any roblox developer posts, they really help alot...

-Also AlvinBlox on youtube.

0
AlvinBlox sucks, i never learnt anything about LUA from him. AIphanium 124 — 6y
0
And also, you don't need the LocalPlayer's name. AIphanium 124 — 6y
0
Yeah i saw AlvinBlox but it dosnt help at all, the script worked but i had to edit it like the "LocalPlayer" and some stuff but thanks for the script it worked m8. C1RAXY 81 — 6y
0
i dont like AlvinBlox, he doesn't teach you, he just show a full script and that's it mewant_taco 17 — 6y
Ad

Answer this question