A UDim2 contains two UDim properties named X and Y. When indexing these with intellisense, it behaves as if they are UDim2 instances rather than UDim instances.
Reproduction is straightforward.
- Open included RBXL, which contains a script in the workspace (which has one line
local udim = UDim2.new()
followed by two comment lines) - On Line 4 of this script, enter
udim.X.
- intellisense will propose adding another X or Y instead of Scale or Offset.
udim2repro.rbxl (18.1 KB)
I am using Studio’s default settings for intellisense.