I have made a game lobby, and when the play button is pressed, the scrolling frame is supposed to tween up, and the play button is supposed to tween down, but it doesn't work. Here is the script:

local frame = game.StarterGui.OtherGui.ScrollingFrame

function Tween()
	local frame = game.StarterGui.OtherGui.ScrollingFrame
	local button = script.Parent
	button:TweenPosition(UDim2.new(0.5,-100,10,-25),'Out','Quint',3)
	frame:TweenPosition(UDim2.new(0.5,-125,0.5,-175),'Out','Quint',3)
end


local button = script.Parent
button.MouseButton1Click:Connect(Tween)

Any help is appreciated

4 comments

0

Can you define "it doesn't work?" What's going on? Use some more details or make a gif if you can.

0

i figured it out, well that part anyway

0

Is the button a Part or a TextButton?

0

Text button, i figured it out tho, thx