Nevermind this is a bad idea

This was a bad feature request lol.

17 Likes

Can you go into more detail about what you’re trying to do and the shape of your UI hierarchy? You’re proposing a specific solution without really going into much detail about what problem you’re actually having. It’s hard to see why this even has anything to do with ViewportFrame, which has the same positioning behavior as other UI objects.

2 Likes

I am also confused by this. The behavior you’re describing can be achieved with the following code:

local gui = ... -- some GUI
local desiredAbsolutePosition = -- some Vector2
local relativePosition = desiredAbsolutePosition - gui.Parent.AbsolutePosition
gui.Position = UDim2.fromOffset(relativePosition.X, relativePosition.Y)
47 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.