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

I need help with making the GUI move to the left, this is what I have so far? [closed]

Asked by 7 years ago
function MouseHover()
    script.Parent.Position = UDim2.new(0.5, 0, 0.5, 0)
end




game.StarterGui.ScreenGui.Frame3.slideopen.MouseEnter:connect(MouseHover)

That's what I have so far..

0
expand on what you need to happen abnotaddable 920 — 7y
0
so exactly whats the problem? greatneil80 2647 — 7y
0
Use the Tween function on your GUI. Abnotaddable has the right idea. T0XN 276 — 7y

Closed as Non-Descriptive by abnotaddable, PyccknnXakep, lukeb50, and DanzLua

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago
local slideopen = script.Parent

function mouseenter()
    slideopen:TweenPosition(UDim2.new(0.05, 0, 0.5, 0), "Out", "Linear", 0.5)
end

function mouseleave()
    slideopen:TweenPosition(UDim2.new(0, 0, 0.5, 0), "Out", "Linear", 0.5)
end

slideopen.MouseEnter:Connect(mouseenter)
slideopen.MouseLeave:Connect(mouseleave)

if this worked accept answer! :)

Ad