Guest User

Untitled

a guest
Jun 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local availableTools = game.ReplicatedStorage:WaitForChild("GetTools"):InvokeServer()
  2. local mainFrame = script.Parent:WaitForChild("MainFrame")
  3. local safeArea = mainFrame:WaitForChild("SafeArea")
  4. local itemInformation = safeArea:WaitForChild("ItemInformation")
  5. local infoFrame = itemInformation.InfoFrame
  6. local selectedItem = itemInformation.SelectedItem
  7. local equippedItem = itemInformation.EquippedItem
  8. local numberOfItems = #availableTools
  9.  
  10. local itemFrame = safeArea.ItemFrame
  11. local shopButton = script.Parent:WaitForChild("ShopButton")
  12. local buyButton = infoFrame.BuyButton
  13. local equippedItemViewport = script.Parent:WaitForChild("EquippedItemViewport")
  14. local itemViewport = itemInformation.ItemViewport
  15.  
  16.  
  17. shopButton.MouseButton1Click:Connect(function()
  18. mainFrame.Visible = not mainFrame.Visible
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment