Sorry if this does not work, but Studio is being blocked by a Firewall for some reason so please dont -1 me if it doesn't work.
sp=script.Parent.Parent
if sp.ScrollingFrame.Visible == true then
sp:TweenPosition()
elseif not sp.ScrollingFrame.Visible == true then
sp:TweenPosition()
end
-- OBOVE IS OLD --
You forgot about the if effect when doing that kind of thing, for that you have to do == or ~=, for example;
find=script.Parent:FindFirstChild("BrickThingy")
if find~=nil then
print("Hooray! BrickThingy exists!")
elseif not find~=nil then
print('Oh no! BrickThingy doesn't exist!")
end