I am trying to make a cool gui, but I want the button to slightly move upwards when the player's mouse is hovering over it(which I mean by on top of it). It's kind of like this game I played because when my mouse was on top of the folder it slides over for me to open it. anybody got an idea?
COMMUNITY QUESTION
How do I make gui slightly move when mouse is hovering over it?
2 answers
If you want to move a ScreenGui then you can do this in a Local Script I believe
local plr = game.Player.LocalPlayer
plr.PlayerGui.[<Gui Name>].Frame.TextButton.MouseEnter:Connect(function()
plr.PlayerGui.[<Gui Name>].Frame.TextButton.Position= plr.PlayerGui.[<Gui Name>].Frame.TextButton.Position + UDim2.new(-- forgot how udim2 works)
end)
Use the event MouseEnter to make your Frame tween upwards, and the event MouseLeave to tween it down.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
research mouse hovers and research location changes
do you mean a surface gui or a screen gui