UserSettings and UserGameSettings
FirstVertex opened this issue · 1 comments
I need to manipulate some camera settings at certain times. Here you can see some discussion of how to achieve that through the UserSettings.UserGameSettings.RotationType
I noticed such service is not exposed in roblox-ts/services. Is there any way it could be added? Or, did I miss some way that functionality is already exposed elsewhere?
References:
RotationType - what I want to tweak
UserGameSettings - contains the above
UserSettings - contains the above
Thanks! 🍺
This package is purely a convenience thing to use instead of calling game.GetService()
. For example, you can just fetch RunService via:
const RunService = game.GetService("RunService");
UserSettings
is actually a weird case. It's a ServiceProvider
like DataModel
(game) is, but provides different services. In this case, the service you want from it is UserGameSettings
. You can get a reference to UserSettings
by calling the UserSettings()
global function.
So in summary, to do what you want:
UserSettings().GetService("UserGameSettings").RotationType