Okay so heres the deal, i have the kinqandis shop plugin to help me set up the scripts because it saves me time. But i wanted to make it in a cashier so what i'm doing is using a birck so when they touch it it Opens the shop gui the script in the brick is the first code i posted its a copy and pasted version of whats in the gui which is the second one i posted. I don't know why but when i step on the Part that opens the gui it says Shop is not a valid member of workspace. Now I completly understand I barely explained that at all so just reply if you have questions ill be happy to awnser them!
`` function onTouched(Check1) if script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, -500) then repeat script.Parent.Parent.Shop.Position = script.Parent.Parent.Shop.Position + UDim2.new(0, 0, 0, 50) script.Parent.Parent.Inventory.Position = script.Parent.Parent.Inventory.Position + UDim2.new(0, 0, 0, 50) wait(.01)
script.Parent.Text = "Shop(Close)"
until script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, 100)
elseif script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, 100) then
repeat
script.Parent.Parent.Shop.Position = script.Parent.Parent.Shop.Position - UDim2.new(0, 0, 0, 50)
script.Parent.Parent.Inventory.Position = script.Parent.Parent.Inventory.Position - UDim2.new(0, 0, 0, 50)
wait(.01)
script.Parent.Text = "Shop(Open)"
until script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, -500)
end
end
script.Parent.Touched:Connect(onTouched)
``script.Parent.MouseButton1Down:connect(function() if script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, -500) then repeat script.Parent.Parent.Shop.Position = script.Parent.Parent.Shop.Position + UDim2.new(0, 0, 0, 50) script.Parent.Parent.Inventory.Position = script.Parent.Parent.Inventory.Position + UDim2.new(0, 0, 0, 50) wait(.01)
script.Parent.Text = "Shop(Close)"
until script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, 100)
elseif script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, 100) then
repeat
script.Parent.Parent.Shop.Position = script.Parent.Parent.Shop.Position - UDim2.new(0, 0, 0, 50)
script.Parent.Parent.Inventory.Position = script.Parent.Parent.Inventory.Position - UDim2.new(0, 0, 0, 50)
wait(.01)
script.Parent.Text = "Shop(Open)"
until script.Parent.Parent.Shop.Position == UDim2.new(0, 500, 0, -500)
end
end)

2 comments
the code kind of cut out
can you make it more readable