I have no idea how to change the min/max values of a NumberRange attribute inside a script.
If someone could provide me with documentation or the correct syntax for writing it out it would be a huge help.
I have no idea how to change the min/max values of a NumberRange attribute inside a script.
If someone could provide me with documentation or the correct syntax for writing it out it would be a huge help.
Here are the docs: NumberRange | Documentation - Roblox Creator Hub
Example:
local Range = NumberRange.new(50, 100)
-- Instance example: ParticleEmitter.Lifetime = Range
print(Range.Min, Range.Max)
-- Or
Range.Min = 25
Thanks, I wasn’t aware of NumberRange.new.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.