-----------------

32K sword reupload

May 11th, 2021 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.05 KB | None | 0 0
  1. warn[[
  2. AlmightyToast's 32K Sword
  3.  
  4. Sharpness enchantment.level.32767
  5. Knockback X
  6. Fire Aspect enchantment.level.32767
  7. Looting X
  8. Sweeping Edge III
  9. Unbreaking enchantment.level.32767
  10. Mending
  11. Curse of Vanishing
  12.  
  13. When in main hand:
  14. 1.6 Attack Speed
  15. 16391 Attack Damage
  16. ]]
  17.  
  18. local plr = owner
  19. local char = plr.Character
  20. local hum = char:FindFirstChildOfClass("Humanoid")
  21. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  22. local head = char:FindFirstChild("Head")
  23.  
  24. if hum.RigType ~= Enum.HumanoidRigType.R6 then warn("turn r6 or it wont work lol") return end
  25.  
  26. local tool = Instance.new("Tool")
  27. local handle = Instance.new("Part")
  28. local SpecialMesh2 = Instance.new("SpecialMesh")
  29. tool.Name = "AlmightyToast's 32K Sword"
  30. tool.Parent = plr.Backpack
  31. tool.TextureId = 'rbxassetid:/4911466046'
  32. tool.ToolTip = [[
  33. AlmightyToast's 32K Sword
  34.  
  35. Sharpness enchantment.level.32767
  36. Knockback X
  37. Fire Aspect enchantment.level.32767
  38. Looting X
  39. Sweeping Edge III
  40. Unbreaking enchantment.level.32767
  41. Mending
  42. Curse of Vanishing
  43.  
  44. When in main hand:
  45. 1.6 Attack Speed
  46. 81917.5 Attack Damage
  47. ]]
  48. 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)
  49. handle.Name = "Handle"
  50. handle.Parent = tool
  51. handle.Size = Vector3.new(3.1400001, 0.195999995, 3.1400001)
  52. handle.BottomSurface = Enum.SurfaceType.Smooth
  53. handle.CanCollide = false
  54. handle.TopSurface = Enum.SurfaceType.Smooth
  55. SpecialMesh2.Parent = handle
  56. SpecialMesh2.MeshId = "rbxassetid://3676810102"
  57. SpecialMesh2.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  58. SpecialMesh2.TextureId = "rbxassetid://3676810220"
  59. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  60.  
  61. for i,v in pairs(tool:GetChildren()) do
  62. v.Massless = true
  63. if v:IsA("Part") and v ~= handle then
  64. local weld = Instance.new("Weld")
  65. weld.Part0 = handle
  66. weld.Part1 = v
  67. weld.C0 = handle.CFrame:Inverse()
  68. weld.C1 = v.CFrame:Inverse()
  69. weld.Parent = v
  70. end
  71. end
  72.  
  73. tool.Parent = char
  74.  
  75. local debris = game:GetService("Debris")
  76. local tween = game:GetService("TweenService")
  77.  
  78. local sword_meta = {sharpness = 32767, knockback = 10}
  79.  
  80. local using = false
  81. local equipped = false
  82. local holding = false
  83. local stamina = 100
  84. local dmg = 35 + (5 * sword_meta.sharpness)
  85. local kb = 25 + (3 * sword_meta.knockback)
  86. local ls = nil
  87. local blocking = false
  88. local combat_18 = true
  89. local first_person = true
  90.  
  91. local effects = {}
  92.  
  93. function effects.sandbox(var,func)
  94. local env = getfenv(func)
  95. local newenv = setmetatable({},{
  96. __index = function(self,k)
  97. if k=="script" then
  98. return var
  99. else
  100. return env[k]
  101. end
  102. end,
  103. })
  104. setfenv(func,newenv)
  105. return func
  106. end
  107.  
  108. local hitsound2 = Instance.new("Sound")
  109. hitsound2.SoundId = 'rbxassetid://3362346832'
  110. hitsound2.Volume = 1.5
  111. hitsound2.Parent = handle
  112.  
  113. local critsound = Instance.new("Sound")
  114. critsound.SoundId = 'rbxassetid://4801410586'
  115. critsound.Volume = 1.5
  116. critsound.Parent = handle
  117.  
  118. function effects.effect(par,tarhum,weld,damage,targtorso,crit)
  119. local confirm = Instance.new("IntValue",par)
  120. confirm.Name = plr.Name .. 'swordhit 32k'
  121. confirm.Parent = par
  122. if combat_18 then
  123. debris:AddItem(confirm,0.05)
  124. else
  125. debris:AddItem(confirm,0.12)
  126. end
  127. if not par:FindFirstChild('fireaspect dmg') then
  128. local fireconfirm = Instance.new("IntValue",par)
  129. fireconfirm.Name = 'fireaspect dmg'
  130. fireconfirm.Parent = par
  131. debris:AddItem(fireconfirm,12)
  132. for i,v in pairs(par:GetChildren()) do
  133. 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
  134. local fire = Instance.new("Fire")
  135. fire.Parent = v
  136. debris:AddItem(fire,12)
  137. end
  138. end
  139. local clonehit = hitsound2:Clone()
  140. clonehit.Parent = weld
  141. spawn(function()
  142. while fireconfirm and fireconfirm.Parent and tarhum and tarhum.Parent and tarhum.Health > 0 and clonehit and clonehit.Parent do
  143. wait(1)
  144. clonehit:Play()
  145. tarhum:TakeDamage(5)
  146. for i,v in pairs(par:GetDescendants()) do
  147. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(char) and not v.Parent:IsA("Tool") and v.Name ~= "fallblock" then
  148. spawn(function()
  149. local weld = Instance.new("Weld")
  150. local part = v:Clone()
  151. part.CanCollide = false
  152. part.Massless = true
  153. part.Anchored = false
  154. for i,n in pairs(part:GetDescendants()) do
  155. if not n:IsA("SpecialMesh") then
  156. n:Destroy()
  157. end
  158. if n:IsA("SpecialMesh") then
  159. n.TextureId = ""
  160. n.Scale = n.Scale * 1.001
  161. end
  162. end
  163. weld.Part0 = part
  164. weld.Part1 = v
  165. weld.Parent = part
  166. part.BrickColor = BrickColor.new("Really red")
  167. part.Size = v.Size * 1.001
  168. part.Material = Enum.Material.SmoothPlastic
  169. part.CFrame = v.CFrame
  170. part.Parent = v.Parent
  171. part.Name = "hurtcolor"
  172. if 0.6 >= v.Transparency then
  173. part.Transparency = 0.6
  174. end
  175. if v.Transparency > 0.6 then
  176. part.Transparency = v.Transparency*1.5
  177. end
  178. part.CanCollide = false
  179. wait(0.1)
  180. part:Destroy()
  181. end)
  182. end
  183. end
  184. end
  185. end)
  186. end
  187. tarhum:TakeDamage(damage)
  188. if not hitsound2 then
  189. hitsound2 = Instance.new("Sound")
  190. hitsound2.SoundId = 'rbxassetid://3362346832'
  191. hitsound2.Volume = 1.5
  192. hitsound2.Parent = handle
  193. end
  194. if not critsound then
  195. critsound = Instance.new("Sound")
  196. critsound.SoundId = 'rbxassetid://4801410586'
  197. critsound.Volume = 1.5
  198. critsound.Parent = handle
  199. end
  200. if math.random(1,2) == 1 and crit then
  201. critsound.SoundId = 'rbxassetid://4801410586'
  202. elseif math.random(1,2) == 2 and crit then
  203. critsound.SoundId = 'rbxassetid://4801410149'
  204. elseif math.random(1,2) == 1 then
  205. hitsound2.SoundId = 'rbxassetid://3362346832'
  206. else
  207. hitsound2.SoundId = 'rbxassetid://3362337129'
  208. end
  209. if crit then
  210. critsound:Play()
  211. else
  212. hitsound2:Play()
  213. end
  214. --[[
  215. spawn(function()
  216. repeat wait() until not hitsound2.IsPlaying
  217. hitsound2.Parent = nil
  218. end)
  219. ]]
  220. spawn(function()
  221. local b = Instance.new("BodyVelocity")
  222. b.Parent = targtorso
  223. b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  224. b.Velocity = torso.CFrame.LookVector*(kb*1.25) + Vector3.new(0,9,0)
  225. debris:AddItem(b,0.1)
  226. end)
  227. for i,v in pairs(par:GetDescendants()) do
  228. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(char) and not v.Parent:IsA("Tool") and v.Name ~= "fallblock" then
  229. spawn(function()
  230. local weld = Instance.new("Weld")
  231. local part = v:Clone()
  232. part.CanCollide = false
  233. part.Massless = true
  234. part.Anchored = false
  235. for i,n in pairs(part:GetDescendants()) do
  236. if not n:IsA("SpecialMesh") then
  237. n:Destroy()
  238. end
  239. if n:IsA("SpecialMesh") then
  240. n.TextureId = ""
  241. n.Scale = n.Scale * 1.001
  242. end
  243. end
  244. weld.Part0 = part
  245. weld.Part1 = v
  246. weld.Parent = part
  247. part.BrickColor = BrickColor.new("Really red")
  248. part.Size = v.Size * 1.001
  249. part.Material = Enum.Material.SmoothPlastic
  250. part.CFrame = v.CFrame
  251. part.Parent = v.Parent
  252. part.Name = "hurtcolor"
  253. if 0.6 >= v.Transparency then
  254. part.Transparency = 0.6
  255. end
  256. if v.Transparency > 0.6 then
  257. part.Transparency = v.Transparency*1.5
  258. end
  259. part.CanCollide = false
  260. wait(0.1)
  261. part:Destroy()
  262. end)
  263. end
  264. end
  265. if 0 >= tarhum.Health then
  266. local targplr = game:GetService("Players"):GetPlayerFromCharacter(par)
  267. if targplr then
  268. for i,v in pairs(targplr['Backpack']:GetChildren()) do
  269. pcall(function()
  270. if v:IsA("Tool") then
  271. v.Parent = workspace
  272. v.Handle.CanCollide = true
  273. v.Handle.Position = weld.Position+Vector3.new(0,2,0)
  274. end
  275. end)
  276. end
  277. end
  278. for i,v in pairs(par:GetChildren()) do
  279. pcall(function()
  280. if v:IsA("Tool") then
  281. v.Parent = workspace
  282. v.Handle.CanCollide = true
  283. v.Handle.Position = weld.Position+Vector3.new(0,2,0)
  284. end
  285. end)
  286. end
  287. end
  288. end
  289.  
  290. local stamina = 100
  291.  
  292. local function recharge()
  293. if 100 > stamina then
  294. stamina = stamina + 10
  295. end
  296. if stamina > 100 then
  297. stamina = 100
  298. end
  299. end
  300.  
  301. spawn(function()
  302. while wait(0.06) do
  303. wait(0.06)
  304. recharge()
  305. end
  306. end)
  307.  
  308. local isFalling = false
  309. hum.StateChanged:Connect(function(old,new)
  310. if new == Enum.HumanoidStateType.Landed then
  311. isFalling = false
  312. elseif new == Enum.HumanoidStateType.Running then
  313. isFalling = false
  314. elseif new == Enum.HumanoidStateType.RunningNoPhysics then
  315. isFalling = false
  316. elseif new == Enum.HumanoidStateType.Jumping then
  317. isFalling = true
  318. elseif new == Enum.HumanoidStateType.FallingDown then
  319. isFalling = true
  320. elseif new == Enum.HumanoidStateType.Freefall then
  321. isFalling = true
  322. elseif new == Enum.HumanoidStateType.Climbing then
  323. isFalling = false
  324. end
  325. end)
  326.  
  327. local hitanimid = 0
  328.  
  329. local function hit(target,close)
  330. spawn(function()
  331. hitanimid = 1
  332. if hitanimid == 1 then else return end
  333. 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()
  334. hitanimid = 2
  335. wait(0.08)
  336. if hitanimid == 2 then else return end
  337. 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()
  338. hitanimid = 3
  339. wait(0.04)
  340. if hitanimid == 3 then else return end
  341. 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()
  342. end)
  343. if (combat_18 or (stamina > 30 and not combat_18)) and ((target and close) or not first_person) then else return end
  344.  
  345. local temp_dmg = 0
  346. local crit = false
  347.  
  348. if combat_18 then
  349. temp_dmg = dmg+(5 * (32000 + 1))
  350. else
  351. if isFalling then
  352. temp_dmg = (dmg*1.57142857)+(5 * (32000 + 1))
  353. crit = true
  354. elseif stamina > 30 then
  355. temp_dmg = dmg+(5 * (32000 + 1))
  356. end
  357. stamina = 0
  358. end
  359.  
  360. local connection
  361.  
  362. if not first_person then
  363. connection = handle.Touched:Connect(function(obj)
  364. local targchar,targtorso,targhum
  365. pcall(function()
  366. targchar = obj.Parent
  367. end)
  368. pcall(function()
  369. targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  370. end)
  371. pcall(function()
  372. targhum = targchar:FindFirstChildOfClass("Humanoid")
  373. end)
  374. if targchar and targchar ~= char and targtorso and targhum then
  375. if targhum ~= nil then
  376. if targhum.Parent then
  377. if not targhum.Parent:FindFirstChild(plr.Name .. "swordhit 32k") and obj.Parent:IsA("Model") and targhum.Health > 0 then
  378. effects.effect(targhum.Parent,targhum,targchar.PrimaryPart,temp_dmg,targtorso,crit)
  379. end
  380. end
  381. end
  382. end
  383. end)
  384. elseif first_person then
  385. local targchar,targtorso,targhum
  386. for i,v in pairs(workspace:GetChildren()) do
  387. if target:IsDescendantOf(v) then
  388. targchar = v
  389. end
  390. end
  391. --[[
  392. pcall(function()
  393. targchar = target.Parent
  394. end)
  395. ]]
  396. pcall(function()
  397. targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  398. end)
  399. pcall(function()
  400. targhum = targchar:FindFirstChildOfClass("Humanoid")
  401. end)
  402. if target and targchar and targchar ~= char and targtorso and targhum then
  403. if targhum ~= nil then
  404. if targhum.Parent then
  405. if not targhum.Parent:FindFirstChild(plr.Name .. "swordhit 32k") and targchar:IsA("Model") and targhum.Health > 0 then
  406. effects.effect(targhum.Parent,targhum,targchar.PrimaryPart,temp_dmg,targtorso,crit)
  407. end
  408. end
  409. end
  410. end
  411. end
  412. if combat_18 then
  413. wait(0.05)
  414. else
  415. wait(0.12)
  416. end
  417.  
  418. spawn(function()
  419. wait(0.1)
  420. connection:Disconnect()
  421. end)
  422. end
  423.  
  424. local function CheckIfAlive()
  425. local alive = false;
  426. 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
  427. alive = true;
  428. end;
  429. return alive;
  430. end;
  431.  
  432. tool.Equipped:Connect(function()
  433. char = tool.Parent;
  434. plr = game:GetService("Players"):GetPlayerFromCharacter(char);
  435. hum = char:FindFirstChildOfClass("Humanoid");
  436. torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart");
  437. head = char:FindFirstChild("Head");
  438. if not CheckIfAlive() then tool.Parent = nil return end;
  439. equipped = true
  440. end)
  441.  
  442. tool.Unequipped:Connect(function()
  443. if 0 >= hum.Health then
  444. tool:Destroy()
  445. end
  446. equipped = false
  447. end)
  448.  
  449. local mouseremote = Instance.new("RemoteEvent")
  450. mouseremote.Name = "mouseremote"
  451. mouseremote.Parent = tool
  452.  
  453. local code = [[
  454. workspace.Camera.FieldOfView = 90
  455. local plr = game:GetService("Players").LocalPlayer
  456. local char = plr.Character
  457. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  458. local hum = char:FindFirstChildOfClass("Humanoid")
  459. local mouse = plr:GetMouse()
  460. local remote = script.Parent:WaitForChild("mouseremote")
  461.  
  462. mouse.TargetFilter = char
  463. plr.CameraMode = Enum.CameraMode.LockFirstPerson
  464.  
  465. mouse.Button1Down:Connect(function()
  466. local target = mouse.Target
  467. local mag = nil
  468. local close = false
  469. if target and torso then
  470. mag = (torso.Position - target.Position).magnitude
  471. end
  472. if mag and 8 >= mag then
  473. close = true
  474. end
  475. remote:FireServer(1,target,close)
  476. end)
  477.  
  478. mouse.KeyDown:Connect(function(key)
  479. if key == "e" then
  480. remote:FireServer(2,true)
  481. end
  482. end)
  483.  
  484. mouse.KeyUp:Connect(function(key)
  485. if key == "e" then
  486. remote:FireServer(2,false)
  487. end
  488. end)
  489. ]]
  490.  
  491. NLS(code,tool)
  492.  
  493. mouseremote.OnServerEvent:Connect(function(plr,mode,data,data2)
  494. if mode == 1 and equipped and not using and not blocking then
  495. using = true
  496. hit(data,data2)
  497. using = false
  498. end
  499. if mode == 2 then
  500. if data then
  501. blocking = true
  502. 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)
  503. --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()
  504. elseif not data then
  505. blocking = false
  506. 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)
  507. --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()
  508. end
  509. end
  510. end)
  511.  
  512. local box = Instance.new("SelectionBox")
  513. box.Adornee = handle
  514. box.Parent = handle
  515. box.LineThickness = 0.025
  516.  
  517. local g = 0
  518. local b = 120
  519. local t = 0
  520. local increment = 4
  521. local increase1,increase2,increase3 = true,false,true
  522.  
  523. game:GetService("RunService").Stepped:Connect(function()
  524. if g >= 120 then
  525. g = 120
  526. increase1 = false
  527. elseif 0 >= g then
  528. g = 0
  529. increase1 = true
  530. end
  531. if increase1 then
  532. g = g + increment
  533. elseif not increase1 then
  534. g = g - increment
  535. end
  536. if b >= 255 then
  537. b = 255
  538. increase2 = false
  539. elseif 120 >= b then
  540. b = 120
  541. increase2 = true
  542. end
  543. if increase2 then
  544. b = b + increment
  545. elseif not increase2 then
  546. b = b - increment
  547. end
  548. if t >= 255 then
  549. t = 255
  550. increase3 = false
  551. elseif 150 >= t then
  552. t = 150
  553. increase3 = true
  554. end
  555. if increase3 then
  556. t = t + increment
  557. elseif not increase3 then
  558. t = t - increment
  559. end
  560. box.Color3 = Color3.fromRGB(0,g,b)
  561. box.SurfaceColor3 = Color3.fromRGB(0,g,b)
  562. box.SurfaceTransparency = (t/255)
  563. end)
Add Comment
Please, Sign In to add comment