Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make gui slightly move when mouse is hovering over it?

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?

2 comments

0

research mouse hovers and research location changes

0

do you mean a surface gui or a screen gui

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.