Advertisement
astronaut32

drum

Jul 4th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.80 KB | None | 0 0
  1. local Me = game.Players.LocalPlayer
  2. if script.Parent.className ~= "HopperBin" then
  3. local h = Instance.new("HopperBin", Me.Backpack)
  4. h.Name = "Swords"
  5. script.Parent = h
  6. end
  7. char = Me.Character
  8. Torso = char.Torso
  9. Rarm = char["Right Arm"]
  10. Larm = char["Left Arm"]
  11. local bin = script.Parent
  12. pcall(function() char[":P"]:remove() end)
  13. local Model = Instance.new("Model",char)
  14. Model.Name = ":P"
  15. local RAB = Instance.new("Part") -- Right Arm Brick
  16. RAB.formFactor = "Custom"
  17. RAB.Size = Vector3.new(0.2, 0.2, 0.2)
  18. RAB.Transparency = 1
  19. RAB.Parent = Model
  20. RAB:BreakJoints()
  21. local RABW = Instance.new("Weld",RAB) -- Right Arm Brick Weld
  22. RABW.Part0 = Torso
  23. RABW.Part1 = RAB
  24. RABW.C1 = CFrame.new(-1.5, -0.5, 0)
  25. local LAB = Instance.new("Part") -- Right Arm Brick
  26. LAB.formFactor = "Custom"
  27. LAB.Size = Vector3.new(0.2, 0.2, 0.2)
  28. LAB.Transparency = 1
  29. LAB.Parent = Model
  30. LAB:BreakJoints()
  31. local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld
  32. LABW.Part0 = Torso
  33. LABW.Part1 = LAB
  34. LABW.C1 = CFrame.new(1.5, -0.5, 0)
  35. local RAW = Instance.new("Weld",RAB) -- Right Arm Weld
  36. RAW.Part0 = RAB
  37. RAW.Part1 = nil
  38. RAW.C1 = CFrame.new(0, 0.5, 0)
  39. local LAW = Instance.new("Weld",LAB) -- Left Arm Weld
  40. LAW.Part0 = LAB
  41. LAW.Part1 = nil
  42. LAW.C1 = CFrame.new(0, 0.5, 0)
  43. mo = Instance.new("Model")
  44. mo.Name = "Swords"
  45. mo.Parent = Me.Character
  46. function new(part, x, y, z, parent, color)
  47. local brick = part
  48. brick.formFactor = "Custom"
  49. brick:BreakJoints()
  50. brick.CanCollide = false
  51. brick.Size = Vector3.new(x, y, z)
  52. brick.Parent = parent
  53. brick.BrickColor = BrickColor.new(color)
  54. end
  55. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  56. part.Parent = parent
  57. part.formFactor = form
  58. part.CanCollide = collide
  59. part.Transparency = tran
  60. part.Reflectance = ref
  61. part.Size = Vector3.new(x,y,z)
  62. part.BrickColor = BrickColor.new(color)
  63. part.TopSurface = 0
  64. part.BottomSurface = 0
  65. part.Anchored = anchor
  66. part.Locked = true
  67. part:BreakJoints()
  68. end
  69. function mesh(mesh, parent, x, y, z, type)
  70. mesh.Parent = parent
  71. mesh.Scale = Vector3.new(x, y, z)
  72. mesh.MeshType = type
  73. end
  74. function mes(mesh, x, y, z, parent)
  75. local mes = mesh
  76. mes.Scale = Vector3.new(x, y, z)
  77. mes.Parent = parent
  78. end
  79. function wel(weld, x, y, z, parent, part, parta, xx, yy, zz)
  80. local wel = weld
  81. wel.Parent = parent
  82. wel.Part0 = part
  83. wel.Part1 = parta
  84. wel.C1 = CFrame.new(x, y, z) * CFrame.Angles(xx, yy, zz)
  85. end
  86. h2 = Instance.new("Part")
  87. hm2 = Instance.new("BlockMesh")
  88. hw2 = Instance.new("Weld")
  89. new(h2, 0.75, 0.2, 0.2, mo, "Brown")
  90. mes(hm2, 1.01, 1.01, 1.01, h2)
  91. wel(hw2, 0, -2.1, -0.51, h2, Torso, h2, 0, 0, -5.5)
  92. h4 = Instance.new("Part")
  93. hm4 = Instance.new("SpecialMesh")
  94. hw4 = Instance.new("Weld")
  95. new(h4, 0.35, 1, 0.2, mo, "Brown")
  96. mes(hm4, 1.01, 1.01, 1.01, h4)
  97. wel(hw4, 0, -0.5, 0, h4, h2, h4, 0, 0, 0)
  98. h1 = Instance.new("Part")
  99. hm1 = Instance.new("BlockMesh")
  100. hw1 = Instance.new("Weld")
  101. new(h1, 0.75, 0.2, 0.2, mo, "Brown")
  102. mes(hm1, 1.01, 1.01, 1.01, h2)
  103. wel(hw1, 0, -2.1, -0.5, h1, Torso, h1, 0, 0, 5.5)
  104. h4 = Instance.new("Part")
  105. hm4 = Instance.new("SpecialMesh")
  106. hw4 = Instance.new("Weld")
  107. new(h4, 0.35, 1, 0.2, mo, "Brown")
  108. mes(hm4, 1.01, 1.01, 1.01, h4)
  109. wel(hw4, 0, -0.5, 0, h4, h1, h4, 0, 0, 0)
  110. p = Instance.new("Part")
  111. m = Instance.new("BlockMesh")
  112. w = Instance.new("Weld")
  113. new(p, 0.75, 4, 0.2, mo, "Gray")
  114. mes(m, 1.01, 1.01, 1.01, p)
  115. wel(w, 0, 2.1, 0, p, h1, p, 0, 0, 0)
  116. p2 = Instance.new("Part")
  117. m2 = Instance.new("BlockMesh")
  118. w2 = Instance.new("Weld")
  119. new(p2, 0.75, 4, 0.2, mo, "Gray")
  120. mes(m2, 1.01, 1.01, 1.01, p2)
  121. wel(w2, 0, 2.1, 0, p2, h2, p2, 0, 0, 0)
  122. function fade(brick,mesh,scale,tran,speed)
  123. coroutine.resume(coroutine.create(function()
  124. for i=tran,1,speed do
  125. wait()
  126. brick.Transparency = i
  127. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  128. end
  129. brick:remove()
  130. end))
  131. end
  132. function bv(part)
  133. b = Instance.new("BodyVelocity")
  134. b.Parent = part
  135. b.velocity = Vector3.new(0, 25, 0)
  136. wait(1.5)
  137. b.velocity = Vector3.new(0, -75, 0)
  138. wait(0.285)
  139. b:remove()
  140. end
  141. function bvc(part)
  142. b = Instance.new("BodyVelocity")
  143. b.Parent = part
  144. b.velocity = part.CFrame.lookVector * 25
  145. wait(1.5)
  146. b:remove()
  147. end
  148. function spikes(part,color)
  149. local p = Instance.new("Part",Me.Character)
  150. prop(p,Me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  151. p.CFrame = part.CFrame * CFrame.new(0,-2.5,-3.5)
  152. local mww = Instance.new("SpecialMesh")
  153. mesh(mww,p,6,5,6,"FileMesh")
  154. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  155. fade(p,mww,0.55,p.Transparency,0.08)
  156. end
  157. function spikes2(part,color)
  158. local p = Instance.new("Part",Me.Character)
  159. prop(p,Me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  160. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  161. local mww = Instance.new("SpecialMesh")
  162. mesh(mww,p,8,7,8,"FileMesh")
  163. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  164. fade(p,mww,0.55,p.Transparency,0.06)
  165. end
  166. function onSelected(mouse)
  167. RAW.Part1 = Rarm
  168. LAW.Part1 = Larm
  169. for i = 0, 1, 0.1 do
  170. RAW.C0 = CFrame.Angles(math.rad(210*i), math.rad(-12*i), math.rad(12*i))
  171. LAW.C0 = CFrame.Angles(math.rad(210*i), math.rad(12*i), math.rad(-12*i))
  172. wait()
  173. end
  174. h1.Weld.Part0 = Larm
  175. h1.Weld.C1 = CFrame.new(0, 1, -1) * CFrame.Angles(-7.8, 0, 0)
  176. h2.Weld.Part0 = Rarm
  177. h2.Weld.C1 = CFrame.new(0, 1, -1) * CFrame.Angles(-7.8, 0, 0)
  178. for i = 0, 1, 0.1 do
  179. RAW.C0 = CFrame.Angles(math.rad(210-185*i), math.rad(-12+12*i), math.rad(12*i))
  180. LAW.C0 = CFrame.Angles(math.rad(210-185*i), math.rad(12-12*i), math.rad(-12*i))
  181. wait()
  182. end
  183. --[[ for i = 0, 1, 0.05 do
  184. RAW.C0 = CFrame.Angles(math.rad(90-110*i), 0, math.rad(35*i))
  185. wait()
  186. end
  187. for i = 0, 1, 0.15 do
  188. RAW.C0 = CFrame.Angles(math.rad(175-175*i), 0, math.rad(35-35*i))
  189. wait()
  190. end ]]--
  191. mouse.Button1Down:connect(function()
  192. for i = 0, 1, 0.15 do
  193. LAW.C0 = CFrame.Angles(math.rad(90-110*i), math.rad(-12*i), math.rad(-12*i))
  194. wait()
  195. end
  196. spikes(Torso, "Bright blue")
  197. local dist = 5
  198. for _, v in pairs(game.Players:GetChildren()) do
  199. if not v.Character then return end
  200. if (v.Character.Torso.Position - p.Position).magnitude < dist then
  201. if v.Name ~= Torso.Parent.Name then
  202. v.Character.Humanoid.Health = v.Character.Humanoid.Health - math.random(15, 35)
  203. end
  204. end
  205. end
  206. for i = 0, 1, 0.15 do
  207. LAW.C0 = CFrame.Angles(math.rad(-20+20*i), math.rad(-12*i), math.rad(-12*i))
  208. wait()
  209. end
  210. end)
  211. mouse.Button2Down:connect(function()
  212. for i = 0, 1, 0.15 do
  213. RAW.C0 = CFrame.Angles(math.rad(90-110*i), math.rad(12*i), math.rad(12*i))
  214. wait()
  215. end
  216. spikes(Torso, "Bright blue")
  217. local dist = 5
  218. for _, v in pairs(game.Players:GetChildren()) do
  219. if not v.Character then return end
  220. if (v.Character.Torso.Position - p.Position).magnitude < dist then
  221. if v.Name ~= Torso.Parent.Name then
  222. v.Character.Humanoid.Health = v.Character.Humanoid.Health - math.random(15, 35)
  223. end
  224. end
  225. end
  226. for i = 0, 1, 0.15 do
  227. RAW.C0 = CFrame.Angles(math.rad(-20+20*i), math.rad(12*i), math.rad(12*i))
  228. wait()
  229. end
  230. end)
  231. mouse.KeyDown:connect(function(key)
  232. if key == "q" then
  233. for i = 0, 1, 0.15 do
  234. RAW.C0 = CFrame.Angles(math.rad(150-110*i), math.rad(12*i), math.rad(12*i))
  235. LAW.C0 = CFrame.Angles(math.rad(150-110*i), math.rad(-12*i), math.rad(-12*i))
  236. wait()
  237. end
  238. spikes2(Torso, "Bright blue")
  239. bv(Torso)
  240. wait(0.75)
  241. spikes(Torso, "Bright blue")
  242. local dist = 5
  243. for _, v in pairs(game.Players:GetChildren()) do
  244. if not v.Character then return end
  245. if (v.Character.Torso.Position - p.Position).magnitude < dist then
  246. if v.Name ~= Torso.Parent.Name then
  247. v.Character.Humanoid.Health = v.Character.Humanoid.Health - math.random(25, 45)
  248. end
  249. end
  250. end
  251. for i = 0, 1, 0.15 do
  252. RAW.C0 = CFrame.Angles(math.rad(-20+20*i), math.rad(12*i), math.rad(12*i))
  253. LAW.C0 = CFrame.Angles(math.rad(-20+20*i), math.rad(-12*i), math.rad(-12*i))
  254. wait()
  255. end
  256. end
  257. if key == "e" then
  258. for i = 0, 1, 0.15 do
  259. RAW.C0 = CFrame.Angles(math.rad(150-110*i), math.rad(12*i), math.rad(12*i))
  260. LAW.C0 = CFrame.Angles(math.rad(150-110*i), math.rad(-12*i), math.rad(-12*i))
  261. wait()
  262. end
  263. spikes2(Torso, "Bright blue")
  264. bvc(Torso)
  265. wait(0.75)
  266. spikes(Torso, "Bright blue")
  267. local dist = 5
  268. for _, v in pairs(game.Players:GetChildren()) do
  269. if not v.Character then return end
  270. if (v.Character.Torso.Position - p.Position).magnitude < dist then
  271. if v.Name ~= Torso.Parent.Name then
  272. v.Character.Humanoid.Health = v.Character.Humanoid.Health - math.random(25, 45)
  273. end
  274. end
  275. end
  276. for i = 0, 1, 0.15 do
  277. RAW.C0 = CFrame.Angles(math.rad(-20+20*i), math.rad(12*i), math.rad(12*i))
  278. LAW.C0 = CFrame.Angles(math.rad(-20+20*i), math.rad(-12*i), math.rad(-12*i))
  279. wait()
  280. end
  281. end
  282. end)
  283. end
  284. function onDesel(mouse)
  285. for i = 0, 1, 0.1 do
  286. RAW.C0 = CFrame.Angles(math.rad(210*i), math.rad(-12*i), math.rad(12*i))
  287. LAW.C0 = CFrame.Angles(math.rad(210*i), math.rad(12*i), math.rad(-12*i))
  288. wait()
  289. end
  290. h1.Weld.Part0 = Torso
  291. h1.Weld.C1 = CFrame.new(0, -2.1, -0.51) * CFrame.Angles(0, 0, 5.5)
  292. h2.Weld.Part0 = Torso
  293. h2.Weld.C1 = CFrame.new(0, -2.1, -0.51) * CFrame.Angles(0, 0, -5.5)
  294. for i = 0, 1, 0.1 do
  295. RAW.C0 = CFrame.Angles(math.rad(210-210*i), math.rad(-12+12*i), math.rad(12-12*i))
  296. LAW.C0 = CFrame.Angles(math.rad(210-210*i), math.rad(12-12*i), math.rad(-12+12*i))
  297. wait()
  298. end
  299. RAW.Part1 = nil
  300. LAW.Part1 = nil
  301. end
  302. bin.Selected:connect(onSelected)
  303. bin.Deselected:connect(onDesel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement