handle:OverrideValue(value, priority?) forces a control to act as if it has a certain value, without changing what the user sees in the menu. Whatever the user picked still shows in the UI; the rest of Limerence reads your value instead.
Use this when you want to temporarily turn a feature on or off (or push a slider somewhere) without fighting the user’s own setting.
- The higher the
priority, the more it wins. Default is0. - Multiple overrides can be active at once. When the highest-priority one is released, the next-highest takes over.
- A bolt icon appears next to the control’s name while any override is active. Hovering it tells the user which script is doing it (“My Script is overriding this value.”).
OverrideHandle
The handle you get back lets you change or undo the override.On unload
You don’t have to call:Release() yourself. Every override you make is released automatically when your script unloads.