Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui OnMouseHover & OnMouseNotHover Help?

Asked by
Vividex 162
10 years ago

I have this script in the Frame:

local frame = game.StarterGui.ScreenGui.Frame

function OnMouseHover()
    frame.Position = x,y,z
end
script.Parent.MouseEnter:connect(OnMouseHover)

function OnMouseNotHover()
    frame.Position = x,y,z
end
script.Parent.MouseLeave:connect(OnMouseNotHover)

I put x,y,z in both because I'm not sure about this part. How would I make the Frame move horizontally until a certain position and then once the mouse leaves it goes back to its older position but goes smoothly?

Answer this question