Absolute position problem

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? The AppFrame to pop out of the app button

  2. What is the issue?

  3. What solutions have you tried so far? Tried doing App.AbsolutePosition.X / MainScreen.AbsoluteSize.X

My whole function (that opens app)

function OpenApp(App : ImageButton)
	local FrameObject : ObjectValue = App:FindFirstChild('FrameObject')
	if FrameObject then
		if FrameObject.Value ~= nil then
			if FrameObject.Value:IsA('Frame') then
				HideAllApps()
				AppsScreen.Visible = true
				local AppFrame = FrameObject.Value
				CurrentAppIcon = App
				CurrentOpenApp = AppFrame
				AppFrame.Size = UDim2.new(0,0,0,0)
				AppFrame.AnchorPoint = Vector2.new(0.5,0.5)
				AppFrame.Position = UDim2.fromScale(App.AbsolutePosition.X / MainScreen.AbsoluteSize.X, App.AbsolutePosition.Y / MainScreen.AbsoluteSize.Y)
				AppFrame.Visible = true
				AppFrame:TweenSizeAndPosition(UDim2.new(1,0,1,0), UDim2.new(0.5,0,0.5,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 5.225)
			end
		end
	end
end