I could'nt find anything on ROBLOX wiki.
This is actually fairly simple.
Using the GetMouse
method of a Player (in a LocalScript of course), we can access their Mouse and what it is 'hovering over' as you said.
local Player = Game.Players.LocalPlayer local Mouse = Player:GetMouse() Mouse.Move:connect(function() if Mouse.Target and Mouse.Target == Workspace.SpecialHoverBrick then Player.PlayerGui.ScreenGui.SpecialHoverGui.Visible = true elseif Mouse.Target and Mouse.Target ~= Workspace.SpecialHoverBrick then Player.PlayerGui.ScreenGui.SpecialHoverGui.Visible = false end end)