Cooldown GUI that detects active frame and position other frames

I want a cooldown system that detects the active frame(s) and from there, automatically position other frame(s). Here’s an example:

Please help.

You can check if there’s a frame using FindFirstChild and if there’s a frame then you can add the new frame to another position with math or saved positions.

Sorry, I tried to do it but I won’t work. Can you please provide me a sample code?