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

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

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..

3 comments

0

expand on what you need to happen

0

so exactly whats the problem?

0

Use the Tween function on your GUI. Abnotaddable has the right idea.

1 answer

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! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.