Advertisement
OnFireRobloxScriptin

Open shop with button localscript

Feb 19th, 2024
810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. --//Variables
  2. local shop = script.Parent.ShopFrame
  3. local open = script.Parent.Open
  4. local exit = shop.Exit
  5.  
  6. --//Open
  7. open.MouseButton1Click:Connect(function()
  8.     shop.Visible = true
  9.     open.Visible = false
  10. end)
  11.  
  12. --//Close
  13. exit.MouseButton1Click:Connect(function()
  14.     shop.Visible = false
  15.     open.Visible = true
  16. end)
  17.  
  18. --Full video: https://youtu.be/YNAUAVvMa38
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement