Converting Scale to Offset

The whole story is a bit more complicated. The person im making this for wants a drag and drop system within the inventory, and in order for me to correctly register the slot its dropped above I firstly have to register the slots positions in offset, since whenever the UI is dragged it changes its position to offset.

@Lielmaster I’m slowly starting to feel really stupid. X is not a valid member of Frame "Players.Flauschi_XD.PlayerGui.InventoryUI.Inventory"

I updated the script, try it again.
The reason it said this

is because you gave the Parent Object itself not the size. But dont worry I updated it, you can give the parent object

Correct result: 0,376 0,360
Your result: 376.08312341309 359.84449487305’

close enough, but damn

try use math.round after you got the results, or round the results before returning it from the function

Oh I see
“AbsolutePosition” and “AbsoluteSize” are what you’re looking for then
Also if the decimals are a problem use:

math.round(num)

It will round up if the decimal is higher than .5 and down if its less

Okay, thanks for all the help dude.
Much apreciated, especially the time you put into it.

Also, @starnova224 thanks for your attempt to help.