SHARE
TWEET

Untitled

rblx345 Aug 22nd, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Enjoy this shit
  2. --When you Click its explode asf
  3. --Touch kids with the sword to kill them.
  4. --Made by N3xul
  5. local runDummyScript = function(f,scri)
  6. local oldenv = getfenv(f)
  7. local newenv = setmetatable({}, {
  8. __index = function(_, k)
  9. if k:lower() == 'script' then
  10. return scri
  11. end
  12. end
  13. })
  14. setfenv(f, newenv)
  15. ypcall(function() f() end)
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. mas.Name = "CompiledModel"
  20. o1 = Instance.new("HopperBin")
  21. o2 = Instance.new("LocalScript")
  22. o1.Name = "OPSwords"
  23. o1.Parent = mas
  24. o1.TextureId = "http://www.roblox.com/asset/?id=23722071"
  25. o2.Name = "AnimDeath"
  26. o2.Parent = o1
  27. table.insert(cors,coroutine.create(function()
  28. wait()
  29. runDummyScript(function()
  30. print("Animator Loaded.");
  31.  
  32. --Animation Manager--
  33. local bin = script.Parent;
  34. while (game.Players.LocalPlayer.Character == nil) do
  35.     wait()
  36. end
  37. print("Player found. :)");
  38. local player = game.Players.LocalPlayer.Character;
  39. local human = player.Humanoid;
  40.  
  41. --Tool Variables--
  42. local tselected = false;
  43.  
  44. --Base Part--
  45. local block = Instance.new("Part");
  46. block.FormFactor = "Symmetric";
  47. block.Size = Vector3.new(1, 1, 1);
  48. block.Transparency = 1;
  49. block.CanCollide = false;
  50. block.Locked = true;
  51.  
  52. local sword = Instance.new("Part");
  53. sword.FormFactor = "Plate";
  54. sword.Shape = "Block";
  55. sword.Size = Vector3.new(1, 0.8, 4);
  56. sword.Transparency = 1;
  57. sword.CanCollide = false;
  58. local SlashSound = Instance.new("Sound")
  59. SlashSound.SoundId = "http://www.roblox.com/asset/?id=11998777"
  60. SlashSound.Pitch = 1.4;
  61. SlashSound.Looped = true;
  62. SlashSound.Name = "Voom";
  63. SlashSound.Parent = sword
  64. snd = Instance.new("Sound")
  65. snd.SoundId = "http://www.roblox.com/asset/?id=2233908"
  66. snd.Volume = 1
  67. snd.Name = "Boom"
  68. snd.Parent =  sword
  69. local UnsheathSound = Instance.new("Sound")
  70. UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=11998770"
  71. UnsheathSound.Name = "Go"
  72. UnsheathSound.Volume = 0.5
  73. UnsheathSound.Parent = sword
  74. local mesh = Instance.new("SpecialMesh");
  75. mesh.MeshType = "FileMesh";
  76. mesh.MeshId = "http://www.roblox.com/asset/?id=11996935";
  77. mesh.Scale = Vector3.new(1.4,1.4,1.4);
  78. mesh.TextureId = "http://www.roblox.com/asset/?id=23719291";
  79. mesh.Parent = sword;
  80. local sparkle = Instance.new("Sparkles")
  81. sparkle.SparkleColor = Color3.new(0, 255, 155);
  82. sparkle.Parent = sword;
  83. sparkle.Enabled = false;
  84. local sword2 = sword:Clone();
  85.  
  86. local lsweld = Instance.new("Weld");
  87. local rsweld = Instance.new("Weld");
  88. --Left Arm Positioners and Welders--
  89. local lPosBase = block:Clone();
  90. local lPosWeld = Instance.new("Weld");
  91. local lRotBase = block:Clone();
  92. local lRotWeld = Instance.new("Weld");
  93. local lArmWeld = Instance.new("Weld");
  94.  
  95. --Right Arm Positioners and Welders--
  96. local rPosBase = block:Clone();
  97. local rPosWeld = Instance.new("Weld");
  98. local rRotBase = block:Clone();
  99. local rRotWeld = Instance.new("Weld");
  100. local rArmWeld = Instance.new("Weld");
  101.  
  102. --Head Welder--
  103. local hRotBase = block:Clone();
  104. local hRotWeld = Instance.new("Weld");
  105. local headWeld = Instance.new("Weld");
  106.  
  107. --Bind the base parts to the Torso. Tricky.
  108.  
  109. --Left--
  110. lPosBase.Name = "LPosBase";
  111. lPosWeld.Name = "LPosWeld";
  112. lRotBase.Name = "LRotBase";
  113. lRotWeld.Name = "LRotWeld";
  114. lPosWeld.Part0 = player.Torso;
  115. lPosWeld.Part1 = lPosBase;
  116. lPosWeld.C1 = CFrame.new(1.5, -0.5, 0);
  117. lPosWeld.Parent = player.Torso;
  118. lPosBase.Parent = player;
  119. lRotWeld.Part0 = lPosBase;
  120. lRotWeld.Part1 = lRotBase;
  121. lRotWeld.Parent = player.Torso;
  122. lRotBase.Parent = player;
  123. lArmWeld.Part0 = lRotBase;
  124. lArmWeld.C1 = CFrame.new(0, 0.5, 0);
  125. lArmWeld.Parent = player.Torso;
  126.  
  127. --Right--
  128. rPosBase.Name = "RPosBase";
  129. rPosWeld.Name = "RPosWeld";
  130. rRotBase.Name = "RRotBase";
  131. rRotWeld.Name = "RRotWeld";
  132. rPosWeld.Part0 = player.Torso;
  133. rPosWeld.Part1 = rPosBase;
  134. rPosWeld.C1 = CFrame.new(-1.5, -0.5, 0);
  135. rPosWeld.Parent = player.Torso;
  136. rPosBase.Parent = player;
  137. rRotWeld.Part0 = rPosBase;
  138. rRotWeld.Part1 = rRotBase;
  139. rRotWeld.Parent = player.Torso;
  140. rRotBase.Parent = player;
  141. rArmWeld.Part0 = rRotBase;
  142. rArmWeld.C1 = CFrame.new(0, 0.5, 0);
  143. rArmWeld.Parent = player.Torso;
  144.  
  145. --Head--
  146. hRotBase.Name = "HRotBase";
  147. hRotWeld.Name = "HRotWeld";
  148. headWeld.Name = "HeadWeld";
  149. hRotWeld.Part0 = player.Torso;
  150. hRotWeld.Part1 = hRotBase;
  151. hRotWeld.C1 = CFrame.new(0, -1.5, 0);
  152. hRotWeld.Parent = player.Torso;
  153. hRotBase.Parent = player;
  154. headWeld.Part0 = hRotBase;
  155. headWeld.Parent = player.Torso;
  156.  
  157. --Le Swords--
  158. lsweld.Part0 = lRotBase;
  159. rsweld.Part0 = rRotBase;
  160. lsweld.Part1 = sword;
  161. rsweld.Part1 = sword2;
  162. lsweld.C1 = CFrame.new(0, 0, -3.5)*CFrame.Angles(math.rad(270), math.rad(90), 0);
  163. rsweld.C1 = CFrame.new(0, 0, -3.5)*CFrame.Angles(math.rad(270), math.rad(90), 0);
  164. lsweld.Parent = player.Torso;
  165. rsweld.Parent = player.Torso;
  166. sword.Parent = player;
  167. sword2.Parent = player;
  168. sword.Voom:Stop();
  169. sword2.Voom:Stop();
  170. print("Bases binded.");
  171.  
  172. --Binds the arms and head to the base parts.
  173. function bind()
  174.     lArmWeld.Part1 = player:FindFirstChild("Left Arm");
  175.     rArmWeld.Part1 = player:FindFirstChild("Right Arm");
  176.     headWeld.Part1 = player:FindFirstChild("Head");
  177.     sword.Transparency = 0;
  178.     sword2.Transparency = 0;
  179.     sword.Go:Play();
  180.     sword2.Go:Play();
  181.     sword.Sparkles.Enabled = true;
  182.     sword2.Sparkles.Enabled = true;
  183.     human.WalkSpeed = 28;
  184.     sword.Voom:Play();
  185.     sword2.Voom:Play();
  186. end
  187.  
  188. --Releases the arms and head from the base parts.
  189. function unbind()
  190.     lArmWeld.Part1 = nil;
  191.     rArmWeld.Part1 = nil;
  192.     headWeld.Part1 = nil;
  193.     sword.Transparency = 1;
  194.     sword2.Transparency = 1;
  195.     sword.Sparkles.Enabled = false;
  196.     sword2.Sparkles.Enabled = false;
  197.     human.WalkSpeed = 28;
  198.     sword.Go:Play();
  199.     sword2.Go:Play();
  200.     sword.Voom:Stop();
  201.     sword2.Voom:Stop();
  202. end
  203.  
  204. function boom(part)
  205.     wait();
  206.     if part == nil or tselected == false then return end;
  207.     if part.Anchored then return end;
  208.     if part.Parent == player or part.Parent.Parent == player then return end;
  209.     human:TakeDamage(-1);
  210.     sword.Sparkles:Clone().Parent = part;
  211.     sword.Go:Play();
  212.     sword2.Go:Play();
  213.     wait(0.5)
  214.     part:BreakJoints();
  215.     part.Velocity = Vector3.new(part.Velocity.X+ math.random(10, 20), part.Velocity.Y + math.random(100, 200), part.Velocity.Z+ math.random(10, 20));
  216.     game.Debris:AddItem(part, 10);
  217. end
  218.  
  219. local load = true;
  220.  
  221. function selected(mouse)
  222.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  223.     bind();
  224.     human.MaxHealth = 9999999;
  225.     if player:FindFirstChild("ForceField") then
  226.         player.ForceField:Destroy();
  227.     end
  228.     tselected = true;
  229.     mouse.Button1Down:connect(function()
  230.         if (load) then
  231.             mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  232.             load = false
  233.             sword.Boom:Play();
  234.             sword2.Boom:Play();
  235.             local e = Instance.new("Explosion");
  236.             e.Hit:connect(boom);
  237.             e.Position = player.Torso.Position;
  238.             e.BlastPressure = 0;
  239.             e.BlastRadius = 1000;
  240.             e.Parent = game.Workspace;
  241.             human:TakeDamage(50);
  242.             wait(1)
  243.             mouse.Icon = "rbxasset://textures\\GunCursor.png"
  244.             load = true
  245.         end
  246.     end)
  247.     while tselected do
  248.         lRotWeld.C1 = CFrame.Angles(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360)));
  249.         rRotWeld.C1 = CFrame.Angles(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360)));
  250.         human:TakeDamage(-0.25);
  251.         wait();
  252.     end
  253. end
  254.  
  255. function deselected()
  256.     tselected = false;
  257.     unbind();
  258.     human.MaxHealth = 9999999;
  259. end
  260.  
  261. --Event Listeners--
  262. sword.Touched:connect(boom);
  263. sword2.Touched:connect(boom);
  264. human.Jumping:connect(function()if tselected == false then return end player.Torso.Velocity = Vector3.new(player.Torso.Velocity.X, player.Torso.Velocity.Y + 40, player.Torso.Velocity.Z)end);
  265. --Tool--
  266. bin.Selected:connect(selected);
  267. bin.Deselected:connect(deselected);
  268. end,o2)
  269. end))
  270. mas.Parent = workspace
  271. mas:MakeJoints()
  272. local mas1 = mas:GetChildren()
  273. for i=1,#mas1 do
  274.     mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  275.     ypcall(function() mas1[i]:MakeJoints() end)
  276. end
  277. mas:Destroy()
  278. for i=1,#cors do
  279. coroutine.resume(cors[i])
  280. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top