Hello! So I’m a developer of a game that a friend of mine is making and he wants me to help with a customization screen. I’m currently trying to make a hover note that appears when you hover over a button and says what part of the customization screen it will take you to.
This is the code that I tried:
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local InfoGui = script.Parent.TextLabel
function hover()
if Mouse.Target == script.Parent then
InfoGui.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y)
end
end
Mouse.Move:Connect(hover())
Sorry if this is really easy, I don’t use GetMouse() very often.
Thanks!
Make the parent of InfoGui be the ScreenGui or that its parent be in UDim2.new(0,0,0,0), also, if IgnoreGuiInset is deactivated, activate it or add this line