Skip to content

0.11.2

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 10:57
1608bcd

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 the Content datatype 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, GetContrastRatio and GetContrastingColor methods to the Color3 datatype 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-roblox when creating and destroying instances from multiple threads at the same time
  • Fixed arithmetic on Vector2int16 and Vector3int16 not wrapping around the 16-bit range like in Roblox, and dividing them by zero causing a panic
  • Fixed CFrame.lookAt, CFrame.lookAlong and CFrame.new(pos, lookAt) producing NaN when looking straight up or down
  • Fixed BrickColor.new returning Teal instead of Medium stone grey for 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.new and ColorSequence.new accepting invalid keypoints, which now error the same way as in Roblox
  • Fixed BrickColor.palette using one-based indices instead of zero-based indices like Roblox does
  • Fixed CFrame.fromAxisAngle producing invalid rotations when given an axis that is not a unit vector
  • Fixed PhysicalProperties.new not clamping its components to the ranges that Roblox allows