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

How can I create a Field Of View Changer?

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

1 comment

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.

1 answer

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

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