Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Variables
- local abrir = script.Parent.Abrir
- local frame = script.Parent.TiendaFrame
- local cerrar = frame.Cerrar
- local estaAbierto = false
- --// Script
- frame.Visible = false
- abrir.MouseButton1Click:Connect(function()
- if estaAbierto == false then
- frame.Visible = true
- estaAbierto = true
- abrir.Text = "Cerrar"
- elseif estaAbierto == true then
- frame.Visible = false
- estaAbierto = false
- abrir.Text = "Tienda"
- end
- end)
- cerrar.MouseButton1Click:Connect(function()
- if estaAbierto == true then
- frame.Visible = false
- estaAbierto = false
- abrir.Text = "Tienda"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement