so i want to position my info frame right next my potion button, how can i fix my script to make it accurate at all resolutions?
If you didn’t understand:
how to position frame a to frame b on the same resolution with a bit of moving it more right while keeping the same position
here is the video
External Mediascript:
local Profile = InventoryPanel.Profile
local parentSizeX = Profile.Parent.AbsoluteSize.X
local parentSizeY = Profile.Parent.AbsoluteSize.Y
local scaleX = ((Frame.AbsolutePosition.X - Profile.Parent.AbsolutePosition.X) + Frame.AbsoluteSize.X * 1.85) / parentSizeX
local scaleY = ((Frame.AbsolutePosition.Y - Profile.Parent.AbsolutePosition.Y) + 36) / parentSizeY
Profile.Position = UDim2.new(scaleX, 0, scaleY, 0)