LSGaming

Destroyer simulator script 2021 WORKING OP GUI

Dec 28th, 2021 (edited)
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Destroyer Simulator")
  3. local b = w:CreateFolder("AutoFarm")
  4. local e = w:CreateFolder("Mix")
  5. local u = w:CreateFolder("Credits")
  6. allow = true
  7. Citys = {}
  8. SelectedCity = "City"
  9. for i,v in pairs(game:GetService("Workspace")["__THINGS"].PunchingBags:GetChildren()) do
  10. table.insert(Citys,v.Name)
  11. end
  12.  
  13. b:Dropdown("Select Zoon",Citys,true,function(a)
  14. SelectedCity = a
  15. end)
  16.  
  17. b:Toggle("AutoDestroy",function(bool)
  18. shared.toggle = bool
  19. AutoDestroy = bool
  20. end)
  21.  
  22. b:Toggle("AutoTrain",function(bool)
  23. shared.toggle = bool
  24. AutoTrain = bool
  25. end)
  26.  
  27. e:Toggle("AntiAfk",function(bool)
  28. shared.toggle = bool
  29. AntiAfk = bool
  30. end)
  31.  
  32. --Credits
  33. u:Label("Youtube Subs: "..getgenv().Subscribers,{
  34. TextSize = 25;
  35. TextColor = Color3.fromRGB(255,255,255);
  36. BgColor = Color3.fromRGB(69,69,69)
  37. })
  38.  
  39. u:Label("Discord Members: "..getgenv().TotalMembers,{
  40. TextSize = 25;
  41. TextColor = Color3.fromRGB(255,255,255);
  42. BgColor = Color3.fromRGB(69,69,69)
  43. })
  44.  
  45. u:Label("Pastebin Views: "..getgenv().TotalPastebinViews,{
  46. TextSize = 25;
  47. TextColor = Color3.fromRGB(255,255,255);
  48. BgColor = Color3.fromRGB(69,69,69)
  49. })
  50.  
  51. u:Button("Discord Server",function()
  52. setclipboard(getgenv().Discord)
  53. end)
  54.  
  55. u:Button("Youtube Channel",function()
  56. setclipboard(getgenv().Youtube)
  57. end)
  58.  
  59. u:Button("Pastebin Page",function()
  60. setclipboard(getgenv().Pastebin)
  61. end)
  62.  
  63. u:Button(getgenv().Username,function()
  64. setclipboard(getgenv().Username)
  65. end)
  66.  
  67. function ClosestPart()
  68. local dist = math.huge
  69. local target = nil
  70. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Items:GetDescendants()) do
  71. if v.Name == "Root" then
  72. if v.ClassName == "Part" then
  73. if v.ItemUI.Frame.Health.Text ~= "INFINITY" then
  74. for i,v1 in pairs(game:GetService("Workspace").Map:GetChildren()) do
  75. if string.find(v1.Name,SelectedCity) then
  76. local magnitude = (v1.Floor.Floor.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  77. if magnitude < 115 then
  78. local magnitude = (v.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  79. if magnitude < dist then
  80. dist = magnitude
  81. target = v
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. end
  89. end
  90. return target
  91. end
  92.  
  93. game:service("RunService").Stepped:Connect(function()
  94. spawn(function()
  95. if AutoDestroy == true then
  96. spawn(function()
  97. if ClosestPart().ItemUI.Enabled == false then
  98. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(ClosestPart().CFrame.Position + Vector3.new(0,0,0))
  99. game:service'VirtualUser':ClickButton1(Vector2.new())
  100. end
  101. end)
  102. end
  103. end)
  104.  
  105. spawn(function()
  106. if AntiAfk == true then
  107. local bb=game:service'VirtualUser'
  108. bb:CaptureController()
  109. bb:ClickButton2(Vector2.new())
  110. end
  111. end)
  112. end)
  113.  
  114. while wait() do
  115. if AutoTrain == true then
  116. if allow == true then
  117. allow = false
  118. for i,v in pairs(game:GetService("Workspace")["__THINGS"].PunchingBags[SelectedCity]:GetChildren()) do
  119. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Prompt.CFrame.Position + Vector3.new(0,0,0))
  120. end
  121. end
  122. workspace.__THINGS.Remotes.Training:FireServer("punch")
  123. else
  124. allow = true
  125. workspace.__THINGS.Remotes.Training:FireServer("stop")
  126. end
  127. end
Add Comment
Please, Sign In to add comment