How do I set individual values of a NumberRange attribute inside of a script?

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.

1 Like

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
3 Likes

Thanks, I wasn’t aware of NumberRange.new.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.