How do I get just the x or y position of a gui

I’m trying to check if the gui’s location is at a specific y position but I can’t figure out how to get just the y position. Basically I want to destroy the gui when it’s Y position = 1

1 Like

Positions and sizes are made of scale and offset. You can do if gui_component.Position.Y.Offset == 1 or you can do Y.Scale if it’s for scale.

4 Likes