warn[[ AlmightyToast's 32K Sword Sharpness enchantment.level.32767 Knockback X Fire Aspect enchantment.level.32767 Looting X Sweeping Edge III Unbreaking enchantment.level.32767 Mending Curse of Vanishing When in main hand: 1.6 Attack Speed 16391 Attack Damage ]] local plr = owner local char = plr.Character local hum = char:FindFirstChildOfClass("Humanoid") local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") local head = char:FindFirstChild("Head") if hum.RigType ~= Enum.HumanoidRigType.R6 then warn("turn r6 or it wont work lol") return end local tool = Instance.new("Tool") local handle = Instance.new("Part") local SpecialMesh2 = Instance.new("SpecialMesh") tool.Name = "AlmightyToast's 32K Sword" tool.Parent = plr.Backpack tool.TextureId = 'rbxassetid:/4911466046' tool.ToolTip = [[ AlmightyToast's 32K Sword Sharpness enchantment.level.32767 Knockback X Fire Aspect enchantment.level.32767 Looting X Sweeping Edge III Unbreaking enchantment.level.32767 Mending Curse of Vanishing When in main hand: 1.6 Attack Speed 81917.5 Attack Damage ]] tool.Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819) handle.Name = "Handle" handle.Parent = tool handle.Size = Vector3.new(3.1400001, 0.195999995, 3.1400001) handle.BottomSurface = Enum.SurfaceType.Smooth handle.CanCollide = false handle.TopSurface = Enum.SurfaceType.Smooth SpecialMesh2.Parent = handle SpecialMesh2.MeshId = "rbxassetid://3676810102" SpecialMesh2.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003) SpecialMesh2.TextureId = "rbxassetid://3676810220" SpecialMesh2.MeshType = Enum.MeshType.FileMesh for i,v in pairs(tool:GetChildren()) do v.Massless = true if v:IsA("Part") and v ~= handle then local weld = Instance.new("Weld") weld.Part0 = handle weld.Part1 = v weld.C0 = handle.CFrame:Inverse() weld.C1 = v.CFrame:Inverse() weld.Parent = v end end tool.Parent = char local debris = game:GetService("Debris") local tween = game:GetService("TweenService") local sword_meta = {sharpness = 32767, knockback = 10} local using = false local equipped = false local holding = false local stamina = 100 local dmg = 35 + (5 * sword_meta.sharpness) local kb = 25 + (3 * sword_meta.knockback) local ls = nil local blocking = false local combat_18 = true local first_person = true local effects = {} function effects.sandbox(var,func) local env = getfenv(func) local newenv = setmetatable({},{ __index = function(self,k) if k=="script" then return var else return env[k] end end, }) setfenv(func,newenv) return func end local hitsound2 = Instance.new("Sound") hitsound2.SoundId = 'rbxassetid://3362346832' hitsound2.Volume = 1.5 hitsound2.Parent = handle local critsound = Instance.new("Sound") critsound.SoundId = 'rbxassetid://4801410586' critsound.Volume = 1.5 critsound.Parent = handle function effects.effect(par,tarhum,weld,damage,targtorso,crit) local confirm = Instance.new("IntValue",par) confirm.Name = plr.Name .. 'swordhit 32k' confirm.Parent = par if combat_18 then debris:AddItem(confirm,0.05) else debris:AddItem(confirm,0.12) end if not par:FindFirstChild('fireaspect dmg') then local fireconfirm = Instance.new("IntValue",par) fireconfirm.Name = 'fireaspect dmg' fireconfirm.Parent = par debris:AddItem(fireconfirm,12) for i,v in pairs(par:GetChildren()) do if (v:IsA("Part") or v:IsA("WedgePart") or v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation")) and v.Name ~= "effects" then local fire = Instance.new("Fire") fire.Parent = v debris:AddItem(fire,12) end end local clonehit = hitsound2:Clone() clonehit.Parent = weld spawn(function() while fireconfirm and fireconfirm.Parent and tarhum and tarhum.Parent and tarhum.Health > 0 and clonehit and clonehit.Parent do wait(1) clonehit:Play() tarhum:TakeDamage(5) for i,v in pairs(par:GetDescendants()) do if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(char) and not v.Parent:IsA("Tool") and v.Name ~= "fallblock" then spawn(function() local weld = Instance.new("Weld") local part = v:Clone() part.CanCollide = false part.Massless = true part.Anchored = false for i,n in pairs(part:GetDescendants()) do if not n:IsA("SpecialMesh") then n:Destroy() end if n:IsA("SpecialMesh") then n.TextureId = "" n.Scale = n.Scale * 1.001 end end weld.Part0 = part weld.Part1 = v weld.Parent = part part.BrickColor = BrickColor.new("Really red") part.Size = v.Size * 1.001 part.Material = Enum.Material.SmoothPlastic part.CFrame = v.CFrame part.Parent = v.Parent part.Name = "hurtcolor" if 0.6 >= v.Transparency then part.Transparency = 0.6 end if v.Transparency > 0.6 then part.Transparency = v.Transparency*1.5 end part.CanCollide = false wait(0.1) part:Destroy() end) end end end end) end tarhum:TakeDamage(damage) if not hitsound2 then hitsound2 = Instance.new("Sound") hitsound2.SoundId = 'rbxassetid://3362346832' hitsound2.Volume = 1.5 hitsound2.Parent = handle end if not critsound then critsound = Instance.new("Sound") critsound.SoundId = 'rbxassetid://4801410586' critsound.Volume = 1.5 critsound.Parent = handle end if math.random(1,2) == 1 and crit then critsound.SoundId = 'rbxassetid://4801410586' elseif math.random(1,2) == 2 and crit then critsound.SoundId = 'rbxassetid://4801410149' elseif math.random(1,2) == 1 then hitsound2.SoundId = 'rbxassetid://3362346832' else hitsound2.SoundId = 'rbxassetid://3362337129' end if crit then critsound:Play() else hitsound2:Play() end --[[ spawn(function() repeat wait() until not hitsound2.IsPlaying hitsound2.Parent = nil end) ]] spawn(function() local b = Instance.new("BodyVelocity") b.Parent = targtorso b.MaxForce = Vector3.new(math.huge,math.huge,math.huge) b.Velocity = torso.CFrame.LookVector*(kb*1.25) + Vector3.new(0,9,0) debris:AddItem(b,0.1) end) for i,v in pairs(par:GetDescendants()) do if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(char) and not v.Parent:IsA("Tool") and v.Name ~= "fallblock" then spawn(function() local weld = Instance.new("Weld") local part = v:Clone() part.CanCollide = false part.Massless = true part.Anchored = false for i,n in pairs(part:GetDescendants()) do if not n:IsA("SpecialMesh") then n:Destroy() end if n:IsA("SpecialMesh") then n.TextureId = "" n.Scale = n.Scale * 1.001 end end weld.Part0 = part weld.Part1 = v weld.Parent = part part.BrickColor = BrickColor.new("Really red") part.Size = v.Size * 1.001 part.Material = Enum.Material.SmoothPlastic part.CFrame = v.CFrame part.Parent = v.Parent part.Name = "hurtcolor" if 0.6 >= v.Transparency then part.Transparency = 0.6 end if v.Transparency > 0.6 then part.Transparency = v.Transparency*1.5 end part.CanCollide = false wait(0.1) part:Destroy() end) end end if 0 >= tarhum.Health then local targplr = game:GetService("Players"):GetPlayerFromCharacter(par) if targplr then for i,v in pairs(targplr['Backpack']:GetChildren()) do pcall(function() if v:IsA("Tool") then v.Parent = workspace v.Handle.CanCollide = true v.Handle.Position = weld.Position+Vector3.new(0,2,0) end end) end end for i,v in pairs(par:GetChildren()) do pcall(function() if v:IsA("Tool") then v.Parent = workspace v.Handle.CanCollide = true v.Handle.Position = weld.Position+Vector3.new(0,2,0) end end) end end end local stamina = 100 local function recharge() if 100 > stamina then stamina = stamina + 10 end if stamina > 100 then stamina = 100 end end spawn(function() while wait(0.06) do wait(0.06) recharge() end end) local isFalling = false hum.StateChanged:Connect(function(old,new) if new == Enum.HumanoidStateType.Landed then isFalling = false elseif new == Enum.HumanoidStateType.Running then isFalling = false elseif new == Enum.HumanoidStateType.RunningNoPhysics then isFalling = false elseif new == Enum.HumanoidStateType.Jumping then isFalling = true elseif new == Enum.HumanoidStateType.FallingDown then isFalling = true elseif new == Enum.HumanoidStateType.Freefall then isFalling = true elseif new == Enum.HumanoidStateType.Climbing then isFalling = false end end) local hitanimid = 0 local function hit(target,close) spawn(function() hitanimid = 1 if hitanimid == 1 then else return end tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-1.12343681, 7.46069873e-14, 0.865265131, -2.96722469e-08, 0.678822041, -0.734302819, -1, -4.37113883e-08, 0, -3.20973932e-08, 0.734302819, 0.678822041)}):Play() hitanimid = 2 wait(0.08) if hitanimid == 2 then else return end tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-0.825168073, -0.020077154, 1.00834012, -0.275093406, 0.960726619, -0.0364401713, -0.146487176, -0.0044247508, 0.989202619, 0.950192153, 0.277461171, 0.141951352)}):Play() hitanimid = 3 wait(0.04) if hitanimid == 3 then else return end tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819)}):Play() end) if (combat_18 or (stamina > 30 and not combat_18)) and ((target and close) or not first_person) then else return end local temp_dmg = 0 local crit = false if combat_18 then temp_dmg = dmg+(5 * (32000 + 1)) else if isFalling then temp_dmg = (dmg*1.57142857)+(5 * (32000 + 1)) crit = true elseif stamina > 30 then temp_dmg = dmg+(5 * (32000 + 1)) end stamina = 0 end local connection if not first_person then connection = handle.Touched:Connect(function(obj) local targchar,targtorso,targhum pcall(function() targchar = obj.Parent end) pcall(function() targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart") end) pcall(function() targhum = targchar:FindFirstChildOfClass("Humanoid") end) if targchar and targchar ~= char and targtorso and targhum then if targhum ~= nil then if targhum.Parent then if not targhum.Parent:FindFirstChild(plr.Name .. "swordhit 32k") and obj.Parent:IsA("Model") and targhum.Health > 0 then effects.effect(targhum.Parent,targhum,targchar.PrimaryPart,temp_dmg,targtorso,crit) end end end end end) elseif first_person then local targchar,targtorso,targhum for i,v in pairs(workspace:GetChildren()) do if target:IsDescendantOf(v) then targchar = v end end --[[ pcall(function() targchar = target.Parent end) ]] pcall(function() targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart") end) pcall(function() targhum = targchar:FindFirstChildOfClass("Humanoid") end) if target and targchar and targchar ~= char and targtorso and targhum then if targhum ~= nil then if targhum.Parent then if not targhum.Parent:FindFirstChild(plr.Name .. "swordhit 32k") and targchar:IsA("Model") and targhum.Health > 0 then effects.effect(targhum.Parent,targhum,targchar.PrimaryPart,temp_dmg,targtorso,crit) end end end end end if combat_18 then wait(0.05) else wait(0.12) end spawn(function() wait(0.1) connection:Disconnect() end) end local function CheckIfAlive() local alive = false; if (plr and plr.Parent and char and char.Parent and hum and hum.Parent and hum.Health > 0 and torso and torso.Parent and head and head.Parent) then alive = true; end; return alive; end; tool.Equipped:Connect(function() char = tool.Parent; plr = game:GetService("Players"):GetPlayerFromCharacter(char); hum = char:FindFirstChildOfClass("Humanoid"); torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart"); head = char:FindFirstChild("Head"); if not CheckIfAlive() then tool.Parent = nil return end; equipped = true end) tool.Unequipped:Connect(function() if 0 >= hum.Health then tool:Destroy() end equipped = false end) local mouseremote = Instance.new("RemoteEvent") mouseremote.Name = "mouseremote" mouseremote.Parent = tool local code = [[ workspace.Camera.FieldOfView = 90 local plr = game:GetService("Players").LocalPlayer local char = plr.Character local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChildOfClass("Humanoid") local mouse = plr:GetMouse() local remote = script.Parent:WaitForChild("mouseremote") mouse.TargetFilter = char plr.CameraMode = Enum.CameraMode.LockFirstPerson mouse.Button1Down:Connect(function() local target = mouse.Target local mag = nil local close = false if target and torso then mag = (torso.Position - target.Position).magnitude end if mag and 8 >= mag then close = true end remote:FireServer(1,target,close) end) mouse.KeyDown:Connect(function(key) if key == "e" then remote:FireServer(2,true) end end) mouse.KeyUp:Connect(function(key) if key == "e" then remote:FireServer(2,false) end end) ]] NLS(code,tool) mouseremote.OnServerEvent:Connect(function(plr,mode,data,data2) if mode == 1 and equipped and not using and not blocking then using = true hit(data,data2) using = false end if mode == 2 then if data then blocking = true tool.Grip = CFrame.new(-0.825168073, -0.020077154, 1.00834012, -0.275093406, 0.960726619, -0.0364401713, -0.146487176, -0.0044247508, 0.989202619, 0.950192153, 0.277461171, 0.141951352) --tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-0.825168073, -0.020077154, 1.00834012, -0.275093406, 0.960726619, -0.0364401713, -0.146487176, -0.0044247508, 0.989202619, 0.950192153, 0.277461171, 0.141951352)}):Play() elseif not data then blocking = false tool.Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819) --tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819)}):Play() end end end) local box = Instance.new("SelectionBox") box.Adornee = handle box.Parent = handle box.LineThickness = 0.025 local g = 0 local b = 120 local t = 0 local increment = 4 local increase1,increase2,increase3 = true,false,true game:GetService("RunService").Stepped:Connect(function() if g >= 120 then g = 120 increase1 = false elseif 0 >= g then g = 0 increase1 = true end if increase1 then g = g + increment elseif not increase1 then g = g - increment end if b >= 255 then b = 255 increase2 = false elseif 120 >= b then b = 120 increase2 = true end if increase2 then b = b + increment elseif not increase2 then b = b - increment end if t >= 255 then t = 255 increase3 = false elseif 150 >= t then t = 150 increase3 = true end if increase3 then t = t + increment elseif not increase3 then t = t - increment end box.Color3 = Color3.fromRGB(0,g,b) box.SurfaceColor3 = Color3.fromRGB(0,g,b) box.SurfaceTransparency = (t/255) end)