awzp

Buster Sword Upload (not by me)

May 29th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.48 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. for _, v in pairs(prts:GetChildren()) do
  164. if v.className == "Part" then
  165. v.Locked = true
  166. end
  167. end
  168. --funcs
  169. function damg(part, mag)
  170. for _, v in pairs(game.Players:GetChildren()) do
  171. if (v.Character.Torso.Position - part.Position).magnitude < mag then
  172. if v.Name ~= Me.Name then
  173. v.Character.Humanoid:TakeDamage(15)
  174. end
  175. end
  176. end
  177. end
  178. --end o funcs
  179. if script.Parent.className ~= "HopperBin" then
  180. local h = Instance.new("HopperBin", Me.Backpack)
  181. h.Name = "BBlade"
  182. script.Parent = h
  183. end
  184. local bin = script.Parent
  185. function onSelected(mouse)
  186. Attkin = false
  187. RAW.Part1 = Rarm
  188. RAW.C0 = CFrame.new(0, 0, 0)
  189. LAW.Part1 = Larm
  190. LAW.C0 = CFrame.new(0, 0, 0)
  191. for i = 0, 1, 0.1 do
  192. RAW.C0 = CFrame.Angles(math.rad(225*i), 0, math.rad(-25*i))
  193. wait()
  194. end
  195. weld.Part1 = Rarm
  196. weld.C0 = CFrame.new(-0.5, 0, -1) * CFrame.Angles(-0.8, -0.8, 0.8)
  197. for i = 0, 1, 0.1 do
  198. RAW.C0 = CFrame.Angles(math.rad(225-125*i), 0, math.rad(-25-0*i))
  199. LAW.C0 = CFrame.new(0.95*i, 0, -0.65*i) * CFrame.Angles(math.rad(100*i), 0, math.rad(45*i))
  200. weld.C0 = weld.C0 * CFrame.Angles(0, i/5, i/5) + Vector3.new(i/-10.75, 0, i/8.75)
  201. wait()
  202. end
  203. mouse.Button1Down:connect(function()
  204. if Attkin == false then
  205. Attkin = true
  206. for i = 0, 1, 0.1 do
  207. RAW.C0 = CFrame.Angles(math.rad(100+100*i), 0, math.rad(-25-0*i))
  208. 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))
  209. wait()
  210. end
  211. for i = 0, 1, 0.1 do
  212. RAW.C0 = CFrame.Angles(math.rad(200-195*i), 0, math.rad(-25-0*i))
  213. 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))
  214. damg(sw2, 4)
  215. wait()
  216. end
  217. for i = 0, 1, 0.1 do
  218. RAW.C0 = CFrame.Angles(math.rad(5+95*i), 0, math.rad(-25-0*i))
  219. 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))
  220. wait()
  221. end
  222. Attkin = false
  223. end
  224. end)
  225. mouse.KeyDown:connect(function(key)
  226. if key == "q" and Attkin == false then
  227. Attkin = true
  228. for i = 0, 1, 0.1 do
  229. RAW.C0 = CFrame.Angles(math.rad(100+100*i), 0, math.rad(-25-0*i))
  230. 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))
  231. wait()
  232. end
  233. for i = 0, 1, 0.1 do
  234. RAW.C0 = CFrame.Angles(math.rad(200-175*i), 0, math.rad(-25-0*i))
  235. 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))
  236. wait()
  237. end
  238. bv = Instance.new("BodyAngularVelocity")
  239. bv.Parent = Torso
  240. bv.angularvelocity = Vector3.new(0, 20, 0)
  241. bv.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  242. bg = Instance.new("BodyGyro")
  243. bg.Parent = Torso
  244. bg.maxTorque = Vector3.new(0, 0, 0)
  245. on = true
  246. for i = 0, math.huge, 0.1 do
  247. if on == true then
  248. bv.Parent = Torso
  249. bg.Parent = Torso
  250. damg(sw2, 4)
  251. end
  252. if on == false then
  253. bv.Parent = nil
  254. bg.Parent = nil
  255. end
  256. wait()
  257. end
  258. end
  259. if key == "e" and Attkin == false then
  260. for _, v in pairs(game.Players:GetChildren()) do
  261. if v.Name == mouse.Target.Parent.Name then
  262. bin.Parent = v.Backpack
  263. prts.Parent = v.Character
  264. Model.Parent = v.Character
  265. end
  266. end
  267. end
  268. end)
  269. mouse.KeyUp:connect(function(key)
  270. if key == "q" then
  271. on = false
  272. for i = 0, 1, 0.1 do
  273. RAW.C0 = CFrame.Angles(math.rad(25+75*i), 0, math.rad(-25-0*i))
  274. 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))
  275. wait()
  276. end
  277. Attkin = false
  278. end
  279. end)
  280. end
  281. function onDesel(mouse)
  282. RAW.Part1 = nil
  283. LAW.Part1 = nil
  284. weld.Part1 = Torso
  285. weld.C0 = CFrame.new(0, -1.5, -0.6) * CFrame.Angles(0, 0, 0.8)
  286. end
  287. bin.Selected:connect(onSelected)
  288. bin.Deselected:connect(onDesel)
Add Comment
Please, Sign In to add comment