Advertisement
2AreYouMental110

Clone Tycoon Warfare

Mar 20th, 2023 (edited)
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.14 KB | None | 0 0
  1. -- https://web.roblox.com/games/9810691700/Clone-Tycoon-Warfare
  2. local keybind = Enum.KeyCode.RightControl -- keybind to disable/enable the gui
  3.  
  4. local autobuy = false
  5. local autocollect = false
  6. local autosave = false
  7. local autostats = false
  8. local sliderframetoggle = false
  9. local stuffenabled = false
  10. local tycoon
  11. local localplr = game.Players.LocalPlayer
  12. local mouse = localplr:GetMouse()
  13. local mousedown = false
  14. local guitoggledoff = false
  15. local jp
  16. local ws
  17. local onclick = mouse.Button1Down:Connect(function()
  18.     mousedown = true
  19. end)
  20. local onstopclick = mouse.Button1Up:Connect(function()
  21.     mousedown = false
  22. end)
  23. if getgenv().gui then
  24.     getgenv().gui:Destroy()
  25. end
  26. function getplrtycoon()
  27.     for i,v in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  28.         if v.Tycoon.Configs.Owner.Value == localplr then
  29.             tycoon = v
  30.             return v
  31.         end
  32.     end
  33. end
  34. getgenv().gui = Instance.new("ScreenGui")
  35. gui.Parent = game.CoreGui
  36. gui.Name = tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))
  37. local function destroy()
  38.     gui:Destroy()
  39.     autobuy = false
  40.     autocollect = false
  41.     autosave = false
  42.     autostats = false
  43. end
  44. local checkforguidelete = gui.AncestryChanged:Connect(function()
  45.     if gui.Parent == nil then
  46.         destroy()
  47.     end
  48. end)
  49. local mainframe = Instance.new("Frame")
  50. mainframe.Parent = gui
  51. mainframe.Active = true
  52. mainframe.Draggable = true
  53. mainframe.BorderColor3 = Color3.fromRGB(255,255,255)
  54. mainframe.BackgroundColor3 = Color3.fromRGB(50,50,50)
  55. mainframe.Position = UDim2.new(.35,0,.1,0)
  56. mainframe.Size = UDim2.new(.30,0,.7,0)
  57. local toptext = Instance.new("TextLabel")
  58. toptext.Parent = mainframe
  59. toptext.Size = UDim2.new(.9,0,.1,0)
  60. toptext.TextScaled = true
  61. toptext.BackgroundTransparency = .8
  62. toptext.TextColor3 = Color3.fromRGB(255,255,255)
  63. toptext.Text = "Clone Tycoon Warfare"
  64. local credits = Instance.new("TextLabel")
  65. credits.Parent = mainframe
  66. credits.Position = UDim2.new(0,0,.1,0)
  67. credits.Size = UDim2.new(1,0,.1,0)
  68. credits.TextScaled = true
  69. credits.BackgroundTransparency = 0
  70. credits.BackgroundColor3 = Color3.fromRGB(0,0,0)
  71. credits.BorderColor3 = Color3.fromRGB(255,255,255)
  72. credits.TextColor3 = Color3.fromRGB(255,255,255)
  73. credits.Text = "Made By 2AreYouMental110"
  74. local exit = Instance.new("TextButton")
  75. exit.Parent = mainframe
  76. exit.BackgroundColor3 = Color3.fromRGB(255,0,0)
  77. exit.Text = "X"
  78. exit.TextScaled = true
  79. exit.TextColor3 = Color3.fromRGB(255,255,255)
  80. exit.BackgroundTransparency = .5
  81. exit.Size = UDim2.new(.1,0,.1,0)
  82. exit.Position = UDim2.new(.9,0,0,0)
  83. exit.MouseButton1Click:Connect(function()
  84.     destroy()
  85. end)
  86. local autobuybutton = Instance.new("TextButton")
  87. autobuybutton.Parent = mainframe
  88. autobuybutton.BorderColor3 = Color3.fromRGB(255,255,255)
  89. autobuybutton.Text = "Auto Buy: OFF"
  90. autobuybutton.TextScaled = true
  91. autobuybutton.TextColor3 = Color3.fromRGB(200,200,200)
  92. autobuybutton.BackgroundTransparency = .5
  93. autobuybutton.Size = UDim2.new(.5,0,.2,0)
  94. autobuybutton.Position = UDim2.new(0,0,.2,0)
  95. local autobuyfunc = autobuybutton.MouseButton1Click:Connect(function()
  96.     if autobuy == false then
  97.         autobuybutton.Text = "Auto Buy: ON"
  98.         autobuy = true
  99.         while autobuy do
  100.             wait()
  101.             if getplrtycoon() ~= nil then
  102.                 for i,v in pairs(tycoon.Tycoon.Buttons:GetChildren()) do
  103.                     if localplr.leaderstats.Cash.Value - v.Cost.Value > 0 and autobuy == true and v.CFrame.Position.Y > 0 and v.Transparency ~= 1 then
  104.                         wait(.05)
  105.                         localplr.Character.HumanoidRootPart.Anchored = true
  106.                         localplr.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position) + Vector3.new(0,2,0)
  107.                         firetouchinterest(v,localplr.Character.HumanoidRootPart)
  108.                         wait(.05)
  109.                         localplr.Character.HumanoidRootPart.Anchored = false
  110.                     end
  111.                 end
  112.             end
  113.         end
  114.     elseif autobuy == true then
  115.         localplr.Character.HumanoidRootPart.Anchored = false
  116.         autobuybutton.Text = "Auto Buy: OFF"
  117.         autobuy = false
  118.     end
  119. end)
  120. local autocollectbutton = Instance.new("TextButton")
  121. autocollectbutton.Parent = mainframe
  122. autocollectbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  123. autocollectbutton.Text = "Auto Collect: OFF"
  124. autocollectbutton.TextScaled = true
  125. autocollectbutton.TextColor3 = Color3.fromRGB(200,200,200)
  126. autocollectbutton.BackgroundTransparency = .5
  127. autocollectbutton.Size = UDim2.new(.5,0,.2,0)
  128. autocollectbutton.Position = UDim2.new(.5,0,.2,0)
  129. local autocollectfunc = autocollectbutton.MouseButton1Click:Connect(function()
  130.     if autocollect == false then
  131.         autocollectbutton.Text = "Auto Collect: ON"
  132.         autocollect = true
  133.         wait(1)
  134.         while autocollect do
  135.             wait()
  136.             if getplrtycoon() ~= nil then
  137.                 if getplrtycoon() ~= nil and tycoon.Tycoon.KeyObjects:FindFirstChild("Cloned Money Collector") and tycoon.Tycoon:FindFirstChild("ClaimDoor") then
  138.                     if (localplr.Character.HumanoidRootPart.Position - (tycoon.Tycoon.KeyObjects:FindFirstChild("Cloned Money Collector").Prompt.CFrame * CFrame.new(0,0,-5)).Position).Magnitude < 3 then
  139.                         fireproximityprompt(tycoon.Tycoon.KeyObjects:FindFirstChild("Cloned Money Collector").Prompt.ProximityPrompt)
  140.                         wait(.3)
  141.                     else
  142.                         localplr.Character.HumanoidRootPart.CFrame = tycoon.Tycoon.KeyObjects:FindFirstChild("Cloned Money Collector").Prompt.CFrame * CFrame.new(0,0,-6)
  143.                         localplr.Character.Humanoid:MoveTo((tycoon.Tycoon.KeyObjects:FindFirstChild("Cloned Money Collector").Prompt.CFrame * CFrame.new(0,0,-5)).Position)
  144.                         localplr.Character.Humanoid.MoveToFinished:Wait()
  145.                         wait(.3)
  146.                     end
  147.                 end
  148.             end
  149.         end
  150.     elseif autocollect == true then
  151.         localplr.Character.HumanoidRootPart.Anchored = false
  152.         autocollectbutton.Text = "Auto Collect: OFF"
  153.         autocollect = false
  154.     end
  155. end)
  156. local autosavebutton = Instance.new("TextButton")
  157. autosavebutton.Parent = mainframe
  158. autosavebutton.BorderColor3 = Color3.fromRGB(255,255,255)
  159. autosavebutton.Text = "Auto Save: OFF"
  160. autosavebutton.TextScaled = true
  161. autosavebutton.TextColor3 = Color3.fromRGB(200,200,200)
  162. autosavebutton.BackgroundTransparency = .5
  163. autosavebutton.Size = UDim2.new(.5,0,.2,0)
  164. autosavebutton.Position = UDim2.new(0,0,.4,0)
  165. local autosavefunc = autosavebutton.MouseButton1Click:Connect(function()
  166.     if autosave == false then
  167.         autosave = true
  168.         autosavebutton.Text = "Auto Save: ON"
  169.         while autosave do
  170.             wait(.3)
  171.             localplr.PlayerGui.SaveButton.ClientGuiEvent:FireServer()
  172.         end
  173.     elseif autosave == true then
  174.         autosave = false
  175.         autosavebutton.Text = "Auto Save: OFF"
  176.     end
  177. end)
  178. local autostatsbutton = Instance.new("TextButton")
  179. autostatsbutton.Parent = mainframe
  180. autostatsbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  181. autostatsbutton.Text = "Auto Stats: OFF"
  182. autostatsbutton.TextScaled = true
  183. autostatsbutton.TextColor3 = Color3.fromRGB(200,200,200)
  184. autostatsbutton.BackgroundTransparency = .5
  185. autostatsbutton.Size = UDim2.new(.5,0,.2,0)
  186. autostatsbutton.Position = UDim2.new(.5,0,.4,0)
  187. local autostatfunc = autostatsbutton.MouseButton1Click:Connect(function()
  188.     if autostats == false then
  189.         autostats = true
  190.         autostatsbutton.Text = "Auto Stats: ON"
  191.         while autostats do
  192.             wait()
  193.             if getplrtycoon() ~= nil and tycoon.Tycoon.Objects:FindFirstChild("Stat Upgrades") and tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade") then
  194.                 if autocollect == true then
  195.                     wait(1.5)
  196.                 end
  197.                 if tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade"):FindFirstChild("Prompt") then
  198.                     localplr.Character.HumanoidRootPart.CFrame = tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade").Prompt.CFrame * CFrame.new(5,0,0)
  199.                     fireproximityprompt(tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade").Prompt.ProximityPrompt)
  200.                     wait(.1)
  201.                     localplr.Character.HumanoidRootPart.CFrame = tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade").Prompt.CFrame * CFrame.new(5,0,0)
  202.                     fireproximityprompt(tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade").Prompt.ProximityPrompt)
  203.                     wait(.1)
  204.                     localplr.Character.HumanoidRootPart.CFrame = tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade").Prompt.CFrame * CFrame.new(5,0,0)
  205.                     fireproximityprompt(tycoon.Tycoon.Objects:FindFirstChild("Cooldown Upgrade").Prompt.ProximityPrompt)
  206.                     wait(.1)
  207.                 end
  208.                 for i,v in pairs(tycoon.Tycoon.Objects:FindFirstChild("Stat Upgrades"):GetChildren()) do
  209.                     if v:IsA("Model") and v:FindFirstChild("Prompt") then
  210.                         wait(.1)
  211.                         localplr.Character.HumanoidRootPart.CFrame = v.Prompt.CFrame * CFrame.new(5,0,0)
  212.                         fireproximityprompt(v.Prompt.ProximityPrompt)
  213.                     end
  214.                 end
  215.             end
  216.         end
  217.     elseif autostats == true then
  218.         autostats = false
  219.         autostatsbutton.Text = "Auto Stats: OFF"
  220.     end
  221. end)
  222. local deletekillpartsandborders = Instance.new("TextButton")
  223. deletekillpartsandborders.Parent = mainframe
  224. deletekillpartsandborders.BorderColor3 = Color3.fromRGB(255,255,255)
  225. deletekillpartsandborders.Text = "Delete all kill parts and borders"
  226. deletekillpartsandborders.TextScaled = true
  227. deletekillpartsandborders.TextColor3 = Color3.fromRGB(200,200,200)
  228. deletekillpartsandborders.BackgroundTransparency = .5
  229. deletekillpartsandborders.Size = UDim2.new(.3,0,.2,0)
  230. deletekillpartsandborders.Position = UDim2.new(.05,0,.7,0)
  231. local ondeleteallparts = deletekillpartsandborders.MouseButton1Click:Connect(function()
  232.     if game:GetService("Workspace").TheMap:FindFirstChild("WorldBorder") then
  233.         repeat
  234.             wait()
  235.             game:GetService("Workspace").TheMap.WorldBorder:Destroy()
  236.         until not game:GetService("Workspace").TheMap:FindFirstChild("WorldBorder")
  237.     end
  238.     if getplrtycoon() ~= nil then
  239.         for i,v in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  240.             if v.Tycoon.ClaimDoor:FindFirstChild("TouchInterest") then
  241.                 v.Tycoon.ClaimDoor:FindFirstChild("TouchInterest"):Destroy()
  242.             end
  243.             if v.Tycoon.DefaultObjects.MainGate.Gate:FindFirstChild("TouchInterest") then
  244.                 v.Tycoon.DefaultObjects.MainGate.Gate:FindFirstChild("TouchInterest"):Destroy()
  245.             end
  246.             if v.Tycoon.Objects["Base Walls"]:FindFirstChild("Invis") then
  247.                 for i,v in pairs(v.Tycoon.Objects["Base Walls"]:GetChildren()) do
  248.                     if v.Name == "Invis" then
  249.                         v:Destroy()
  250.                     end
  251.                 end
  252.             elseif v.Tycoon.Objects["Base Walls Upgrade"]:FindFirstChild("Invis") then
  253.                 for i,v in pairs(v.Tycoon.Objects["Base Walls Upgrade"]:GetChildren()) do
  254.                     if v.Name == "Invis" then
  255.                         v:Destroy()
  256.                     end
  257.                 end
  258.             end
  259.         end
  260.     end
  261. end)
  262. local sliderframe = Instance.new("Frame")
  263. sliderframe.Parent = mainframe
  264. sliderframe.Visible = false
  265. sliderframe.BorderColor3 = Color3.fromRGB(255,255,255)
  266. sliderframe.BackgroundColor3 = Color3.fromRGB(50,50,50)
  267. sliderframe.Position = UDim2.new(1,0,.3,0)
  268. sliderframe.Size = UDim2.new(.7,0,.6,0)
  269. local enablesliderframe = Instance.new("TextButton")
  270. enablesliderframe.Parent = mainframe
  271. enablesliderframe.BorderColor3 = Color3.fromRGB(255,255,255)
  272. enablesliderframe.Text = "Toggle speed walk and jump power modifiers"
  273. enablesliderframe.TextScaled = true
  274. enablesliderframe.TextColor3 = Color3.fromRGB(200,200,200)
  275. enablesliderframe.BackgroundTransparency = .5
  276. enablesliderframe.Size = UDim2.new(.3,0,.2,0)
  277. enablesliderframe.Position = UDim2.new(.35,0,.7,0)
  278. local onsliderframetoggle = enablesliderframe.MouseButton1Click:Connect(function()
  279.     if sliderframetoggle == false then
  280.         sliderframetoggle = true
  281.         sliderframe.Visible = true
  282.         enablesliderframe.Text = "UnToggle speed walk and jump power modifiers"
  283.     elseif sliderframetoggle == true then
  284.         sliderframetoggle = false
  285.         sliderframe.Visible = false
  286.         enablesliderframe.Text = "Toggle speed walk and jump power modifiers"
  287.     end
  288. end)
  289. local walkspeedslider = Instance.new("Frame")
  290. walkspeedslider.Parent = sliderframe
  291. walkspeedslider.BorderColor3 = Color3.fromRGB(255,255,255)
  292. walkspeedslider.BackgroundColor3 = Color3.fromRGB(50,50,50)
  293. walkspeedslider.Size = UDim2.new(1,0,.25,0)
  294. local walkspeedslidertext = Instance.new("TextLabel")
  295. walkspeedslidertext.Parent = walkspeedslider
  296. walkspeedslidertext.Size = UDim2.new(.5,0,1,0)
  297. walkspeedslidertext.TextScaled = true
  298. walkspeedslidertext.BackgroundTransparency = .8
  299. walkspeedslidertext.TextColor3 = Color3.fromRGB(255,255,255)
  300. walkspeedslidertext.Text = "Walkspeed: "
  301. local walkspeedsliderbutton = Instance.new("TextButton")
  302. walkspeedsliderbutton.Parent = walkspeedslider
  303. walkspeedsliderbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  304. walkspeedsliderbutton.Text = "|"
  305. walkspeedsliderbutton.TextScaled = true
  306. walkspeedsliderbutton.TextColor3 = Color3.fromRGB(200,200,200)
  307. walkspeedsliderbutton.BackgroundTransparency = .5
  308. walkspeedsliderbutton.Size = UDim2.new(.1,0,1,0)
  309. walkspeedsliderbutton.Position = UDim2.new(.7,0,0,0)
  310. local walkspeedsliding = walkspeedsliderbutton.MouseButton1Down:Connect(function()
  311.     wait()
  312.     local dragging = true
  313.     local e1 = mouse.Button1Up:Connect(function()
  314.         dragging = false
  315.     end)
  316.     local e2 = walkspeedsliderbutton.MouseButton1Up:Connect(function()
  317.         dragging = false
  318.     end)
  319.     while dragging do
  320.         wait()
  321.         walkspeedsliderbutton.Position = UDim2.new(.7,(mouse.X)-(1100+mainframe.Position.X.Offset),0,0)
  322.         if walkspeedsliderbutton.Position.X.Offset < -55 then
  323.            walkspeedsliderbutton.Position = UDim2.new(.7,-54,0,0)
  324.         elseif walkspeedsliderbutton.Position.X.Offset > 60 then
  325.            walkspeedsliderbutton.Position = UDim2.new(.7,59,0,0)
  326.         end
  327.         localplr.Character.Humanoid.WalkSpeed = (walkspeedsliderbutton.Position.X.Offset+54)*2.5
  328.         ws = (walkspeedsliderbutton.Position.X.Offset+54)*2.5
  329.     end
  330.     e1:Disconnect()
  331.     e2:Disconnect()
  332. end)
  333. local jumppowerslider = Instance.new("Frame")
  334. jumppowerslider.Parent = sliderframe
  335. jumppowerslider.BorderColor3 = Color3.fromRGB(255,255,255)
  336. jumppowerslider.BackgroundColor3 = Color3.fromRGB(50,50,50)
  337. jumppowerslider.Position = UDim2.new(0,0,.25,0)
  338. jumppowerslider.Size = UDim2.new(1,0,.25,0)
  339. local jumppowerslidertext = Instance.new("TextLabel")
  340. jumppowerslidertext.Parent = jumppowerslider
  341. jumppowerslidertext.Size = UDim2.new(.5,0,1,0)
  342. jumppowerslidertext.TextScaled = true
  343. jumppowerslidertext.BackgroundTransparency = .8
  344. jumppowerslidertext.TextColor3 = Color3.fromRGB(255,255,255)
  345. jumppowerslidertext.Text = "Jumppower: "
  346. local jumppowersliderbutton = Instance.new("TextButton")
  347. jumppowersliderbutton.Parent = jumppowerslider
  348. jumppowersliderbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  349. jumppowersliderbutton.Text = "|"
  350. jumppowersliderbutton.TextScaled = true
  351. jumppowersliderbutton.TextColor3 = Color3.fromRGB(200,200,200)
  352. jumppowersliderbutton.BackgroundTransparency = .5
  353. jumppowersliderbutton.Size = UDim2.new(.1,0,1,0)
  354. jumppowersliderbutton.Position = UDim2.new(.7,0,0,0)
  355. local jumppowersliding = jumppowersliderbutton.MouseButton1Down:Connect(function()
  356.     wait()
  357.     local dragging = true
  358.     local e1 = mouse.Button1Up:Connect(function()
  359.         dragging = false
  360.     end)
  361.     local e2 = jumppowersliderbutton.MouseButton1Up:Connect(function()
  362.         dragging = false
  363.     end)
  364.     while dragging do
  365.         wait()
  366.         jumppowersliderbutton.Position = UDim2.new(.7,(mouse.X)-(1100+mainframe.Position.X.Offset),0,0)
  367.         if jumppowersliderbutton.Position.X.Offset < -55 then
  368.            jumppowersliderbutton.Position = UDim2.new(.7,-54,0,0)
  369.         elseif jumppowersliderbutton.Position.X.Offset > 60 then
  370.            jumppowersliderbutton.Position = UDim2.new(.7,59,0,0)
  371.         end
  372.         localplr.Character.Humanoid.JumpPower = (jumppowersliderbutton.Position.X.Offset+54)*5
  373.         jp = (jumppowersliderbutton.Position.X.Offset+54)*5
  374.     end
  375.     e1:Disconnect()
  376.     e2:Disconnect()
  377. end)
  378. local walkspeedreset = Instance.new("TextButton")
  379. walkspeedreset.Parent = sliderframe
  380. walkspeedreset.BorderColor3 = Color3.fromRGB(255,255,255)
  381. walkspeedreset.Text = "Reset Walkspeed"
  382. walkspeedreset.TextScaled = true
  383. walkspeedreset.TextColor3 = Color3.fromRGB(200,200,200)
  384. walkspeedreset.BackgroundTransparency = .5
  385. walkspeedreset.Size = UDim2.new(1,0,.25,0)
  386. walkspeedreset.Position = UDim2.new(0,0,.5,0)
  387. local wsreset = walkspeedreset.MouseButton1Click:Connect(function()
  388.     localplr.Character.Humanoid.WalkSpeed = 30
  389.     ws = 30
  390. end)
  391. local jumppowerreset = Instance.new("TextButton")
  392. jumppowerreset.Parent = sliderframe
  393. jumppowerreset.BorderColor3 = Color3.fromRGB(255,255,255)
  394. jumppowerreset.Text = "Reset Jumppower"
  395. jumppowerreset.TextScaled = true
  396. jumppowerreset.TextColor3 = Color3.fromRGB(200,200,200)
  397. jumppowerreset.BackgroundTransparency = .5
  398. jumppowerreset.Size = UDim2.new(1,0,.25,0)
  399. jumppowerreset.Position = UDim2.new(0,0,.75,0)
  400. local jpreset = jumppowerreset.MouseButton1Click:Connect(function()
  401.     localplr.Character.Humanoid.JumpPower = 50
  402.     jp = 50
  403. end)
  404. local extraframe = Instance.new("Frame")
  405. extraframe.Parent = mainframe
  406. extraframe.Visible = false
  407. extraframe.BorderColor3 = Color3.fromRGB(255,255,255)
  408. extraframe.BackgroundColor3 = Color3.fromRGB(50,50,50)
  409. extraframe.Position = UDim2.new(-.7,0,.3,0)
  410. extraframe.Size = UDim2.new(.7,0,.6,0)
  411. local deleteclones = Instance.new("TextButton")
  412. deleteclones.Parent = extraframe
  413. deleteclones.BorderColor3 = Color3.fromRGB(255,255,255)
  414. deleteclones.Text = "Delete All Clones"
  415. deleteclones.TextScaled = true
  416. deleteclones.TextColor3 = Color3.fromRGB(200,200,200)
  417. deleteclones.BackgroundTransparency = .5
  418. deleteclones.Size = UDim2.new(1,0,.3,0)
  419. deleteclones.Position = UDim2.new(0,0,.15,0)
  420. local deleteclonesfunc = deleteclones.MouseButton1Click:Connect(function()
  421.     if getplrtycoon() ~= nil and tycoon.Tycoon.KeyObjects:FindFirstChild("ClearNPCs") then
  422.         localplr.Character.HumanoidRootPart.CFrame = tycoon.Tycoon.KeyObjects:FindFirstChild("ClearNPCs").Button.CFrame * CFrame.new(0,0,6)
  423.         localplr.Character.Humanoid:MoveTo((tycoon.Tycoon.KeyObjects:FindFirstChild("ClearNPCs").Button.CFrame * CFrame.new(0,0,5)).Position)
  424.         localplr.Character.Humanoid.MoveToFinished:Wait()
  425.         wait(.2)
  426.         fireproximityprompt(tycoon.Tycoon.KeyObjects:FindFirstChild("ClearNPCs").Button.ProximityPrompt)
  427.     end
  428. end)
  429. local fixstuckclones = Instance.new("TextButton")
  430. fixstuckclones.Parent = extraframe
  431. fixstuckclones.BorderColor3 = Color3.fromRGB(255,255,255)
  432. fixstuckclones.Text = "Fix Stuck Clones"
  433. fixstuckclones.TextScaled = true
  434. fixstuckclones.TextColor3 = Color3.fromRGB(200,200,200)
  435. fixstuckclones.BackgroundTransparency = .5
  436. fixstuckclones.Size = UDim2.new(1,0,.3,0)
  437. fixstuckclones.Position = UDim2.new(0,0,.55,0)
  438. local fixstuckclonesfunc = fixstuckclones.MouseButton1Click:Connect(function()
  439.     if getplrtycoon() ~= nil and tycoon.Tycoon.KeyObjects:FindFirstChild("FixNPCs") then
  440.         localplr.Character.HumanoidRootPart.CFrame = tycoon.Tycoon.KeyObjects:FindFirstChild("FixNPCs").Button.CFrame * CFrame.new(0,0,6)
  441.         localplr.Character.Humanoid:MoveTo((tycoon.Tycoon.KeyObjects:FindFirstChild("FixNPCs").Button.CFrame * CFrame.new(0,0,5)).Position)
  442.         localplr.Character.Humanoid.MoveToFinished:Wait()
  443.         wait(.2)
  444.         fireproximityprompt(tycoon.Tycoon.KeyObjects:FindFirstChild("FixNPCs").Button.ProximityPrompt)
  445.     end
  446. end)
  447. local extrastuffenable = Instance.new("TextButton")
  448. extrastuffenable.Parent = mainframe
  449. extrastuffenable.BorderColor3 = Color3.fromRGB(255,255,255)
  450. extrastuffenable.Text = "Toggle Extra Stuff"
  451. extrastuffenable.TextScaled = true
  452. extrastuffenable.TextColor3 = Color3.fromRGB(200,200,200)
  453. extrastuffenable.BackgroundTransparency = .5
  454. extrastuffenable.Size = UDim2.new(.3,0,.2,0)
  455. extrastuffenable.Position = UDim2.new(.65,0,.7,0)
  456. local enableextrastuff = extrastuffenable.MouseButton1Click:Connect(function()
  457.     if stuffenabled == false then
  458.         extrastuffenable.Text = "UnToggle Extra Stuff"
  459.         stuffenabled = true
  460.         extraframe.Visible = true
  461.     elseif stuffenabled == true then
  462.         extrastuffenable.Text = "Toggle Extra Stuff"
  463.         stuffenabled = false
  464.         extraframe.Visible = false
  465.     end
  466. end)
  467. local hum = localplr.Character:WaitForChild("Humanoid")
  468. walkspeedslidertext.Text = "Walkspeed: "..tostring(hum.WalkSpeed)
  469. jumppowerslidertext.Text = "Jumppower: "..tostring(hum.JumpPower)
  470. hum.UseJumpPower = true
  471. local humchanged = hum.Changed:Connect(function()
  472.     walkspeedslidertext.Text = "Walkspeed: "..tostring(hum.WalkSpeed)
  473.     jumppowerslidertext.Text = "Jumppower: "..tostring(hum.JumpPower)
  474. end)
  475. local plradded = localplr.CharacterAdded:Connect(function(char)
  476.     local hum = char:WaitForChild("Humanoid")
  477.     walkspeedslidertext.Text = "Walkspeed: "..tostring(hum.WalkSpeed)
  478.     jumppowerslidertext.Text = "Jumppower: "..tostring(hum.JumpPower)
  479.     hum.UseJumpPower = true
  480.     hum.WalkSpeed = ws
  481.     hum.JumpPower = jp
  482.     hum.Changed:Connect(function()
  483.         walkspeedslidertext.Text = "Walkspeed: "..tostring(hum.WalkSpeed)
  484.         jumppowerslidertext.Text = "Jumppower: "..tostring(hum.JumpPower)
  485.     end)
  486. end)
  487. local togglegui = game:GetService("UserInputService").InputBegan:Connect(function(input,gameproc)
  488.     if input.KeyCode == keybind then
  489.         if guitoggledoff == false then
  490.             guitoggledoff = true
  491.             gui.Enabled = false
  492.         elseif guitoggledoff == true then
  493.             guitoggledoff = false
  494.             gui.Enabled = true
  495.         end
  496.     end
  497. end)
  498. destroy = function()
  499.     gui:Destroy()
  500.     autobuy = false
  501.     autocollect = false
  502.     autosave = false
  503.     autostats = false
  504.     togglegui:Disconnect()
  505.     plradded:Disconnect()
  506.     humchanged:Disconnect()
  507.     enableextrastuff:Disconnect()
  508.     fixstuckclonesfunc:Disconnect()
  509.     deleteclonesfunc:Disconnect()
  510.     jpreset:Disconnect()
  511.     wsreset:Disconnect()
  512.     jumppowersliding:Disconnect()
  513.     walkspeedsliding:Disconnect()
  514.     onsliderframetoggle:Disconnect()
  515.     ondeleteallparts:Disconnect()
  516.     autostatfunc:Disconnect()
  517.     autosavefunc:Disconnect()
  518.     autocollectfunc:Disconnect()
  519.     autobuyfunc:Disconnect()
  520.     checkforguidelete:Disconnect()
  521.     onstopclick:Disconnect()
  522.     onclick:Disconnect()
  523. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement