ScriptsPublisher

Death Star Tycoon AUTOFARM AND KILL ALL

Feb 10th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 KB | None | 0 0
  1. --[[
  2. AUTOFARM AND KILL ALL FOR https://www.roblox.com/games/3556333558/Death-Star-Tycoon
  3. BY EXXTREMESTUFFS
  4. CREDITS TO FROSTY FOR THE UI LIB
  5. ]]
  6.  
  7. local Players = game:GetService("Players")
  8. local LocalPlayer = Players.LocalPlayer
  9. local toggle
  10.  
  11. firetouchinterest = function(touch)
  12. local part = touch.Parent
  13. if touch:IsA("TouchTransmitter") and part:IsA("BasePart") then
  14. local character = game:GetService("Players").LocalPlayer.Character
  15. if character then
  16. coroutine.wrap(
  17. function()
  18. local prev = part.CFrame
  19. local collide = part.CanCollide
  20. local vis = part.Transparency
  21. part.CanCollide = false
  22. part.Transparency = 1
  23. part.CFrame = character.HumanoidRootPart.CFrame
  24. wait()
  25. part.CFrame = prev
  26. part.CanCollide = collide
  27. part.Transparency = vis
  28. end
  29. )()
  30. else
  31. error("Character not found")
  32. end
  33. else
  34. error("Touch Interest not found")
  35. end
  36. end
  37.  
  38. function loopBuy(isToggled)
  39. if isToggled then
  40. local tycoonButtons
  41. local tycoon
  42. local cash = LocalPlayer.PlayerGui.Alerts.CashLabel
  43.  
  44. for _, v in pairs(game:GetService("Workspace")["Zednov's Tycoon Kit"].Tycoons:GetChildren()) do
  45. if tostring(v.Owner.Value):match(tostring(LocalPlayer.Name)) then
  46. tycoon = v
  47. tycoonButtons = v.Buttons
  48. break
  49. end
  50. end
  51.  
  52. while toggle.toggled and tycoonButtons do
  53. if tycoon.PurchasedObjects:FindFirstChild("start") then
  54. for _,v in pairs(tycoon.PurchasedObjects.start:GetChildren()) do
  55. if v.Name:match("Collect") and v:FindFirstChild("Head") and v.Head:FindFirstChild("TouchInterest") then
  56. firetouchinterest(v.Head.TouchInterest)
  57. end
  58. end
  59. end
  60. wait(0.5)
  61. for _, v in pairs(tycoonButtons:GetChildren()) do
  62. local money = tonumber(cash.Text:match("%d+"))
  63. if cash.Text:lower():match("k") then
  64. money = money * 1000
  65. elseif cash.Text:lower():match("m") then
  66. money = money * 100000
  67. elseif cash.Text:lower():match("b") then
  68. money = money * 100000000
  69. elseif cash.Text:lower():match("t") then
  70. money = money * 100000000000
  71. end
  72. if v.Price.Value <= money and not v:FindFirstChild("Gamepass") then
  73. firetouchinterest(v.Head.TouchInterest)
  74. end
  75. end
  76. end
  77. end
  78. end
  79.  
  80. function killAll()
  81. if LocalPlayer.Character and not LocalPlayer.Character:FindFirstChild("Blaster") then
  82. LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack:FindFirstChild("Blaster"))
  83. else
  84. error("Unable to loopkill- blaster not found")
  85. return
  86. end
  87.  
  88. print("firing...")
  89.  
  90. for _, p in pairs(game:GetService("Players"):GetPlayers()) do
  91. if p ~= LocalPlayer and p.Character then
  92. -- Script generated by SimpleSpy - You should use it too! 🙃 - also by exxtremewa#9394
  93. local args = {
  94. [1] = LocalPlayer.Character.Blaster,
  95. [2] = LocalPlayer,
  96. [3] = p.Character.Humanoid,
  97. [4] = p.Character.Head,
  98. [5] = 999999,
  99. [6] = {
  100. [6] = LocalPlayer.Character.Blaster["GunScript_Server"].IcifyScript,
  101. [2] = 0,
  102. [8] = 100,
  103. [3] = false,
  104. [1] = 0,
  105. [4] = false,
  106. [5] = LocalPlayer.Character.Blaster["GunScript_Server"].IgniteScript,
  107. [7] = 100,
  108. },
  109. [7] = {
  110. [1] = false,
  111. [2] = 5,
  112. [3] = 3,
  113. },
  114. [8] = p.Character.Head,
  115. [9] = {
  116. [2] = {
  117. [1] = 1930359546,
  118. },
  119. [3] = 1,
  120. [1] = false,
  121. [4] = 1,
  122. [5] = LocalPlayer.Character.Blaster["GunScript_Local"].GoreEffect,
  123. },
  124. [10] = 0.8,
  125. }
  126.  
  127. game:GetService("ReplicatedStorage").InflictTarget:InvokeServer(unpack(args))
  128. end
  129. end
  130. wait(0.5)
  131. LocalPlayer.Character.Humanoid:UnequipTools()
  132. end
  133.  
  134. local settings = {
  135. theme = {
  136. images = {
  137. open_ui_icon = "rbxassetid://4521836217",
  138. close_ui_icon = "rbxassetid://4510354080",
  139. },
  140.  
  141. colors = {
  142. ["primary color"] = Color3.fromRGB(0, 81, 255),
  143. ["secondary color"] = Color3.fromRGB(37, 41, 43),
  144. ["drag click"] = Color3.fromRGB(92, 131, 182),
  145. ["on color"] = Color3.fromRGB(48, 255, 162),
  146. ["exit click"] = Color3.fromRGB(255, 50, 50),
  147. ["text color"] = Color3.fromRGB(255, 255, 255)
  148. },
  149.  
  150. font = "SourceSans",
  151. hotkey = Enum.KeyCode.RightShift
  152. }
  153. }
  154.  
  155. local module = loadstring(game:HttpGet("https://pastebin.com/raw/y0iyJTiN"))()(settings)
  156.  
  157. local library = module:init()
  158.  
  159. local window = library:create("window", "<bold>Death Star Tycoon Autofarm", {
  160. resizable = false,
  161. default_position = UDim2.new(0, 0, 0, 250),
  162. default_size = UDim2.new(0, 220, 0, 80)
  163. }
  164. )
  165.  
  166. local column = window:create("column", 150);
  167.  
  168. toggle = column:create("toggle", "Toggle Autofarm", false, loopBuy)
  169. local kill = column:create("button", "Click to kill others", killAll)
Add Comment
Please, Sign In to add comment