I am currently making a recreation of a part of an existing game outside of roblox and in the title screen you control a GUI with wasd keys, and I want to know if there is a way to detect if the GUI you're controlling touches another GUI to make something happen to the GUI you're touching.

5 comments

0

As far as I'm concerned, there's no inbuilt method to detect collisions between GUI instances. However I remember reading a very interesting article at the roblox wiki which addresses this issue very nicely, providing a working code at the end of it to detect said collisions (even taking into account rotated GUIs!). I'm going to search for it and when I find it I will let you know.

0

Alright. I've got plenty of time to wait.

0

I carry bad news, after some extensive research through my bookmarks I found the source to the article; unfortunatly it appears to have been removed when the roblox wiki was redesigned. The former link to it was http://wiki.roblox.com/index.php?title=Collision_detection_for_GUIs

0

If its of any help, here Merely provides a code for detecting collisions between guis, however it does not work for rotated ones https://scriptinghelpers.org/questions/10708/can-anyone-explain-gui-collisions-because-roblox-wiki-does-a-poor-job-of-explaining

0

None of my GUI's are rotated, so I'm in luck.