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. Hover text is
"{script} is overriding this value."where{script}is that script’sapi.name. Multiple scripts:"A and B are overriding this value."
OverrideHandle
The handle lets you change or undo the override.On unload
You don’t have to call:Release() yourself. Overrides are removed when your script unloads, same as legitbot influence handles.