Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
- local Library =
- Material.Load(
- {
- Title = "Swordburst 2 ― SwordKiller | Beta",
- Style = 1,
- SizeX = 400,
- SizeY = 400,
- Theme = "Aqua",
- ColorOverrides = {
- MainFrame = Color3.fromRGB(35,35,35)
- }
- }
- )
- -- Variables
- local s =
- setmetatable(
- {},
- {
- __index = function(self, service)
- return game:GetService(service)
- end,
- __newindex = function(self, key)
- self[key] = nil
- end
- }
- )
- local Ser;
- for i, v in next, getreg() do
- if typeof(v) == "table" then
- if rawget(v, "Services") then
- Ser = v.Services
- break
- end
- end
- end
- local key = getupvalue(Ser.Combat.Init, 2)
- local user = s["Players"].LocalPlayer
- local ReplicatedStorage = s["ReplicatedStorage"]
- getgenv().TweenSpeed = 50
- getgenv().Studs = 5000
- -- etc
- local BossNames = {
- "Dire Wolf",
- "Rahjin the Thief King",
- "Borik the BeeKeeper",
- "Gorrock the Grove Protector",
- "Ra'thae the Ice King",
- "Qerach The Forgotten Golem",
- "Irath the Lion",
- "Rotling",
- "Fire Scorpion",
- "Sa'jun the Centurian Chieftain",
- "Frogazoid",
- "Smashroom",
- "Hippogriff",
- "Formaug the Jungle Giant",
- "Gargoyle Reaper",
- "Mortis the Flaming Sear",
- "Polyserpant",
- "Baal",
- "Grim the Overseer",
- "Da",
- "Ra",
- "Ka",
- "Egg Mimic" -- easter event
- }
- -- Functions
- local function Damage(Enemy)
- --if (not getgenv().MultiplyDamage) then
- --ReplicatedStorage.Event:FireServer("Combat", key, {"Attack", nil, "1", Enemy})
- --return
- --end
- -- above coming soon
- ReplicatedStorage.Event:FireServer("Skills", {"UseSkill", "Summon Pistol"})
- ReplicatedStorage.Event:FireServer("Combat", key, {"Attack", "Summon Pistol", "1", Enemy})
- end
- local function UserWalkSpeed(person, speed)
- if person and person.Character then
- if person.Character:FindFirstChildWhichIsA("Humanoid") then
- person.Character:FindFirstChildWhichIsA("Humanoid").WalkSpeed = speed
- end
- end
- end
- local function UserJumpPower(person, Jump)
- if person and person.Character then
- if person.Character:FindFirstChildWhichIsA("Humanoid") then
- person.Character:FindFirstChildWhichIsA("Humanoid").JumpPower = Jump
- end
- end
- end
- local function GoInvisible()
- if(user.Character and user.Character:FindFirstChild("LowerTorso") or user.Character:FindFirstChildWhichIsA("LowerTorso")) then
- user.character.LowerTorso.Root:Destroy()
- end
- end
- local function Nearest()
- local d = getgenv().Studs
- local t = nil
- for i, v in pairs(game.Workspace.Mobs:GetChildren()) do
- if
- (v.PrimaryPart ~= nil and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Nameplate") and
- v.Parent and
- v:FindFirstChild("Entity") and
- v.Entity.Health.Value > 0)
- then
- if getgenv().TargetBosses then
- for _, i in next, BossNames do
- if (i == v.Name) then
- return v
- end
- end
- end
- local Magnitude = (v.PrimaryPart.CFrame.p - Workspace.CurrentCamera.CFrame.p).Magnitude
- if (Magnitude < d and Magnitude > 0) then
- d = Magnitude
- t = v
- end
- end
- end
- return t
- end
- --[[
- soon
- local function NearestPlayer()
- local Root = user and user:FindFirstChild("HumanoidRootPart")
- if not (user or Root) then return end
- local d = getgenv().Studs
- local t = nil
- for i, v in pairs(game.Players:GetChildren()) do
- if (v ~= user and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character.Humanoid.Health > 0)
- then
- local Magnitude = (user.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
- if (Magnitude < d) then
- d = Magnitude
- t = v
- end
- end
- end
- return t
- end
- --]]
- -- Sections --
- local Main =
- Library.New(
- {
- Title = "Swordburst 2"
- }
- )
- local Misc =
- Library.New(
- {
- Title = "Misc"
- }
- )
- local Settings =
- Library.New(
- {
- Title = "Settings"
- }
- )
- local Credits =
- Library.New(
- {
- Title = "Credits"
- }
- )
- --Credits
- Credits.Button(
- {
- Text = "Made By KarumuBlox#2391",
- Callback = function()
- end
- }
- )
- Credits.Button(
- {
- Text = "Discord: Click to Copy",
- Callback = function()
- setclipboard("https://discord.gg/3MKe7qFACv")
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
- Library:Notification("Copied!", "Paste into Browser to join the discord", 5, Color3.fromRGB(255, 255, 255))
- end
- }
- )
- -- Auto --
- local AutoFarm =
- Main.Toggle(
- {
- Text = "AutoFarm",
- Callback = function(Value)
- getgenv().autofarm = Value
- while getgenv().autofarm do
- local Enemy = Nearest()
- if (Enemy ~= nil) then
- tweenService, tweenInfo = s["TweenService"], TweenInfo.new((user.Character.HumanoidRootPart.Position - Enemy.HumanoidRootPart.Position).Magnitude / getgenv().TweenSpeed, Enum.EasingStyle.Linear)
- T = tweenService:Create(user.Character.HumanoidRootPart, tweenInfo, {CFrame = Enemy.PrimaryPart.CFrame * CFrame.new(0, 15, 0)})
- T:Play()
- end
- wait()
- end
- end,
- Enabled = false
- }
- )
- local Killaura =
- Main.Toggle(
- {
- Text = "KillAura",
- Callback = function(Value)
- getgenv().killaura = Value
- while getgenv().killaura and wait() do
- local Enemy = Nearest()
- if (Enemy ~= nil) then
- wait(.3)
- Damage(Enemy.Entity.Parent)
- end
- end
- end,
- Enabled = false
- }
- )
- local TargetBosses =
- Main.Toggle(
- {
- Text = "Prioritize Bosses",
- Callback = function(Value)
- getgenv().TargetBosses = Value
- end,
- Enabled = false
- }
- )
- -- Misc --
- local TweenSpeed =
- Misc.Slider(
- {
- Text = "WalkSpeed",
- Callback = function(Value)
- UserWalkSpeed(user, Value)
- end,
- Min = 16,
- Max = 100,
- Def = 0
- }
- )
- local TweenSpeed =
- Misc.Slider(
- {
- Text = "JumpPower",
- Callback = function(Value)
- UserJumpPower(user, Value)
- end,
- Min = 16,
- Max = 100,
- Def = 0
- }
- )
- local Invisiblity =
- Misc.Button(
- {
- Text = "Invisibility",
- Callback = function()
- GoInvisible()
- end
- }
- )
- Misc.Button(
- {
- Text = "Noclip",
- Callback = function()
- noclip = false
- game:GetService('RunService').Stepped:connect(function()
- if noclip then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "1" then
- noclip = not noclip
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
- Library:Notification("Loaded", "Press 1 to toggle noclip", 5, Color3.fromRGB(255, 255, 255))
- end
- }
- )
- Misc.Button(
- {
- Text = "Fly",
- Callback = function()
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.Head
- local flying = false
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- 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
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- 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
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "2" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/TrillyX/Resources/main/NFLib"))()
- 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))
- end
- }
- )
- -- Settings --
- local EntityDistance =
- Settings.Slider(
- {
- Text = "Max Entity Distance",
- Callback = function(Value)
- getgenv().Studs = Value
- end,
- Min = 150,
- Max = 10000,
- Def = 5000
- }
- )
- local TweenSpeed =
- Settings.Slider(
- {
- Text = "Tweening Speed",
- Callback = function(Value)
- getgenv().TweenSpeed = Value
- end,
- Min = 10,
- Max = 125,
- Def = 50
- }
- )
- spawn(function()
- while true do
- if (user.Character ~= nil and getgenv().autofarm) then
- local function NoClipping()
- if user.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- for _, Parts in next, (user.Character:GetDescendants()) do
- if (Parts:IsA("BasePart") and Parts.CanCollide == true) then
- Parts.CanCollide = false
- end
- end
- else
- user.Character.Humanoid:ChangeState(11)
- end
- end
- spawn(NoClipping)
- end
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement