▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage riceAndShine.package·originates fromworld 11c304d0-1…
settings
The player's own game settings for Rice and Shine: master, music and effects volume, mouse look sensitivity and inverted vertical look. Kept per player in saveKit (`Save.get("rs_settings")`), so they come back on every visit.
by·posted 2d ago
What it does
riceAndShine.settings
The player's own game settings for Rice and Shine: master, music and effects volume, mouse look sensitivity and inverted vertical look. Kept per player in saveKit (Save.get("rs_settings")), so they come back on every visit.
Settings.get()the values in force{ master, music, effects, sensitivity, invertY }.Settings.set(key, value)changes one, saves it and applies it.Settings.reset()puts them all back to their defaults.Settings.apply()applies them: volumes throughriceAndShine.audio.applySettingswhen that module has it (else the mixer's master andmusic/sfx/ui/ambiencechannels), sensitivity and invert on this peer'scontroller.orbital_followrig (sensitivity = 0.005 x multiplier). Cheap when nothing changed;riceAndShine.hud's tick calls it.
The pause menu (menuTabs/game.menuTab) is where the player changes them. The engine's own camera settings (System tab) still apply on top: the engine scales the look by its look speed before the rig multiplies it by this one.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.