Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make it so when someones mouse hovers over a brick...?

How do I make it so when someones mouse hovers over a brick, a gui will appear and follow aside from the mouses x,y positions?

1 answer

✓ Accepted answer

The player's mouse can be accessed (locally only) by game.Players.LocalPlayer:GetMouse(), so you can tell that the mouse is hovering over a brick by mouse.Move:connect(function()if mouse.Target==brick then end end). To position the gui element is to simply set it at UDim2.new(0,mouse.X,0,mouse.Y) because mouse.X and mouse.Y are the mouse's screen coordinates (in pixels).

This discussion is preserved as it was. New answers, comments, and votes are closed.