! This is not a request. I just cant find how to do it anywhere so I am asking for help here!
So basically I want to make a LocalScript that opens a frame when the players mouse hovers over a button , and closes it when the player mouse is not over the button.
local pm = game.Players.LocalPlayer.GetMouse() local frame= script.Parent.Frame local button = script.Parent.Label
Can someone tell me how to do it?
What you're looking for is Button.MouseEnter and Button.MouseLeave
you'd use the Button.MouseEnter to make the gui visible you'd use the Button.MouseLeave to make the gui not visible
example ``` local Gui = script.Parent.GUICHANGE local parent = script.Parent
local button = Instance.new('TextButton') button.MouseEnter:Connect(function() Gui.Visible = true end) button.MouseLeave:Connect(function() Gui.Visible = false end) button.Parent = parent`