ZynatyGaming

SwordHub

May 5th, 2021
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.65 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 | 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 UserJumpPower(person, Jump)
  101. if person and person.Character then
  102. if person.Character:FindFirstChildWhichIsA("Humanoid") then
  103. person.Character:FindFirstChildWhichIsA("Humanoid").JumpPower = Jump
  104. end
  105. end
  106. end
  107.  
  108. local function GoInvisible()
  109. if(user.Character and user.Character:FindFirstChild("LowerTorso") or user.Character:FindFirstChildWhichIsA("LowerTorso")) then
  110. user.character.LowerTorso.Root:Destroy()
  111. end
  112. end
  113.  
  114. local function Nearest()
  115. local d = getgenv().Studs
  116. local t = nil
  117.  
  118. for i, v in pairs(game.Workspace.Mobs:GetChildren()) do
  119. if
  120. (v.PrimaryPart ~= nil and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Nameplate") and
  121. v.Parent and
  122. v:FindFirstChild("Entity") and
  123. v.Entity.Health.Value > 0)
  124. then
  125. if getgenv().TargetBosses then
  126. for _, i in next, BossNames do
  127. if (i == v.Name) then
  128. return v
  129. end
  130. end
  131. end
  132. local Magnitude = (v.PrimaryPart.CFrame.p - Workspace.CurrentCamera.CFrame.p).Magnitude
  133. if (Magnitude < d and Magnitude > 0) then
  134. d = Magnitude
  135. t = v
  136. end
  137. end
  138. end
  139.  
  140. return t
  141. end
  142.  
  143.  
  144. --[[
  145. soon
  146.  
  147. local function NearestPlayer()
  148. local Root = user and user:FindFirstChild("HumanoidRootPart")
  149. if not (user or Root) then return end
  150.  
  151. local d = getgenv().Studs
  152. local t = nil
  153.  
  154. for i, v in pairs(game.Players:GetChildren()) do
  155. if (v ~= user and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character.Humanoid.Health > 0)
  156. then
  157. local Magnitude = (user.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
  158. if (Magnitude < d) then
  159. d = Magnitude
  160. t = v
  161. end
  162. end
  163. end
  164.  
  165. return t
  166. end
  167. --]]
  168.  
  169. -- Sections --
  170.  
  171. local Main =
  172. Library.New(
  173. {
  174. Title = "Main"
  175. }
  176. )
  177.  
  178. local Skills =
  179. Library.New(
  180. {
  181. Title = "Skill's"
  182. }
  183. )
  184.  
  185. local Misc =
  186. Library.New(
  187. {
  188. Title = "Misc"
  189. }
  190. )
  191.  
  192. local Settings =
  193. Library.New(
  194. {
  195. Title = "Settings"
  196. }
  197. )
  198.  
  199. local Credits =
  200. Library.New(
  201. {
  202. Title = "Credits"
  203. }
  204. )
  205.  
  206.  
  207.  
  208. --Skills
  209.  
  210. Skills.Button(
  211. {
  212. Text = "SUMMON PISTOL UNLOCKER",
  213. Callback = function()
  214. loadstring(game:HttpGet("https://pastebin.com/raw/TjXTyZW5"))();
  215.  
  216. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  217.  
  218. Library:Notification("HOW TO USE!", "Go to menu Click “skills” & set keybind", 5, Color3.fromRGB(255, 255, 255))
  219. end
  220. }
  221. )
  222.  
  223. Skills.Button(
  224. {
  225. Text = "SUMMON TREE UNLOCKER",
  226. Callback = function()
  227. loadstring(game:HttpGet("https://pastebin.com/raw/psQ27NKy"))();
  228.  
  229. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  230.  
  231. Library:Notification("HOW TO USE!", "Go to menu Click “skills” & set keybind", 5, Color3.fromRGB(255, 255, 255))
  232. end
  233.  
  234.  
  235. }
  236. )
  237.  
  238. Skills.Button(
  239. {
  240. Text = "INFINITY SLASH UNLOCKER",
  241. Callback = function()
  242. loadstring(game:HttpGet("https://pastebin.com/raw/2u4zYAtT"))();
  243.  
  244. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  245.  
  246. Library:Notification("HOW TO USE!", "You need dual wield swords for it to work!", 5, Color3.fromRGB(255, 255, 255))
  247. end
  248.  
  249.  
  250. }
  251. )
  252.  
  253. --Credits
  254.  
  255. Credits.Button(
  256. {
  257. Text = "Made By KarumuBlox#2391",
  258. Callback = function()
  259.  
  260. end
  261. }
  262. )
  263.  
  264. Credits.Button(
  265. {
  266. Text = "Discord: Click to Copy",
  267. Callback = function()
  268. setclipboard("https://discord.gg/3MKe7qFACv")
  269.  
  270. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  271.  
  272. Library:Notification("Copied!", "Paste into Browser to join the discord", 5, Color3.fromRGB(255, 255, 255))
  273. end
  274. }
  275. )
  276.  
  277. -- Auto --
  278.  
  279. local AutoFarm =
  280. Main.Toggle(
  281. {
  282. Text = "AutoFarm",
  283. Callback = function(Value)
  284. getgenv().autofarm = Value
  285. while getgenv().autofarm do
  286. local Enemy = Nearest()
  287.  
  288. if (Enemy ~= nil) then
  289. tweenService, tweenInfo = s["TweenService"], TweenInfo.new((user.Character.HumanoidRootPart.Position - Enemy.HumanoidRootPart.Position).Magnitude / getgenv().TweenSpeed, Enum.EasingStyle.Linear)
  290. T = tweenService:Create(user.Character.HumanoidRootPart, tweenInfo, {CFrame = Enemy.PrimaryPart.CFrame * CFrame.new(0, 15, 0)})
  291. T:Play()
  292. end
  293. wait()
  294. end
  295. end,
  296. Enabled = false
  297. }
  298. )
  299.  
  300. local Killaura =
  301. Main.Toggle(
  302. {
  303. Text = "KillAura",
  304. Callback = function(Value)
  305. getgenv().killaura = Value
  306. while getgenv().killaura and wait() do
  307. local Enemy = Nearest()
  308.  
  309. if (Enemy ~= nil) then
  310. wait(.3)
  311. Damage(Enemy.Entity.Parent)
  312. end
  313. end
  314. end,
  315. Enabled = false
  316. }
  317. )
  318.  
  319. local TargetBosses =
  320. Main.Toggle(
  321. {
  322. Text = "Prioritize Bosses",
  323. Callback = function(Value)
  324. getgenv().TargetBosses = Value
  325. end,
  326. Enabled = false
  327. }
  328. )
  329.  
  330. -- Misc --
  331.  
  332. local TweenSpeed =
  333. Misc.Slider(
  334. {
  335. Text = "WalkSpeed",
  336. Callback = function(Value)
  337. UserWalkSpeed(user, Value)
  338. end,
  339. Min = 16,
  340. Max = 100,
  341. Def = 0
  342. }
  343. )
  344.  
  345. local TweenSpeed =
  346. Misc.Slider(
  347. {
  348. Text = "JumpPower",
  349. Callback = function(Value)
  350. UserJumpPower(user, Value)
  351. end,
  352. Min = 16,
  353. Max = 100,
  354. Def = 0
  355. }
  356. )
  357.  
  358. local Invisiblity =
  359. Misc.Button(
  360. {
  361. Text = "Invisibility",
  362. Callback = function()
  363. GoInvisible()
  364. end
  365. }
  366. )
  367.  
  368. Misc.Button(
  369. {
  370. Text = "Noclip",
  371. Callback = function()
  372.  
  373. noclip = false
  374. game:GetService('RunService').Stepped:connect(function()
  375. if noclip then
  376. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  377. end
  378. end)
  379. plr = game.Players.LocalPlayer
  380. mouse = plr:GetMouse()
  381. mouse.KeyDown:connect(function(key)
  382.  
  383. if key == "1" then
  384. noclip = not noclip
  385. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  386. end
  387. end)
  388. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  389.  
  390. Library:Notification("Loaded", "Press 1 to toggle noclip", 5, Color3.fromRGB(255, 255, 255))
  391. end
  392. }
  393. )
  394.  
  395. Misc.Button(
  396. {
  397. Text = "Fly",
  398. Callback = function()
  399. repeat wait()
  400. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  401. local mouse = game.Players.LocalPlayer:GetMouse()
  402. repeat wait() until mouse
  403. local plr = game.Players.LocalPlayer
  404. local torso = plr.Character.Head
  405. local flying = false
  406. local deb = true
  407. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  408. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  409. local maxspeed = 50
  410. local speed = 0
  411.  
  412. function Fly()
  413. local bg = Instance.new("BodyGyro", torso)
  414. bg.P = 9e4
  415. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  416. bg.cframe = torso.CFrame
  417. local bv = Instance.new("BodyVelocity", torso)
  418. bv.velocity = Vector3.new(0,0.1,0)
  419. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  420. repeat wait()
  421. plr.Character.Humanoid.PlatformStand = true
  422. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  423. speed = speed+.5+(speed/maxspeed)
  424. if speed > maxspeed then
  425. speed = maxspeed
  426. end
  427. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  428. speed = speed-1
  429. if speed < 0 then
  430. speed = 0
  431. end
  432. end
  433. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  434. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  435. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  436. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  437. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  438. else
  439. bv.velocity = Vector3.new(0,0.1,0)
  440. end
  441. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  442. until not flying
  443. ctrl = {f = 0, b = 0, l = 0, r = 0}
  444. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  445. speed = 0
  446. bg:Destroy()
  447. bv:Destroy()
  448. plr.Character.Humanoid.PlatformStand = false
  449. end
  450. mouse.KeyDown:connect(function(key)
  451. if key:lower() == "2" then
  452. if flying then flying = false
  453. else
  454. flying = true
  455. Fly()
  456. end
  457. elseif key:lower() == "w" then
  458. ctrl.f = 1
  459. elseif key:lower() == "s" then
  460. ctrl.b = -1
  461. elseif key:lower() == "a" then
  462. ctrl.l = -1
  463. elseif key:lower() == "d" then
  464. ctrl.r = 1
  465. end
  466. end)
  467. mouse.KeyUp:connect(function(key)
  468. if key:lower() == "w" then
  469. ctrl.f = 0
  470. elseif key:lower() == "s" then
  471. ctrl.b = 0
  472. elseif key:lower() == "a" then
  473. ctrl.l = 0
  474. elseif key:lower() == "d" then
  475. ctrl.r = 0
  476. end
  477. end)
  478. Fly()
  479.  
  480. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  481.  
  482. Library:Notification("Loaded", "-- Press 2 to fly and unfly -- You have to re-apply the script if you die", 5, Color3.fromRGB(255, 255, 255))
  483. end
  484. }
  485. )
  486.  
  487. -- Settings --
  488.  
  489. local EntityDistance =
  490. Settings.Slider(
  491. {
  492. Text = "Max Entity Distance",
  493. Callback = function(Value)
  494. getgenv().Studs = Value
  495. end,
  496. Min = 150,
  497. Max = 10000,
  498. Def = 5000
  499. }
  500. )
  501.  
  502. local TweenSpeed =
  503. Settings.Slider(
  504. {
  505. Text = "Tweening Speed",
  506. Callback = function(Value)
  507. getgenv().TweenSpeed = Value
  508. end,
  509. Min = 10,
  510. Max = 125,
  511. Def = 50
  512. }
  513. )
  514.  
  515. spawn(function()
  516. while true do
  517. if (user.Character ~= nil and getgenv().autofarm) then
  518. local function NoClipping()
  519. if user.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  520. for _, Parts in next, (user.Character:GetDescendants()) do
  521. if (Parts:IsA("BasePart") and Parts.CanCollide == true) then
  522. Parts.CanCollide = false
  523. end
  524. end
  525. else
  526. user.Character.Humanoid:ChangeState(11)
  527. end
  528. end
  529.  
  530. spawn(NoClipping)
  531. end
  532. wait()
  533. end
  534. end)
  535. end
Add Comment
Please, Sign In to add comment