local frame = script.Parent.Parent.Parent.mainshop
toggled = false
script.Parent.MouseButton1Click:connect(function()
if toggled == false then
frame:TweenPosition(UDim2.new(0.7, 0, 0, 0), 'out', 'Linear' , 1)
toggled = true
else
frame:TweenPosition(UDim2.new(0, 0, 0, 0), 'out', 'Linear' , 1)
toggled = false
end
end)
COMMUNITY QUESTION
i have a error that says i can only tween in workspace help anyone?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Please provide more detail on what is happening.
I tested out your script and it works fine for me, at least in studio. You should probably change "out" into "Out" though, as I got an error from it until I capitalized it.