Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui = game:GetObjects("rbxassetid://987945957")[1]
- local main = gui.Main
- local scrollList = main.ScrollingFrame
- local assetMain = gui.AssetButton
- local assetImg = assetMain.ImageButton
- local assetTitle = assetMain.Title
- gui.Parent = game.CoreGui
- local gearList = {
- F3X = 142785488,
- ["Body Swap"] = 78730532,
- Wand1 = 114020480,
- Wand2 = 49491716,
- Carpet = 477910063,
- GUI = 987974399,
- }
- function drawAssets()
- for i,v in pairs(scrollList:GetChildren()) do if v:IsA("Frame") then v:Remove() end end
- for i,v in pairs(gearList)do
- if gearList[i] ~= "" then
- local btn = assetMain:Clone()
- btn.Name = i
- btn.Parent = scrollList
- btn.Title.Text = i
- btn.ImageButton.Image = "http://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?wd=420&ht=420&fmt=png&aid=" .. v
- btn.Visible = true
- btn.ImageButton.MouseButton1Click:connect(function ()
- game.ReplicatedStorage.Events.EquipGear:FireServer(v)
- wait(1)
- local GetBackpack = game.Players.LocalPlayer.Backpack:GetChildren() for i=1, #GetBackpack do if GetBackpack[i].ClassName == "Tool" then GetBackpack[i].CanBeDropped = true end end
- print(v)
- end)
- scrollList.CanvasSize = UDim2.new(0,0,0,#scrollList:GetChildren() * 150 / 3 -100)
- end
- end
- end
- drawAssets()
- main.Add.MouseButton1Click:connect(function()
- local link = main.gowno.Text
- local id = link:match("%d+")
- local name = link:match("%w*-%w*-*%w*-*%w*-*%w*-*%w*-*%w*-*%w*-*%w*-*")
- if link ~= nil then
- gearList[name] = id
- end
- drawAssets()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement