so i have a Frame that is affected by a UIGridLayout, and I have a Profile that explains the Object’s Description etc…
i want to position that ProfileFrame positined relative to the frame’s position to the frame affected by the UIGridLayout, Example:
i tried by using this code:
local CellPosition = Template.AbsolutePosition;
local ScaledPos = UDim2.new(0, CellPosition.X + Template.AbsoluteSize.X / 1.3, 0, CellPosition.Y);
PetProfile.Position = ScaledPos;
--> Convert to Scale
local ScaleX = PetProfile.Position.X.Offset/PetProfile.Parent.AbsoluteSize.X + PetProfile.Position.X.Scale;
local ScaleY = PetProfile.Position.Y.Offset/PetProfile.Parent.AbsoluteSize.Y + PetProfile.Position.Y.Scale;
PetProfile.Position = UDim2.new(ScaleX, 0, ScaleY, 0);
but it doesnt work since it starts with Offset and Offset sucks
To Sum it all up: how to get the position of a frame inside a UIGridLayout