I need it to remove the gui from the brick when the mouse is removed. Any help?
1 | player = game.Players.LocalPlayer |
2 | mouse = player:GetMouse() |
3 |
4 | mouse.Move:connect( function () |
5 | if mouse.Target ~ = nil and mouse.Target.Name = = 'HoverBrick' then |
6 | script.Parent.Position = UDim 2. new( 0 ,mouse.X, 0 ,mouse.Y) |
7 | end |
8 | end ) |