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

how do I make a in quad out quad button gui?

Asked by 6 years ago
Edited 6 years ago

when I press the button the Emotes Gui comes out but how do I do so that when the Emotes Gui is out the parent of the parent of this script goes in and by in I mean away from the screen from the player

wait()
local button=script.Parent
local animframe=button.Parent.Parent.Emotes
local on=false
function action()
    if on then
        animframe:TweenPosition(UDim2.new(0,-500,0,340),"In","Quad",.5,true)
        on=false
    else
        animframe:TweenPosition(UDim2.new(0,226,0,124),"Out","Quad",.5,true)
        on=true
    end
end
button.MouseButton1Down:connect(action)



0
Can you explain a little better? Leamir 3138 — 6y

Answer this question