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

How can I create a Field Of View Changer?

Asked by 6 years ago

Depending on players speed, what's the formula to calculate a FOV varying depending on a player's speed?

0
That's up to you to decide. You would want to know what your FOV should be when your WalkSpeed is normal, as well as what it would be when it is faster or slower. M39a9am3R 3210 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Somthing like this:

local view = false
if (put something here) then
        Camera.FieldOfView = Camera.FieldOfView - 5
        game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
        game.Workspace.CurrentCamera.CameraType = "local Number Varible"
        view = true 
        view = false
        return 
        end
        if not view then
        Camera.FieldOfView = Camera.FieldOfView - 5
        game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
        game.Workspace.CurrentCamera.CameraType = "same local Number Varible"
        view = true 
        end
    end

end
Ad

Answer this question