Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local abrir = script.Parent.Abrir --Boton para abrir la tienda y cerrar
- local frame = script.Parent.Frame --Frame de la tienda
- local cerrar = frame.Cerrar --Boton para cerrar la tienda
- local estaAbierto = false --Determina si la tienda esta abierta o no
- frame.Visible = false --Hace que la tienda no sea visible (por defecto)
- abrir.MouseButton1Click:Connect(function()
- if estaAbierto == false then
- frame.Visible = true --Hace visible el frame
- estaAbierto = true --La tienda esta abierta
- elseif estaAbierto == true then
- frame.Visible = false --Hace que la tienda sea invisible
- estaAbierto = false --La tienda esta cerrada
- end
- end)
- cerrar.MouseButton1Click:Connect(function()
- if estaAbierto == true then
- frame.Visible = false --Hace el frame invisible
- estaAbierto = false
- end
- end)
- --Script hecho por Showy19! Disfrutalo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement