the last ine part is not working basicly it is supposed that when the animframe is out the parent of the parent of the script wich is a frame gui gets invisible but how do I make it work
wait()
local button=script.Parent
local animframe=button.Parent.Parent.Female
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)
if animfram:TweenPosition(UDim2.new out Quad then script.Parent.Parent = invisible)

2 comments
The code on the last line isn’t even valid.
Not to be rude, but Dog2puppy is correct.