Advertisement
DerekLuciano

Script para abrir/cerrar un botón

Jul 21st, 2021
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local button = script.Parent
  2. local Value = script.Parent.Parent.Value --Invocar el value
  3. local frame = script.Parent.Parent.Frame --Invocar el frame
  4.  
  5. button.MouseButton1Click:Connect(function()
  6. if Value.Value == false then
  7. Value.Value = true
  8. frame.Visible = true
  9. else
  10. Value.Value = false
  11. frame.Visible = false
  12. end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement