Settings
This item only works when running on the client. Client
This is a MapLib Feature. It can be accessed by MapLib:GetFeature("Settings")
.
Functions
GetSetting
This item only works when running on the client. ClientSettings:
GetSetting
(
gui:
string
) →
any?
This function can be used to get the value of a setting.
Example:
-- Changes the camera FOV to an arbitrary number and then sets it back to the saved settings value.
local SettingsFeature = MapLib:GetFeature("Settings")
local camera = workspace.CurrentCamera
camera.FieldOFView = 120
task.wait(3)
camera.FieldOFView = SettingsFeature:GetSetting("Field Of View")