LonePotato

TruePieceBaseCode

Nov 12th, 2021 (edited)
5,174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  2. local w = library:CreateWindow("LonePotato") -- Creates the window
  3. local b = w:CreateFolder("TruePiece") -- Creates the folder(U will put here your buttons,etc)
  4.  
  5.  
  6. b:Slider("WalkSpeed",{
  7. min = 10; -- min value of the slider
  8. max = 200; -- max value of the slider
  9. precise = true; -- max 2 decimals
  10. },function(value)
  11. print(value)
  12. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
  13. end)
  14.  
  15. local SelectedMob
  16. local MobTable = game:GetService("Workspace").Mobs:GetChildren()
  17. local EndTable = {}
  18. function GetUniqueTable(Table)
  19. for i, v in pairs(Table) do
  20. if not table.find(EndTable, v.Name) then
  21. table.insert(EndTable, v.Name)
  22. end
  23. end
  24. return EndTable
  25. end
  26. GetUniqueTable(MobTable)
  27.  
  28. b:Dropdown("Mob",EndTable,true,function(mob) --true/false, replaces the current title "Dropdown" with the option that t
  29. SelectedMob = mob
  30. end)
  31.  
  32. b:Toggle("AutoFarm Selected",function(bool)
  33. if SelectedMob then
  34. shared.toggle = bool
  35. _G.Toggle = bool
  36. coroutine.wrap(function()
  37. activate()
  38. end)()
  39. coroutine.wrap(function()
  40. activate2()
  41. end)()
  42. end
  43. end)
  44.  
  45.  
  46. b:DestroyGui()
  47.  
  48. -- Made By LonePotato
  49. local Character = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  50. local AttackArgs = {
  51. [1] = "StandardCombat",
  52. [2] = CFrame.new(Vector3.new(-7133.6015625, 7.7194948196411, 10034.409179688), Vector3.new(0.36751398444176, -0.11057181656361, -0.92342156171799)),
  53. [4] = {
  54. ["ClientPosition"] = Character.Position,
  55. ["ClientCFrame"] = Character.CFrame
  56. }
  57. }
  58.  
  59.  
  60.  
  61. function activate()
  62. while wait() do
  63.  
  64. if not _G.Toggle then
  65. Character.CFrame = game:GetService("Workspace").MapSpawn["1"].Spawn.CFrame + Vector3.new(0,5, -100)
  66. break
  67. end
  68. if game:GetService("Workspace").Mobs:FindFirstChild(SelectedMob) then
  69. local Npc = game:GetService("Workspace").Mobs:FindFirstChild(SelectedMob)
  70. if Npc:FindFirstChild("HumanoidRootPart") then
  71. local HumanRoot = Npc:FindFirstChild("HumanoidRootPart")
  72. Character.CFrame = HumanRoot.CFrame * CFrame.Angles(80,0,0) + Vector3.new(0,6,0)
  73. game:GetService("ReplicatedStorage").Remotes.PlayerSkills:FireServer(unpack(AttackArgs))
  74. else
  75. print("Cant Find Npc Root Part")
  76. end
  77.  
  78. else
  79. print("Cant Find Npc Name")
  80. end
  81. end
  82. end
  83.  
  84. function activate2()
  85. game:GetService('RunService').Stepped:connect(function()
  86. if _G.Toggle then
  87. game.Players.LocalPlayer.Character.Humanoid:ChangeState(10)
  88. end
  89. end)
  90. end
  91.  
Add Comment
Please, Sign In to add comment