Youtube_AppealsCat

Elemental Battlegrounds AUTO FARM DIAMONDS/SHARDS & MORE!!!

Mar 12th, 2022
45,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Mental Battlegrounds v1.2 | Nathanified", "DarkTheme")
  3.  
  4. --| TABS |--
  5.  
  6. local Main = Window:NewTab("Main")
  7. local Client = Window:NewTab("Client")
  8.  
  9.  
  10.  
  11. --| MOVEMENT SECTION (CLIENT TAB) |--
  12.  
  13. local MovementSection = Client:NewSection("Movement")
  14.  
  15. MovementSection:NewToggle("Speed (move fast while holding W)", "desc in name btw", function(state)
  16.  
  17. if state then
  18. local Player = game:service'Players'.LocalPlayer;
  19. local Mouse = Player:GetMouse();
  20.  
  21. game:service'RunService'.RenderStepped:connect(function()
  22. if (game:service'UserInputService'):IsKeyDown(Enum.KeyCode.W) then
  23. Player.Character.HumanoidRootPart.CFrame =
  24. Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2);
  25. end;
  26. end);
  27. else
  28. local Player = game:service'Players'.LocalPlayer;
  29. local Mouse = Player:GetMouse();
  30.  
  31. game:service'RunService'.RenderStepped:connect(function()
  32. if (game:service'UserInputService'):IsKeyDown(Enum.KeyCode.W) then
  33. Player.Character.HumanoidRootPart.CFrame =
  34. Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,2);
  35. end;
  36. end);
  37. end
  38. end)
  39.  
  40. MovementSection:NewSlider("Jumppower", "changes your jumppower", 500, 50, function(s) -- 500 (MaxValue) | 0 (MinValue)
  41. game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
  42. end)
  43.  
  44. MovementSection:NewButton("Inf Jump", "runs inf jump", function()
  45. local Player = game:GetService'Players'.LocalPlayer;
  46. local UIS = game:GetService'UserInputService';
  47.  
  48. _G.JumpHeight = 50;
  49.  
  50. function Action(Object, Function) if Object ~= nil then Function(Object); end end
  51.  
  52. UIS.InputBegan:connect(function(UserInput)
  53. if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
  54. Action(Player.Character.Humanoid, function(self)
  55. if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
  56. Action(self.Parent.HumanoidRootPart, function(self)
  57. self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
  58. end)
  59. end
  60. end)
  61. end
  62. end)
  63. end)
  64.  
  65. MovementSection:NewButton("ClickTP", "press E to tp to mouse", function()
  66. plr = game.Players.LocalPlayer
  67. hum = plr.Character.HumanoidRootPart
  68. mouse = plr:GetMouse()
  69.  
  70. mouse.KeyDown:connect(function(key)
  71. if key == "e" then
  72. if mouse.Target then
  73. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  74. end
  75. end
  76. end)
  77. end)
  78.  
  79.  
  80.  
  81. --| MAIN SECTION (MAIN TAB) |--
  82.  
  83. local MainSection = Main:NewSection("Main")
  84.  
  85. MainSection:NewToggle("Autofarm diamonds", "grabs all diamonds as they spawn", function(state)
  86. enabled = false
  87. if state then
  88. enabled = true
  89. else
  90. enabled = false
  91. end
  92. print(enabled)
  93. while enabled == true do
  94. local Object = game:GetService("Workspace")[".Ignore"][".ServerEffects"]:WaitForChild("Diamond") -- object to tp to
  95. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Object.CFrame
  96. wait(0.1)
  97. if enabled == false then
  98. break
  99. end
  100. end
  101. end)
  102.  
  103. MainSection:NewToggle("Autofarm shards", "grabs all shards as they spawn", function(state)
  104. enabled = false
  105. if state then
  106. enabled = true
  107. else
  108. enabled = false
  109. end
  110. print(enabled)
  111. while enabled == true do
  112. local Object = game:GetService("Workspace")[".Ignore"][".ServerEffects"]:WaitForChild("Shard")
  113. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Object.CFrame
  114. wait(0.1)
  115. if enabled == false then
  116. break
  117. end
  118. end
  119. end)
  120.  
  121. MainSection:NewToggle("Safe mode", "loop tp far away so you dont get caught autofarming", function(state)
  122. enabled = false
  123. if state then
  124. enabled = true
  125. else
  126. enabled = false
  127. end
  128. print(enabled)
  129. while enabled == true do
  130. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-67.5338287, 219.486725, 2621.48853)
  131. wait(0.5)
  132. if enabled == false then
  133. break
  134. end
  135. end
  136. end)
Add Comment
Please, Sign In to add comment