for i,v in pairs(script.Parent:GetChildren()) do if v.Name ~= "Controller" and v.Name ~= "LocalScript" then v.MouseEnter:Connect(function() CurrentlyIn = v end) v.MouseLeave:Connect(function() CurrentlyIn = nil end) end end
I am recreating this: https://gyazo.com/1788876609151a856982228d6466bbed
I was thinking, when the mouse hovers over something, it is equal to Currentlyin. I would hook up that variable with a script that makes the GUI follow the mouse.
Is this a good way to do it? I think this looks better than using a bunch of math.