Скрипт: local Button = script.Parent
Frame = script.Parent.Parent.Frame
function onClick()
if Frame.Visible == false then
Frame.Visible = true
Button.Text = "Close"
elseif Frame.Visible == true then
Frame.Visible = false
Button.Text = "Shop"
end
end
Button.MouseButton1Click:Connect(onClick)
#roblox #robloxstudio