How to find the position of the end part of the frame roblox

how to find the position of the end part of the frame roblox

Frame.Position + Udim2.new(Frame.Size.X.Scale/2, 0, 0, 0)
If you mean the horizontally end point, the code above should be fine.
Otherwise if you want the bottom of the side on the Y Axis, then use the code below.
Frame.Position + Udim2.new(0, 0, Frame.Size.Y.Scale/2, 0)

Futhermore, if your UI has it’s position based in pixels, simply convert the pixels to scale, you can find various functions online for it.

but the frame is in the diagonal

Is it 45 degrees or like 60 or 30 or what? Also why is it diagonal, if it was able to be made straight, it’d be a lot easier. If it is 45 degrees, simply combine the X and Y scale, but I believe they would be divided by 4 for what you’re trying to instead of 2.

the frame is 30 degrees and i divided by 2 it dont work