I have this snippet of which controls the movement of the UI.
if not CS:HasTag(CurrentItem, "UI") then
CurrentItem.Position = UDim2.fromScale(X,Y) --UDim2.fromOffset(Mouse.X - 75,Mouse.Y - 50)
CurrentItem.Size = UDim2.fromOffset(XS,YS)
CurrentItem.Parent = PlayerGui.Display
else
CurrentItem.Position = UDim2.fromScale(X,Y)--UDim2.fromOffset(Mouse.X -300,Mouse.Y - 50)
end
My problem lies in the actual scaling of the screen depending on the screen size. The mouse is never directly over the item they are dragging, as well as it snaps ImageLabels that they can drag.
Videos:
I have spent quite a bit of time debugging this, as well as a check-in in with Hidden Developers and Lua learning to no avail.
Any help would be greatly appreciated.