Advertisement
rblx345

Untitled

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