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

What is wrong with this tweening script? Syntax for rolling frame is wrong?

Asked by 6 years ago

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

0
Can you define "it doesn't work?" What's going on? Use some more details or make a gif if you can. M39a9am3R 3210 — 6y
0
i figured it out, well that part anyway JakePlays_TV 97 — 6y
0
Is the button a Part or a TextButton? Ap_inity 112 — 6y
0
Text button, i figured it out tho, thx JakePlays_TV 97 — 6y

Answer this question