Hello,
How would I make a GUI that would follow the mouse. I am working on a project and when a player hovers over an item, it pop up a gui. I would like it to follow the mouse so that wherever they move the mouse within the brick it will move the gui. I know I would use
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)
But how would I get the gui to move with the mouse. Thanks, Anthony
