This is more lenient towards art design but to do this I need scripting so I just posted it here. I have an inventory GUI that I recently made and would love to make a system where people can drag the items and it seemingly snaps right into another spot. I have the dragging part down but I cant figure out how to get the snapping portion down. Is there some sort of mouse function that gets every single Gui element that its touching? Here’s an example of what I’m trying to do.
1 Like
To get the GUI objects in mouse position, you can do:
local mouse = game.Players.LocalPlayer:GetMouse()
local GuisAtPosition = game.Players.LocalPlayer.PlayerGui:GetGuiObjectsAtPosition(mouse.X, mouse.Y)
It should return a table containing every GUI that is at the mouse’ position. Then you can loop through that table and check if it’s a valid slot.
2 Likes
Thank you so much I’ve been looking for an answer for awhile now 
1 Like