--[[ 
This is a more complicated script but doesn't need any editing. Click to open, click to close.
]]
--


function onClick()
if script.Parent.Value.Value == 1 then
script.Parent.Mesh.Offset = script.Parent.Mesh.Offset + Vector3.new(-1.5, 0, 0)
script.Parent.Value.Value = 0
else
script.Parent.Transparency = 0.8
script.Parent.Value.Value = 1
script.Parent.Mesh.Offset = script.Parent.Mesh.Offset + Vector3.new(1.5, 0, 0)
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
