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?
If you want to move a ScreenGui then you can do this in a Local Script I believe
1 | local plr = game.Player.LocalPlayer |
2 |
3 | plr.PlayerGui. [ <Gui Name> ] .Frame.TextButton.MouseEnter:Connect( function () |
4 | plr.PlayerGui. [ <Gui Name> ] .Frame.TextButton.Position = plr.PlayerGui. [ <Gui Name> ] .Frame.TextButton.Position + UDim 2. new( -- forgot how udim2 works) |
5 | end ) |
Use the event MouseEnter to make your Frame tween upwards, and the event MouseLeave to tween it down.