LeGoldenRobloxian

Buster Blade

Jun 1st, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. local Me = game.Players.LocalPlayer
  2. local char = Me.Character
  3. local Torso = char.Torso
  4. local Rarm = char["Right Arm"]
  5. local Larm = char["Left Arm"]
  6. local on = false
  7. local Attkin = true
  8. pcall(function() char[":P"]:remove() end)
  9. pcall(function() char["Parts"]:remove() end)
  10. local Model = Instance.new("Model",char)
  11. Model.Name = ":P"
  12. local prts = Instance.new("Model", char)
  13. prts.Name = "Parts"
  14. local RAB = Instance.new("Part") -- Right Arm Brick
  15. RAB.formFactor = "Custom"
  16. RAB.Size = Vector3.new(0.2, 0.2, 0.2)
  17. RAB.Transparency = 1
  18. RAB.Parent = Model
  19. RAB:BreakJoints()
  20. local RABW = Instance.new("Weld",RAB) -- Right Arm Brick Weld
  21. RABW.Part0 = Torso
  22. RABW.Part1 = RAB
  23. RABW.C1 = CFrame.new(-1.5, -0.5, 0)
  24. local LAB = Instance.new("Part") -- Right Arm Brick
  25. LAB.formFactor = "Custom"
  26. LAB.Size = Vector3.new(0.2, 0.2, 0.2)
  27. LAB.Transparency = 1
  28. LAB.Parent = Model
  29. LAB:BreakJoints()
  30. local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld
  31. LABW.Part0 = Torso
  32. LABW.Part1 = LAB
  33. LABW.C1 = CFrame.new(1.5, -0.5, 0)
  34. local RAW = Instance.new("Weld",RAB) -- Right Arm Weld
  35. RAW.Part0 = RAB
  36. RAW.Part1 = nil
  37. RAW.C1 = CFrame.new(0, 0.5, 0)
  38. local LAW = Instance.new("Weld",LAB) -- Left Arm Weld
  39. LAW.Part0 = LAB
  40. LAW.Part1 = nil
  41. LAW.C1 = CFrame.new(0, 0.5, 0)
  42. ----SWORD SHEATHE AND HANDLE------------------------------------
  43. Handle = Instance.new("Part")
  44. Handle.Transparency = 0
  45. Handle.Parent = prts
  46. Handle.formFactor = "Custom"
  47. Handle.Size = Vector3.new(0.25,1,0.25) -- Om nom nom
  48. Handle.BrickColor = BrickColor.new(0.5,0,0)
  49. Handle:BreakJoints()
  50. mesh = Instance.new("CylinderMesh")
  51. mesh.Parent = Handle
  52. mesh.Scale = Vector3.new(1,1,1)
  53. weld = Instance.new("Weld")
  54. weld.Parent = Handle
  55. weld.Part0 = Handle
  56. weld.Part1 = Torso
  57. weld.C0 = CFrame.new(0, -1.5, -0.6) * CFrame.Angles(0, 0, 0.8)
  58. Handle.CanCollide = false
  59. --
  60. end1 = Instance.new("Part")
  61. end1.Transparency = 0
  62. end1.Parent = prts
  63. end1.formFactor = "Custom"
  64. end1.Size = Vector3.new(0.25,0.3,0.25) -- Om nom nom
  65. end1.BrickColor = BrickColor.new("Olive")
  66. end1:BreakJoints()
  67. mesh2 = Instance.new("CylinderMesh")
  68. mesh2.Parent = end1
  69. mesh2.Scale = Vector3.new(1,1,1)
  70. weld2 = Instance.new("Weld")
  71. weld2.Parent = end1
  72. weld2.Part0 = end1
  73. weld2.Part1 = Handle
  74. weld2.C0 = CFrame.new(0, -0.65, 0) * CFrame.Angles(0, 0, 0)
  75. end1.CanCollide = false
  76. --
  77. end2 = Instance.new("Part")
  78. end2.Transparency = 0
  79. end2.Parent = prts
  80. end2.formFactor = "Custom"
  81. end2.Size = Vector3.new(0.25,0.3,0.25) -- Om nom nom
  82. end2.BrickColor = BrickColor.new("Olive")
  83. end2:BreakJoints()
  84. mesh2 = Instance.new("CylinderMesh")
  85. mesh2.Parent = end2
  86. mesh2.Scale = Vector3.new(1,1,1)
  87. weld2 = Instance.new("Weld")
  88. weld2.Parent = end2
  89. weld2.Part0 = end2
  90. weld2.Part1 = Handle
  91. weld2.C0 = CFrame.new(0, 0.65, 0) * CFrame.Angles(0, 0, 0)
  92. end2.CanCollide = false
  93. --
  94. s2 = Instance.new("Part")
  95. s2.Transparency = 0
  96. s2.Parent = prts
  97. s2.formFactor = "Custom"
  98. s2.Size = Vector3.new(3,0.5,0.25) -- Om nom nom
  99. s2.BrickColor = BrickColor.new("Olive")
  100. s2:BreakJoints()
  101. mesh2 = Instance.new("BlockMesh")
  102. mesh2.Parent = s2
  103. mesh2.Scale = Vector3.new(1,1,1)
  104. weld2 = Instance.new("Weld")
  105. weld2.Parent = s2
  106. weld2.Part0 = s2
  107. weld2.Part1 = end2
  108. weld2.C0 = CFrame.new(0, 0.4, 0) * CFrame.Angles(0, 0, 0)
  109. s2.CanCollide = false
  110. ----------BLADE BEGINS :D------------------------
  111. sw2 = Instance.new("Part")
  112. sw2.Transparency = 0
  113. sw2.Parent = prts
  114. sw2.formFactor = "Custom"
  115. sw2.Size = Vector3.new(2.5,6,0.25) -- Om nom nom
  116. sw2.BrickColor = BrickColor.new("Dark stone grey")
  117. sw2:BreakJoints()
  118. mesh2 = Instance.new("BlockMesh")
  119. mesh2.Parent = sw2
  120. mesh2.Scale = Vector3.new(1,1,1)
  121. weld2 = Instance.new("Weld")
  122. weld2.Parent = sw2
  123. weld2.Part0 = sw2
  124. weld2.Part1 = s2
  125. weld2.C0 = CFrame.new(0.25, 3.25, 0) * CFrame.Angles(0, 0, 0)
  126. sw2.CanCollide = false
  127. --
  128. sw22 = Instance.new("Part")
  129. sw22.Transparency = 0
  130. sw22.Parent = prts
  131. sw22.formFactor = "Custom"
  132. sw22.Size = Vector3.new(0.5,6,0.25) -- Om nom nom
  133. sw22.BrickColor = BrickColor.new("Medium stone grey")
  134. sw22:BreakJoints()
  135. mesh2 = Instance.new("BlockMesh")
  136. mesh2.Parent = sw22
  137. mesh2.Scale = Vector3.new(1,1,1)
  138. weld2 = Instance.new("Weld")
  139. weld2.Parent = sw22
  140. weld2.Part0 = sw22
  141. weld2.Part1 = s2
  142. weld2.C0 = CFrame.new(-1.25, 3.25, 0) * CFrame.Angles(0, 0, 0)
  143. sw22.CanCollide = false
  144. --
  145. sw33 = Instance.new("Part")
  146. sw33.Transparency = 0
  147. sw33.Parent = prts
  148. sw33.formFactor = "Custom"
  149. sw33.Size = Vector3.new(0.25,2,3) -- Om nom nom
  150. sw33.BrickColor = BrickColor.new("Medium stone grey")
  151. sw33:BreakJoints()
  152. mesh3 = Instance.new("SpecialMesh")
  153. mesh3.Parent = sw33
  154. mesh3.MeshType = "Wedge"
  155. mesh3.Scale = Vector3.new(1,1,1)
  156. weld3 = Instance.new("Weld")
  157. weld3.Parent = sw33
  158. weld3.Part0 = sw33
  159. weld3.Part1 = s2
  160. weld3.C0 = CFrame.new(0, -7.25, 0) * CFrame.Angles(3.15, -7.85, 0)
  161. sw33.CanCollide = false
  162. --lego
  163.  
  164. for _, v in pairs(prts:GetChildren()) do
  165. if v.className == "Part" then
  166. v.Locked = true
  167. end
  168. end
  169. --funcs
  170. function damg(part, mag)
  171. for _, v in pairs(game.Players:GetChildren()) do
  172. if (v.Character.Torso.Position - part.Position).magnitude < mag then
  173. if v.Name ~= Me.Name then
  174. v.Character.Humanoid:TakeDamage(15)
  175. end
  176. end
  177. end
  178. end
  179.  
  180. --end o funcs
  181. if script.Parent.className ~= "HopperBin" then
  182. local h = Instance.new("HopperBin", Me.Backpack)
  183. h.Name = "BBlade"
  184. script.Parent = h
  185. end
  186.  
  187. local bin = script.Parent
  188.  
  189. function onSelected(mouse)
  190. Attkin = false
  191. RAW.Part1 = Rarm
  192. RAW.C0 = CFrame.new(0, 0, 0)
  193. LAW.Part1 = Larm
  194. LAW.C0 = CFrame.new(0, 0, 0)
  195. for i = 0, 1, 0.1 do
  196. RAW.C0 = CFrame.Angles(math.rad(225*i), 0, math.rad(-25*i))
  197. wait()
  198. end
  199. weld.Part1 = Rarm
  200. weld.C0 = CFrame.new(-0.5, 0, -1) * CFrame.Angles(-0.8, -0.8, 0.8)
  201. for i = 0, 1, 0.1 do
  202. RAW.C0 = CFrame.Angles(math.rad(225-125*i), 0, math.rad(-25-0*i))
  203. LAW.C0 = CFrame.new(0.95*i, 0, -0.65*i) * CFrame.Angles(math.rad(100*i), 0, math.rad(45*i))
  204. weld.C0 = weld.C0 * CFrame.Angles(0, i/5, i/5) + Vector3.new(i/-10.75, 0, i/8.75)
  205. wait()
  206. end
  207. mouse.Button1Down:connect(function()
  208. if Attkin == false then
  209. Attkin = true
  210. for i = 0, 1, 0.1 do
  211. RAW.C0 = CFrame.Angles(math.rad(100+100*i), 0, math.rad(-25-0*i))
  212. LAW.C0 = CFrame.new(0.95+0*i, 0, -0.65+0*i) * CFrame.Angles(math.rad(100+125*i), 0, math.rad(45+0*i))
  213. wait()
  214. end
  215. for i = 0, 1, 0.1 do
  216. RAW.C0 = CFrame.Angles(math.rad(200-195*i), 0, math.rad(-25-0*i))
  217. LAW.C0 = CFrame.new(0.95+0*i, 0, -0.65+0*i) * CFrame.Angles(math.rad(200-195*i), 0, math.rad(45+0*i))
  218. damg(sw2, 4)
  219. wait()
  220. end
  221. for i = 0, 1, 0.1 do
  222. RAW.C0 = CFrame.Angles(math.rad(5+95*i), 0, math.rad(-25-0*i))
  223. LAW.C0 = CFrame.new(0.95+0*i, 0, -0.65+0*i) * CFrame.Angles(math.rad(5+95*i), 0, math.rad(45+0*i))
  224. wait()
  225. end
  226. Attkin = false
  227. end
  228. end)
  229. mouse.KeyDown:connect(function(key)
  230. if key == "q" and Attkin == false then
  231. Attkin = true
  232. for i = 0, 1, 0.1 do
  233. RAW.C0 = CFrame.Angles(math.rad(100+100*i), 0, math.rad(-25-0*i))
  234. LAW.C0 = CFrame.new(0.95+0*i, 0, -0.65+0*i) * CFrame.Angles(math.rad(100+125*i), 0, math.rad(45+0*i))
  235. wait()
  236. end
  237. for i = 0, 1, 0.1 do
  238. RAW.C0 = CFrame.Angles(math.rad(200-175*i), 0, math.rad(-25-0*i))
  239. LAW.C0 = CFrame.new(0.95+0*i, 0, -0.65+0*i) * CFrame.Angles(math.rad(200-175*i), 0, math.rad(45+0*i))
  240. wait()
  241. end
  242. bv = Instance.new("BodyAngularVelocity")
  243. bv.Parent = Torso
  244. bv.angularvelocity = Vector3.new(0, 20, 0)
  245. bv.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  246. bg = Instance.new("BodyGyro")
  247. bg.Parent = Torso
  248. bg.maxTorque = Vector3.new(0, 0, 0)
  249. on = true
  250. for i = 0, math.huge, 0.1 do
  251. if on == true then
  252. bv.Parent = Torso
  253. bg.Parent = Torso
  254. damg(sw2, 4)
  255. end
  256. if on == false then
  257. bv.Parent = nil
  258. bg.Parent = nil
  259. end
  260. wait()
  261. end
  262. end
  263. if key == "e" and Attkin == false then
  264. for _, v in pairs(game.Players:GetChildren()) do
  265. if v.Name == mouse.Target.Parent.Name then
  266. bin.Parent = v.Backpack
  267. prts.Parent = v.Character
  268. Model.Parent = v.Character
  269. end
  270. end
  271. end
  272. end)
  273. mouse.KeyUp:connect(function(key)
  274. if key == "q" then
  275. on = false
  276. for i = 0, 1, 0.1 do
  277. RAW.C0 = CFrame.Angles(math.rad(25+75*i), 0, math.rad(-25-0*i))
  278. LAW.C0 = CFrame.new(0.95+0*i, 0, -0.65+0*i) * CFrame.Angles(math.rad(25+75*i), 0, math.rad(45+0*i))
  279. wait()
  280. end
  281. Attkin = false
  282. end
  283. end)
  284. end
  285.  
  286. function onDesel(mouse)
  287. RAW.Part1 = nil
  288. LAW.Part1 = nil
  289. weld.Part1 = Torso
  290. weld.C0 = CFrame.new(0, -1.5, -0.6) * CFrame.Angles(0, 0, 0.8)
  291. end
  292.  
  293. bin.Selected:connect(onSelected)
  294. bin.Deselected:connect(onDesel)
Add Comment
Please, Sign In to add comment