Advertisement
ZynatyGaming

Sword

May 5th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.24 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 ― SwordKiller | 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 = "Swordburst 2"
  175. }
  176. )
  177.  
  178. local Misc =
  179. Library.New(
  180. {
  181. Title = "Misc"
  182. }
  183. )
  184.  
  185. local Settings =
  186. Library.New(
  187. {
  188. Title = "Settings"
  189. }
  190. )
  191.  
  192. local Credits =
  193. Library.New(
  194. {
  195. Title = "Credits"
  196. }
  197. )
  198.  
  199. --Credits
  200.  
  201. Credits.Button(
  202. {
  203. Text = "Made By KarumuBlox#2391",
  204. Callback = function()
  205.  
  206. end
  207. }
  208. )
  209.  
  210. Credits.Button(
  211. {
  212. Text = "Discord: Click to Copy",
  213. Callback = function()
  214. setclipboard("https://discord.gg/3MKe7qFACv")
  215.  
  216. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  217.  
  218. Library:Notification("Copied!", "Paste into Browser to join the discord", 5, Color3.fromRGB(255, 255, 255))
  219. end
  220. }
  221. )
  222.  
  223. -- Auto --
  224.  
  225. local AutoFarm =
  226. Main.Toggle(
  227. {
  228. Text = "AutoFarm",
  229. Callback = function(Value)
  230. getgenv().autofarm = Value
  231. while getgenv().autofarm do
  232. local Enemy = Nearest()
  233.  
  234. if (Enemy ~= nil) then
  235. tweenService, tweenInfo = s["TweenService"], TweenInfo.new((user.Character.HumanoidRootPart.Position - Enemy.HumanoidRootPart.Position).Magnitude / getgenv().TweenSpeed, Enum.EasingStyle.Linear)
  236. T = tweenService:Create(user.Character.HumanoidRootPart, tweenInfo, {CFrame = Enemy.PrimaryPart.CFrame * CFrame.new(0, 15, 0)})
  237. T:Play()
  238. end
  239. wait()
  240. end
  241. end,
  242. Enabled = false
  243. }
  244. )
  245.  
  246. local Killaura =
  247. Main.Toggle(
  248. {
  249. Text = "KillAura",
  250. Callback = function(Value)
  251. getgenv().killaura = Value
  252. while getgenv().killaura and wait() do
  253. local Enemy = Nearest()
  254.  
  255. if (Enemy ~= nil) then
  256. wait(.3)
  257. Damage(Enemy.Entity.Parent)
  258. end
  259. end
  260. end,
  261. Enabled = false
  262. }
  263. )
  264.  
  265. local TargetBosses =
  266. Main.Toggle(
  267. {
  268. Text = "Prioritize Bosses",
  269. Callback = function(Value)
  270. getgenv().TargetBosses = Value
  271. end,
  272. Enabled = false
  273. }
  274. )
  275.  
  276. -- Misc --
  277.  
  278. local TweenSpeed =
  279. Misc.Slider(
  280. {
  281. Text = "WalkSpeed",
  282. Callback = function(Value)
  283. UserWalkSpeed(user, Value)
  284. end,
  285. Min = 16,
  286. Max = 100,
  287. Def = 0
  288. }
  289. )
  290.  
  291. local TweenSpeed =
  292. Misc.Slider(
  293. {
  294. Text = "JumpPower",
  295. Callback = function(Value)
  296. UserJumpPower(user, Value)
  297. end,
  298. Min = 16,
  299. Max = 100,
  300. Def = 0
  301. }
  302. )
  303.  
  304. local Invisiblity =
  305. Misc.Button(
  306. {
  307. Text = "Invisibility",
  308. Callback = function()
  309. GoInvisible()
  310. end
  311. }
  312. )
  313.  
  314. Misc.Button(
  315. {
  316. Text = "Noclip",
  317. Callback = function()
  318.  
  319. noclip = false
  320. game:GetService('RunService').Stepped:connect(function()
  321. if noclip then
  322. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  323. end
  324. end)
  325. plr = game.Players.LocalPlayer
  326. mouse = plr:GetMouse()
  327. mouse.KeyDown:connect(function(key)
  328.  
  329. if key == "1" then
  330. noclip = not noclip
  331. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  332. end
  333. end)
  334. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  335.  
  336. Library:Notification("Loaded", "Press 1 to toggle noclip", 5, Color3.fromRGB(255, 255, 255))
  337. end
  338. }
  339. )
  340.  
  341. Misc.Button(
  342. {
  343. Text = "Fly",
  344. Callback = function()
  345. repeat wait()
  346. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  347. local mouse = game.Players.LocalPlayer:GetMouse()
  348. repeat wait() until mouse
  349. local plr = game.Players.LocalPlayer
  350. local torso = plr.Character.Head
  351. local flying = false
  352. local deb = true
  353. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  354. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  355. local maxspeed = 50
  356. local speed = 0
  357.  
  358. function Fly()
  359. local bg = Instance.new("BodyGyro", torso)
  360. bg.P = 9e4
  361. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  362. bg.cframe = torso.CFrame
  363. local bv = Instance.new("BodyVelocity", torso)
  364. bv.velocity = Vector3.new(0,0.1,0)
  365. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  366. repeat wait()
  367. plr.Character.Humanoid.PlatformStand = true
  368. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  369. speed = speed+.5+(speed/maxspeed)
  370. if speed > maxspeed then
  371. speed = maxspeed
  372. end
  373. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  374. speed = speed-1
  375. if speed < 0 then
  376. speed = 0
  377. end
  378. end
  379. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  380. 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
  381. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  382. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  383. 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
  384. else
  385. bv.velocity = Vector3.new(0,0.1,0)
  386. end
  387. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  388. until not flying
  389. ctrl = {f = 0, b = 0, l = 0, r = 0}
  390. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  391. speed = 0
  392. bg:Destroy()
  393. bv:Destroy()
  394. plr.Character.Humanoid.PlatformStand = false
  395. end
  396. mouse.KeyDown:connect(function(key)
  397. if key:lower() == "2" then
  398. if flying then flying = false
  399. else
  400. flying = true
  401. Fly()
  402. end
  403. elseif key:lower() == "w" then
  404. ctrl.f = 1
  405. elseif key:lower() == "s" then
  406. ctrl.b = -1
  407. elseif key:lower() == "a" then
  408. ctrl.l = -1
  409. elseif key:lower() == "d" then
  410. ctrl.r = 1
  411. end
  412. end)
  413. mouse.KeyUp:connect(function(key)
  414. if key:lower() == "w" then
  415. ctrl.f = 0
  416. elseif key:lower() == "s" then
  417. ctrl.b = 0
  418. elseif key:lower() == "a" then
  419. ctrl.l = 0
  420. elseif key:lower() == "d" then
  421. ctrl.r = 0
  422. end
  423. end)
  424. Fly()
  425.  
  426. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
  427.  
  428. 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))
  429. end
  430. }
  431. )
  432.  
  433. -- Settings --
  434.  
  435. local EntityDistance =
  436. Settings.Slider(
  437. {
  438. Text = "Max Entity Distance",
  439. Callback = function(Value)
  440. getgenv().Studs = Value
  441. end,
  442. Min = 150,
  443. Max = 10000,
  444. Def = 5000
  445. }
  446. )
  447.  
  448. local TweenSpeed =
  449. Settings.Slider(
  450. {
  451. Text = "Tweening Speed",
  452. Callback = function(Value)
  453. getgenv().TweenSpeed = Value
  454. end,
  455. Min = 10,
  456. Max = 125,
  457. Def = 50
  458. }
  459. )
  460.  
  461. spawn(function()
  462. while true do
  463. if (user.Character ~= nil and getgenv().autofarm) then
  464. local function NoClipping()
  465. if user.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  466. for _, Parts in next, (user.Character:GetDescendants()) do
  467. if (Parts:IsA("BasePart") and Parts.CanCollide == true) then
  468. Parts.CanCollide = false
  469. end
  470. end
  471. else
  472. user.Character.Humanoid:ChangeState(11)
  473. end
  474. end
  475.  
  476. spawn(NoClipping)
  477. end
  478. wait()
  479. end
  480. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement