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)



1 comment

0

Can you explain a little better?