Repository navigation
Added
-
Added experimental support for getting and setting property names of now-migrated properties in
@lune/roblox.
This does not work for all property migrations, but for simpler ones such as theContentdatatype works well.
Here's an example:local roblox = require("@lune/roblox") local part = roblox.Instance.new("MeshPart") part.MeshId = "rbxassetid://1234567890" print(part.MeshContent) -- now works and has the proper "rbxassetid://1234567890" id part.MeshContent = roblox.Content.fromUri("rbxassetid://0987654321") print(part.MeshId) -- the reverse also works, the value is properly "rbxassetid://0987654321"
-
Added
GetLuminance,GetContrastRatioandGetContrastingColormethods to theColor3datatype in@lune/roblox
Changed
- Updated to Luau version
0.748
Fixed
- Fixed not being able to set Instance reference properties to
nil - Fixed a rare panic in
lune-robloxwhen creating and destroying instances from multiple threads at the same time - Fixed arithmetic on
Vector2int16andVector3int16not wrapping around the 16-bit range like in Roblox, and dividing them by zero causing a panic - Fixed
CFrame.lookAt,CFrame.lookAlongandCFrame.new(pos, lookAt)producingNaNwhen looking straight up or down - Fixed
BrickColor.newreturningTealinstead ofMedium stone greyfor unknown names and numbers - Fixed brick colors that share a name with another color, such as
Lilac, changing their number when read from instances or files - Fixed
NumberSequence.newandColorSequence.newaccepting invalid keypoints, which now error the same way as in Roblox - Fixed
BrickColor.paletteusing one-based indices instead of zero-based indices like Roblox does - Fixed
CFrame.fromAxisAngleproducing invalid rotations when given an axis that is not a unit vector - Fixed
PhysicalProperties.newnot clamping its components to the ranges that Roblox allows