Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().KillAllMobs = false
- getgenv().CollectDrops = false
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
- local w = library:CreateWindow("Build and survive") -- Creates the window
- local b = w:CreateFolder("AutoFarming") -- Creates the folder(U will put here your buttons,etc)
- b:Toggle("Collect Mob Drops",function(bool)
- getgenv().CollectDrops = bool
- if bool then
- Drops()
- end
- end)
- b:Toggle("Kill All Mobs",function(bool)
- getgenv().KillAllMobs = bool
- if bool then
- Kills()
- end
- end)
- b:ColorPicker("ColorPicker",Color3.fromRGB(255,0,0),function(color) --Default color
- print(color)
- end)
- b:DestroyGui()
- function Kills()
- spawn(function()
- while KillAllMobs == true do wait(20)
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].Monsters:GetChildren()) do
- local ohTable1 = {
- [1] = {
- [1] = {
- [1] = {
- [1] = v,
- [2] = 99999
- }
- }
- },
- [2] = {
- [1] = false
- }
- }
- workspace.__THINGS.__REMOTES.mobdodamage:FireServer(ohTable1)
- end
- end
- end)
- end
- function Drops()
- spawn(function()
- while CollectDrops == true do wait(2)
- for i,v in pairs(game:GetService("Workspace")["__DEBRIS"].MonsterDrops:GetChildren()) do
- v.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement