Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you detect if a GUI is touching another GUI?

Asked by
EmK530 143
4 years ago

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.

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. Le_Teapots 913 — 4y
0
Alright. I've got plenty of time to wait. EmK530 143 — 4y
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 Le_Teapots 913 — 4y
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 Le_Teapots 913 — 4y
0
None of my GUI's are rotated, so I'm in luck. EmK530 143 — 4y

Answer this question