Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
- local w = library:CreateWindow("Destroyer Simulator")
- local b = w:CreateFolder("AutoFarm")
- local e = w:CreateFolder("Mix")
- local u = w:CreateFolder("Credits")
- allow = true
- Citys = {}
- SelectedCity = "City"
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].PunchingBags:GetChildren()) do
- table.insert(Citys,v.Name)
- end
- b:Dropdown("Select Zoon",Citys,true,function(a)
- SelectedCity = a
- end)
- b:Toggle("AutoDestroy",function(bool)
- shared.toggle = bool
- AutoDestroy = bool
- end)
- b:Toggle("AutoTrain",function(bool)
- shared.toggle = bool
- AutoTrain = bool
- end)
- e:Toggle("AntiAfk",function(bool)
- shared.toggle = bool
- AntiAfk = bool
- end)
- --Credits
- u:Label("Youtube Subs: "..getgenv().Subscribers,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Label("Discord Members: "..getgenv().TotalMembers,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
- TextSize = 25;
- TextColor = Color3.fromRGB(255,255,255);
- BgColor = Color3.fromRGB(69,69,69)
- })
- u:Button("Discord Server",function()
- setclipboard(getgenv().Discord)
- end)
- u:Button("Youtube Channel",function()
- setclipboard(getgenv().Youtube)
- end)
- u:Button("Pastebin Page",function()
- setclipboard(getgenv().Pastebin)
- end)
- u:Button(getgenv().Username,function()
- setclipboard(getgenv().Username)
- end)
- function ClosestPart()
- local dist = math.huge
- local target = nil
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].Items:GetDescendants()) do
- if v.Name == "Root" then
- if v.ClassName == "Part" then
- if v.ItemUI.Frame.Health.Text ~= "INFINITY" then
- for i,v1 in pairs(game:GetService("Workspace").Map:GetChildren()) do
- if string.find(v1.Name,SelectedCity) then
- local magnitude = (v1.Floor.Floor.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
- if magnitude < 115 then
- local magnitude = (v.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
- if magnitude < dist then
- dist = magnitude
- target = v
- end
- end
- end
- end
- end
- end
- end
- end
- return target
- end
- game:service("RunService").Stepped:Connect(function()
- spawn(function()
- if AutoDestroy == true then
- spawn(function()
- if ClosestPart().ItemUI.Enabled == false then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(ClosestPart().CFrame.Position + Vector3.new(0,0,0))
- game:service'VirtualUser':ClickButton1(Vector2.new())
- end
- end)
- end
- end)
- spawn(function()
- if AntiAfk == true then
- local bb=game:service'VirtualUser'
- bb:CaptureController()
- bb:ClickButton2(Vector2.new())
- end
- end)
- end)
- while wait() do
- if AutoTrain == true then
- if allow == true then
- allow = false
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].PunchingBags[SelectedCity]:GetChildren()) do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Prompt.CFrame.Position + Vector3.new(0,0,0))
- end
- end
- workspace.__THINGS.Remotes.Training:FireServer("punch")
- else
- allow = true
- workspace.__THINGS.Remotes.Training:FireServer("stop")
- end
- end
Add Comment
Please, Sign In to add comment