Hello, I'm trying to check if GUIs are over lapping, and if so, make one 1 ZIndex higher than the other.

I'm using this for a Minimap checking for every Part's position and making a GUI of it. I couldn't just say ZIndex=part.Position.Y because ZIndex is 1-10. (really stupid roblox, just make it able to take any value ugh)

So far I have this but it doesn't work

image.ZIndex=math.ceil(posY)

2 comments

0

In addition, our staff member, CodeTheorem, has an old tutorial on GUI Collision which is still relevant https://www.youtube.com/watch?v=Mon0sjQq4mw