Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local availableTools = game.ReplicatedStorage:WaitForChild("GetTools"):InvokeServer()
- local mainFrame = script.Parent:WaitForChild("MainFrame")
- local safeArea = mainFrame:WaitForChild("SafeArea")
- local itemInformation = safeArea:WaitForChild("ItemInformation")
- local infoFrame = itemInformation.InfoFrame
- local selectedItem = itemInformation.SelectedItem
- local equippedItem = itemInformation.EquippedItem
- local numberOfItems = #availableTools
- local itemFrame = safeArea.ItemFrame
- local shopButton = script.Parent:WaitForChild("ShopButton")
- local buyButton = infoFrame.BuyButton
- local equippedItemViewport = script.Parent:WaitForChild("EquippedItemViewport")
- local itemViewport = itemInformation.ItemViewport
- shopButton.MouseButton1Click:Connect(function()
- mainFrame.Visible = not mainFrame.Visible
- end)
Advertisement
Add Comment
Please, Sign In to add comment