I want to make it so whenever a player hovers a UI item, another UI item appears and follows their mouse while they are hovering over the initial item.
The appear and disappear part is easy, obviously, but how do i make the newly appeared UI follow the player’s mouse?
local mouse = game.Players.LocalPlayer:GetMouse()
local function positionAtMouse(box)
local frameSize = box.AbsoluteSize
--//positions at left corner of mouse
box.Position = UDim2.fromOffset(mouse.X - frameSize.X, mouse.Y)
end