Advertisement
asdjfipadz

Untitled

Jul 19th, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  2.  
  3. local Library =
  4. Material.Load(
  5. {
  6. Title = "Swordburst 2 ― Bleus | Beta",
  7. Style = 1,
  8. SizeX = 400,
  9. SizeY = 400,
  10. Theme = "Aqua",
  11. ColorOverrides = {
  12. MainFrame = Color3.fromRGB(35,35,35)
  13. }
  14. }
  15. )
  16.  
  17. -- Variables
  18.  
  19. local s =
  20. setmetatable(
  21. {},
  22. {
  23. __index = function(self, service)
  24. return game:GetService(service)
  25. end,
  26. __newindex = function(self, key)
  27. self[key] = nil
  28. end
  29. }
  30. )
  31.  
  32. local Ser;
  33.  
  34. for i, v in next, getreg() do
  35. if typeof(v) == "table" then
  36. if rawget(v, "Services") then
  37. Ser = v.Services
  38. break
  39. end
  40. end
  41. end
  42.  
  43. local key = getupvalue(Ser.Combat.Init, 2)
  44.  
  45. local user = s["Players"].LocalPlayer
  46. local ReplicatedStorage = s["ReplicatedStorage"]
  47.  
  48. getgenv().TweenSpeed = 50
  49. getgenv().Studs = 5000
  50.  
  51. -- etc
  52.  
  53. local BossNames = {
  54. "Dire Wolf",
  55. "Rahjin the Thief King",
  56. "Borik the BeeKeeper",
  57. "Gorrock the Grove Protector",
  58. "Ra'thae the Ice King",
  59. "Qerach The Forgotten Golem",
  60. "Irath the Lion",
  61. "Rotling",
  62. "Fire Scorpion",
  63. "Sa'jun the Centurian Chieftain",
  64. "Frogazoid",
  65. "Smashroom",
  66. "Hippogriff",
  67. "Formaug the Jungle Giant",
  68. "Gargoyle Reaper",
  69. "Mortis the Flaming Sear",
  70. "Polyserpant",
  71. "Baal",
  72. "Grim the Overseer",
  73. "Da",
  74. "Ra",
  75. "Ka",
  76. "Egg Mimic" -- easter event
  77. }
  78.  
  79. -- Functions
  80.  
  81. local function Damage(Enemy)
  82. --if (not getgenv().MultiplyDamage) then
  83. --ReplicatedStorage.Event:FireServer("Combat", key, {"Attack", nil, "1", Enemy})
  84. --return
  85. --end
  86. -- above coming soon
  87.  
  88. ReplicatedStorage.Event:FireServer("Skills", {"UseSkill", "Summon Pistol"})
  89. ReplicatedStorage.Event:FireServer("Combat", key, {"Attack", "Summon Pistol", "1", Enemy})
  90. end
  91.  
  92. local function UserWalkSpeed(person, speed)
  93. if person and person.Character then
  94. if person.Character:FindFirstChildWhichIsA("Humanoid") then
  95. person.Character:FindFirstChildWhichIsA("Humanoid").WalkSpeed = speed
  96. end
  97. end
  98. end
  99.  
  100. local function GoInvisible()
  101. if(user.Character and user.Character:FindFirstChild("LowerTorso") or user.Character:FindFirstChildWhichIsA("LowerTorso")) then
  102. user.character.LowerTorso.Root:Destroy()
  103. end
  104. end
  105.  
  106. local function Nearest()
  107. local d = getgenv().Studs
  108. local t = nil
  109.  
  110. for i, v in pairs(game.Workspace.Mobs:GetChildren()) do
  111. if
  112. (v.PrimaryPart ~= nil and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Nameplate") and
  113. v.Parent and
  114. v:FindFirstChild("Entity") and
  115. v.Entity.Health.Value > 0)
  116. then
  117. if getgenv().TargetBosses then
  118. for _, i in next, BossNames do
  119. if (i == v.Name) then
  120. return v
  121. end
  122. end
  123. end
  124. local Magnitude = (v.PrimaryPart.CFrame.p - Workspace.CurrentCamera.CFrame.p).Magnitude
  125. if (Magnitude < d and Magnitude > 0) then
  126. d = Magnitude
  127. t = v
  128. end
  129. end
  130. end
  131.  
  132. return t
  133. end
  134.  
  135.  
  136. --[[
  137. soon
  138.  
  139. local function NearestPlayer()
  140. local Root = user and user:FindFirstChild("HumanoidRootPart")
  141. if not (user or Root) then return end
  142.  
  143. local d = getgenv().Studs
  144. local t = nil
  145.  
  146. for i, v in pairs(game.Players:GetChildren()) do
  147. if (v ~= user and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character.Humanoid.Health > 0)
  148. then
  149. local Magnitude = (user.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
  150. if (Magnitude < d) then
  151. d = Magnitude
  152. t = v
  153. end
  154. end
  155. end
  156.  
  157. return t
  158. end
  159. --]]
  160.  
  161. -- Sections --
  162.  
  163. local Main =
  164. Library.New(
  165. {
  166. Title = "Swordburst 2"
  167. }
  168. )
  169.  
  170. local Misc =
  171. Library.New(
  172. {
  173. Title = "Misc"
  174. }
  175. )
  176.  
  177. local Settings =
  178. Library.New(
  179. {
  180. Title = "Settings"
  181. }
  182. )
  183.  
  184. -- Auto --
  185.  
  186. local AutoFarm =
  187. Main.Toggle(
  188. {
  189. Text = "AutoFarm",
  190. Callback = function(Value)
  191. getgenv().autofarm = Value
  192. while getgenv().autofarm do
  193. local Enemy = Nearest()
  194.  
  195. if (Enemy ~= nil) then
  196. tweenService, tweenInfo = s["TweenService"], TweenInfo.new((user.Character.HumanoidRootPart.Position - Enemy.HumanoidRootPart.Position).Magnitude / getgenv().TweenSpeed, Enum.EasingStyle.Linear)
  197. T = tweenService:Create(user.Character.HumanoidRootPart, tweenInfo, {CFrame = Enemy.PrimaryPart.CFrame * CFrame.new(0, 15, 0)})
  198. T:Play()
  199. end
  200. wait()
  201. end
  202. end,
  203. Enabled = false
  204. }
  205. )
  206.  
  207. local Killaura =
  208. Main.Toggle(
  209. {
  210. Text = "KillAura",
  211. Callback = function(Value)
  212. getgenv().killaura = Value
  213. while getgenv().killaura and wait() do
  214. local Enemy = Nearest()
  215.  
  216. if (Enemy ~= nil) then
  217. wait(.3)
  218. Damage(Enemy.Entity.Parent)
  219. end
  220. end
  221. end,
  222. Enabled = false
  223. }
  224. )
  225.  
  226. local TargetBosses =
  227. Main.Toggle(
  228. {
  229. Text = "Prioritize Bosses",
  230. Callback = function(Value)
  231. getgenv().TargetBosses = Value
  232. end,
  233. Enabled = false
  234. }
  235. )
  236.  
  237. -- Misc --
  238.  
  239. local TweenSpeed =
  240. Misc.Slider(
  241. {
  242. Text = "WalkSpeed",
  243. Callback = function(Value)
  244. UserWalkSpeed(user, Value)
  245. end,
  246. Min = 16,
  247. Max = 100,
  248. Def = 0
  249. }
  250. )
  251.  
  252. local Invisiblity =
  253. Misc.Button(
  254. {
  255. Text = "Invisibility",
  256. Callback = function()
  257. GoInvisible()
  258. end
  259. }
  260. )
  261.  
  262. -- Settings --
  263.  
  264. local EntityDistance =
  265. Settings.Slider(
  266. {
  267. Text = "Max Entity Distance",
  268. Callback = function(Value)
  269. getgenv().Studs = Value
  270. end,
  271. Min = 150,
  272. Max = 10000,
  273. Def = 5000
  274. }
  275. )
  276.  
  277. local TweenSpeed =
  278. Settings.Slider(
  279. {
  280. Text = "Tweening Speed",
  281. Callback = function(Value)
  282. getgenv().TweenSpeed = Value
  283. end,
  284. Min = 10,
  285. Max = 125,
  286. Def = 50
  287. }
  288. )
  289.  
  290. spawn(function()
  291. while true do
  292. if (user.Character ~= nil and getgenv().autofarm) then
  293. local function NoClipping()
  294. if user.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  295. for _, Parts in next, (user.Character:GetDescendants()) do
  296. if (Parts:IsA("BasePart") and Parts.CanCollide == true) then
  297. Parts.CanCollide = false
  298. end
  299. end
  300. else
  301. user.Character.Humanoid:ChangeState(11)
  302. end
  303. end
  304.  
  305. spawn(NoClipping)
  306. end
  307. wait()
  308. end
  309. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement