Why is there 2?
What are the differences in their functionality?
I tried both, and it seems there isn’t a significant difference between them.
.random()
may be more optimized than .Random()
since it comes with documentation, but overall, there are no notable differences. You should be fine using either one.
I would not use BrickColor
at all, it is a deprecated thing and thus there’s lots of weird things in BrickColor
A bunch of objects on roblox have both a camelCase version, and a CamelCase version (capital letter at the beginning). Usually, the ones with lowercase at the start are deprecated in favor of having a capital letter, and newer properties, functions, methods, …, all use uppercase letters. The lowercase versions comes from older roblox. I can’t tell you why (some?) where lowercase back then, (my guess is that the syntax must have lacked standardization and some were uppercase while others where lowercase, but I wasn’t a developer back then so I can’t say)
I read @7booooy’s answer, and yeah, .Random() isn’t in the docs which is odd…
Usually, the only lowercase properties, functions, …, are .new(), .fromRGB(), etc, constructor functions basically
other note:
(The two are probably the exact same implementation, and BrickColor is not deprecated. Color3 does kinda replace it, but I still sometimes use BrickColor because I think it has some nice preset colors)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.