Advertisement
astronaut32

crystal staff

Dec 13th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.44 KB | None | 0 0
  1. User = game.Players.LocalPlayer
  2. Char = User.Character
  3. cen = Instance.new("Part", User.Character)
  4. cen.BottomSurface = "Smooth"
  5. cen.TopSurface = "Smooth"
  6. cen.CanCollide = false
  7. cen.formFactor = "Symmetric"
  8. cen.Size = Vector3.new(1,1,1)
  9. cen.BrickColor = BrickColor.new("Really black")
  10. cen.Transparency = 1
  11. cen2 = Instance.new("Part", User.Character)
  12. cen2.BottomSurface = "Smooth"
  13. cen2.TopSurface = "Smooth"
  14. cen2.CanCollide = false
  15. cen2.formFactor = "Symmetric"
  16. cen2.Size = Vector3.new(1,1,1)
  17. cen2.BrickColor = BrickColor.new("Really black")
  18. cen2.Transparency = 1
  19. cenw = Instance.new("Weld", cen)
  20. cenw.Part0 = Char["Torso"]
  21. cenw.Part1 = cen
  22. cenw.C1 = CFrame.new(-1.5,-0.5,0)
  23. cenw2 = Instance.new("Weld", cen2)
  24. cenw2.Part0 = Char["Torso"]
  25. cenw2.Part1 = cen2
  26. cenw2.C1 = CFrame.new(1.5,-0.5,0)
  27. haw = Instance.new("Weld", cen)
  28. haw.Part0 = cen
  29. haw.Part1 = Char["Right Arm"]
  30. haw.C1 = CFrame.new(0,0.5,0)
  31. haw2 = Instance.new("Weld", cen2)
  32. haw2.Part0 = cen2
  33. haw2.Part1 = Char["Left Arm"]
  34. haw2.C1 = CFrame.new(0,0.5,0)
  35. haw.Part1 = nil
  36. haw2.Part1 = nil
  37. Torso = Instance.new("Part", Char)
  38. Torso.formFactor = "Symmetric"
  39. Torso.BrickColor = Char.Torso.BrickColor
  40. Torso.Size = Char.Torso.Size
  41. Torso.Transparency = 1
  42. Torso.Reflectance = 0
  43. Torso:BreakJoints()
  44. Torsow = Instance.new("Weld", Torso)
  45. Torsow.Part0 = Char["Torso"]
  46. Torsow.Part1 = Torso
  47. Torsow.C1 = CFrame.Angles(0,math.rad(0),0)
  48. Hw = Instance.new("Weld", Torso)
  49. Hw.Part0 = Torso
  50. Hw.Part1 = Char.Head
  51. Hw.C1 = CFrame.new(0,-1.5,0)
  52. prt1f = Instance.new("Part", Char)
  53. prt1f.Size = Vector3.new(1,1,1)
  54. prt1f.CanCollide = false
  55. prt1f.BrickColor = BrickColor.new("Institutional white")
  56. prt1f.TopSurface = "Smooth"
  57. prt1f.Transparency = 1
  58. prt1f.BottomSurface = "Smooth"
  59. prtfM = Instance.new("CylinderMesh", prt1f)
  60. prtfM.Scale = Vector3.new(0.2,4,0.2)
  61. prt1f:BreakJoints()
  62. prtfW = Instance.new("Weld", prt1f)
  63. prtfW.Part0 = Char["Right Arm"]
  64. prtfW.Part1 = prt1f
  65. prtfW.C1 = CFrame.new(0,-0.5,1)*CFrame.Angles(math.rad(90),0,math.rad(0))
  66. prt1 = Instance.new("Part", Char)
  67. prt1.Size = Vector3.new(1,1,1)
  68. prt1.CanCollide = false
  69. prt1.BrickColor = BrickColor.new("Institutional white")
  70. prt1.TopSurface = "Smooth"
  71. prt1.Transparency = 0.5
  72. prt1.BottomSurface = "Smooth"
  73. prtM = Instance.new("CylinderMesh", prt1)
  74. prtM.Scale = Vector3.new(0.2,4,0.2)
  75. prt1:BreakJoints()
  76. prtW = Instance.new("Weld", prt1)
  77. prtW.Part0 = prt1f
  78. prtW.Part1 = prt1
  79. prtW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  80. for i = 0,17 do
  81. prt = Instance.new("Part", Char)
  82. prt.formFactor = "Custom"
  83. prt.Size = Vector3.new(1,1,1)
  84. prt.CanCollide = false
  85. prt.BrickColor = BrickColor.new("Really black")
  86. prt.TopSurface = "Smooth"
  87. prt.Transparency = 0
  88. prt.BottomSurface = "Smooth"
  89. prtMm = Instance.new("SpecialMesh", prt)
  90. prtMm.MeshType = "Sphere"
  91. prtMm.Scale = Vector3.new(0.15,0.15,0.15)
  92. prt:BreakJoints()
  93. prtWw = Instance.new("Weld", prt)
  94. prtWw.Part0 = prt1
  95. prtWw.Part1 = prt
  96. prtWw.C1 = CFrame.new(0,-i/8,0.07)*CFrame.Angles(math.rad(0),math.rad(i*50),math.rad(0))
  97. end
  98. for i = 1,17 do
  99. prt = Instance.new("Part", Char)
  100. prt.formFactor = "Custom"
  101. prt.Size = Vector3.new(1,1,1)
  102. prt.CanCollide = false
  103. prt.BrickColor = BrickColor.new("Really black")
  104. prt.TopSurface = "Smooth"
  105. prt.Transparency = 0
  106. prt.BottomSurface = "Smooth"
  107. prtMm = Instance.new("SpecialMesh", prt)
  108. prtMm.MeshType = "Sphere"
  109. prtMm.Scale = Vector3.new(0.15,0.15,0.15)
  110. prt:BreakJoints()
  111. prtWw = Instance.new("Weld", prt)
  112. prtWw.Part0 = prt1
  113. prtWw.Part1 = prt
  114. prtWw.C1 = CFrame.new(0,i/8,0.07)*CFrame.Angles(math.rad(0),math.rad(-(i*50)),math.rad(0))
  115. end
  116. prt2 = Instance.new("Part", Char)
  117. prt2.Size = Vector3.new(1,1,1)
  118. prt2.CanCollide = false
  119. prt2.BrickColor = BrickColor.new("Really red")
  120. prt2.TopSurface = "Smooth"
  121. prt2.Transparency = 0.5
  122. prt2.BottomSurface = "Smooth"
  123. prt2M = Instance.new("SpecialMesh", prt2)
  124. prt2M.MeshId = "http://www.roblox.com/asset/?id=9756362"
  125. prt2M.Scale = Vector3.new(0.5,1,0.5)
  126. prt2:BreakJoints()
  127. prt2W = Instance.new("Weld", prt2)
  128. prt2W.Part0 = prt1
  129. prt2W.Part1 = prt2
  130. prt2W.C1 = CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  131. prt3 = Instance.new("Part", Char)
  132. prt3.Size = Vector3.new(1,1,1)
  133. prt3.CanCollide = false
  134. prt3.BrickColor = BrickColor.new("Institutional white")
  135. prt3.TopSurface = "Smooth"
  136. prt3.Transparency = 0.8
  137. prt3.BottomSurface = "Smooth"
  138. prt3M = Instance.new("SpecialMesh", prt3)
  139. prt3M.MeshId = "http://www.roblox.com/asset/?id=9982590"
  140. prt3M.Scale = Vector3.new(0.75,0.6,0.75)
  141. prt3:BreakJoints()
  142. prt3W = Instance.new("Weld", prt3)
  143. prt3W.Part0 = prt2
  144. prt3W.Part1 = prt3
  145. prt3W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  146. prt4 = Instance.new("Part", Char)
  147. prt4.formFactor = "Custom"
  148. prt4.Size = Vector3.new(1,1,1)
  149. prt4.CanCollide = false
  150. prt4.BrickColor = BrickColor.new("Really black")
  151. prt4.TopSurface = "Smooth"
  152. prt4.Transparency = 0
  153. prt4.BottomSurface = "Smooth"
  154. prt4M = Instance.new("SpecialMesh", prt4)
  155. prt4M.MeshType = "Sphere"
  156. prt4M.Scale = Vector3.new(0.5,0.5,0.5)
  157. prt4:BreakJoints()
  158. prt4W = Instance.new("Weld", prt4)
  159. prt4W.Part0 = prt1
  160. prt4W.Part1 = prt4
  161. prt4W.C1 = CFrame.new(0,2.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  162. prt5 = Instance.new("Part", Char)
  163. prt5.Size = Vector3.new(1,1,1)
  164. prt5.CanCollide = false
  165. prt5.BrickColor = BrickColor.new("Really black")
  166. prt5.TopSurface = "Smooth"
  167. prt5.Transparency = 0.5
  168. prt5.BottomSurface = "Smooth"
  169. prt5M = Instance.new("SpecialMesh", prt5)
  170. prt5M.MeshType = "FileMesh"
  171. prt5M.MeshId = "http://www.roblox.com/asset/?id=20329976"
  172. prt5M.Scale = Vector3.new(0.2,0.5,0.2)
  173. prt5:BreakJoints()
  174. prt5W = Instance.new("Weld", prt5)
  175. prt5W.Part0 = prt1
  176. prt5W.Part1 = prt5
  177. prt5W.C1 = CFrame.new(0,-2.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  178. prt6 = Instance.new("Part", Char)
  179. prt6.formFactor = "Custom"
  180. prt6.Size = Vector3.new(1,1,1)
  181. prt6.CanCollide = false
  182. prt6.BrickColor = BrickColor.new("Institutional white")
  183. prt6.TopSurface = "Smooth"
  184. prt6.Transparency = 1
  185. prt6.BottomSurface = "Smooth"
  186. prt6M = Instance.new("BlockMesh", prt6)
  187. prt6M.Scale = Vector3.new(1,1,1)
  188. prt6:BreakJoints()
  189. prt6W = Instance.new("Weld", prt6)
  190. prt6W.Part0 = prt2
  191. prt6W.Part1 = prt6
  192. prt6W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  193. prt7 = Instance.new("Part", Char)
  194. prt7.formFactor = "Custom"
  195. prt7.Size = Vector3.new(1,1,1)
  196. prt7.CanCollide = false
  197. prt7.BrickColor = BrickColor.new("Institutional white")
  198. prt7.TopSurface = "Smooth"
  199. prt7.Transparency = 1
  200. prt7.BottomSurface = "Smooth"
  201. prt7M = Instance.new("BlockMesh", prt7)
  202. prt7M.Scale = Vector3.new(1,1,1)
  203. prt7:BreakJoints()
  204. prt7W = Instance.new("Weld", prt7)
  205. prt7W.Part0 = prt2
  206. prt7W.Part1 = prt7
  207. prt7W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  208. prt8 = Instance.new("Part", Char)
  209. prt8.formFactor = "Custom"
  210. prt8.Size = Vector3.new(1,1,1)
  211. prt8.CanCollide = false
  212. prt8.BrickColor = BrickColor.new("Institutional white")
  213. prt8.TopSurface = "Smooth"
  214. prt8.Transparency = 1
  215. prt8.BottomSurface = "Smooth"
  216. prt8M = Instance.new("BlockMesh", prt8)
  217. prt8M.Scale = Vector3.new(1,1,1)
  218. prt8:BreakJoints()
  219. prt8W = Instance.new("Weld", prt8)
  220. prt8W.Part0 = prt2
  221. prt8W.Part1 = prt8
  222. prt8W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  223. prt9 = Instance.new("Part", Char)
  224. prt9.formFactor = "Custom"
  225. prt9.Size = Vector3.new(1,1,1)
  226. prt9.CanCollide = false
  227. prt9.BrickColor = BrickColor.new("Institutional white")
  228. prt9.TopSurface = "Smooth"
  229. prt9.Transparency = 1
  230. prt9.BottomSurface = "Smooth"
  231. prt9M = Instance.new("SpecialMesh", prt9)
  232. prt9M.MeshId = "http://www.roblox.com/asset/?id=3270017"
  233. prt9M.Scale = Vector3.new(1,1,1)
  234. prt9:BreakJoints()
  235. prt9W = Instance.new("Weld", prt9)
  236. prt9W.Part0 = prt2
  237. prt9W.Part1 = prt9
  238. prt9W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,math.rad(0))
  239. delay(0, function()
  240. while true do
  241. for i = 1,360 do
  242. prt3W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(i),math.rad(0))
  243. wait(0.1)
  244. end
  245. end
  246. end)
  247. ------------------------------------------------------------------------------------------
  248. function Blast()
  249. for i = 1,60,15 do
  250. haw.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(45-i),math.rad(-45+i))
  251. wait(0.03)
  252. end
  253. Char["Torso"].Transparency = 1
  254. Torso.Transparency = 0
  255. cenw2.Part0 = Torso
  256. cenw.Part0 = Torso
  257. Char.Torso["Right Hip"].Part0 = Torso
  258. Char.Torso["Left Hip"].Part0 = Torso
  259. haw2.Part1 = Char["Left Arm"]
  260. for i = 1,120,30 do
  261. Torsow.C0 = CFrame.Angles(math.rad(0),math.rad(i),0)
  262. Hw.C0 = CFrame.Angles(math.rad(0),math.rad(-i),0)
  263. haw.C0 = CFrame.Angles(math.rad(i),0,math.rad(i))
  264. haw2.C0 = CFrame.Angles(math.rad(0),0,math.rad(-i/2))
  265. prtW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(i),0,math.rad(0))
  266. wait()
  267. end
  268. prt6.Transparency = 0.7
  269. prt7.Transparency = 0.7
  270. for i = 1,1050,50 do
  271. prt6W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(i),math.rad(i),math.rad(i))
  272. prt6M.Scale = Vector3.new(i/500,i/500,i/500)
  273. prt7W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-i/2),math.rad(-i/2),math.rad(-i/2))
  274. prt7M.Scale = Vector3.new(i/500,i/500,i/500)
  275. wait(0.03)
  276. end
  277. prt6.Transparency = 1
  278. prt7.Transparency = 1
  279. shot = Instance.new("Part", workspace)
  280. shot.Size = Vector3.new(1,1,1)
  281. shot.CanCollide = false
  282. shot.BrickColor = BrickColor.new("Institutional white")
  283. shot.TopSurface = "Smooth"
  284. shot.Transparency = 0
  285. shot.BottomSurface = "Smooth"
  286. shotM = Instance.new("SpecialMesh", shot)
  287. shotM.MeshId = "http://www.roblox.com/asset/?id=4770583"
  288. shotM.Scale = Vector3.new(1,1,1)
  289. shot:BreakJoints()
  290. shot.CFrame = prt2.CFrame
  291. local shotv = Instance.new("BodyVelocity", shot)
  292. shotv.velocity = prt1f.CFrame.lookVector*200
  293. prt9.Transparency = 0
  294. prt9W.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),0,math.rad(0))
  295. loadstring([[Char = workspace.ace28545
  296. function sound(id, pt)
  297. local sd = Instance.new("Sound", Char.Head)
  298. sd.SoundId = "http://www.roblox.com/asset/?id="..tostring(id)
  299. sd.Pitch = pt
  300. sd.Volume = 1
  301. delay(0, function()
  302. sd:Play()
  303. wait(2)
  304. sd:Remove()
  305. end)
  306. end
  307. sound(2767090, 1)]])()
  308. for i = 1,1050,50 do
  309. delay(0,function()
  310. for i,v in pairs(workspace:children()) do
  311. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Head") then
  312. if (v.Head.Position - shot.Position).magnitude < 5 then
  313. v:BreakJoints()
  314. end
  315. end
  316. end
  317. end)
  318. prt9M.Scale = Vector3.new(i/100,i/100,i/100)
  319. prt9.Transparency = i/1000
  320. prt9W.C1 = CFrame.new(0,0,i/500)*CFrame.Angles(math.rad(90),0,math.rad(0))
  321. local shot2 = Instance.new("Part", workspace)
  322. shot2.Size = Vector3.new(1,1,1)
  323. shot2.CanCollide = true
  324. shot2.BrickColor = BrickColor.new("Institutional white")
  325. shot2.TopSurface = "Smooth"
  326. shot2.Transparency = 0
  327. shot2.Anchored = true
  328. shot2.BottomSurface = "Smooth"
  329. local shot2M = Instance.new("SpecialMesh", shot2)
  330. shot2M.MeshId = "http://www.roblox.com/asset/?id=4770583"
  331. shot2M.Scale = Vector3.new(1,1,1)
  332. shot2:BreakJoints()
  333. shot2.CFrame = shot.CFrame
  334. delay(0,function()
  335. for i = 1,10 do
  336. shot2.Transparency = shot2.Transparency+0.1
  337. shot2.CFrame = shot2.CFrame+Vector3.new(math.random(-10,10)/10,0,math.random(-10,10)/10)
  338. shot2M.Scale = shot2M.Scale + Vector3.new(0.1,0.1,0.1)
  339. wait(0.03)
  340. end
  341. shot2:Remove()
  342. end)
  343. wait(0.03)
  344. end
  345. shot:remove()
  346. for i = 1,100,10 do
  347. Torsow.C0 = CFrame.Angles(math.rad(0),math.rad(90-i),0)
  348. Hw.C0 = CFrame.Angles(math.rad(0),math.rad(-90+i),0)
  349. haw.C0 = CFrame.Angles(math.rad(i),0,math.rad(90-i))
  350. haw2.C0 = CFrame.Angles(math.rad(0),0,math.rad(-45+i/2))
  351. prtW.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90-i),0,math.rad(0))
  352. wait()
  353. end
  354. haw2.Part1 = nil
  355. Char["Torso"].Transparency = 0
  356. Torso.Transparency = 1
  357. cenw2.Part0 = Char.Torso
  358. cenw.Part0 = Char.Torso
  359. Char.Torso["Right Hip"].Part0 = Char.Torso
  360. Char.Torso["Left Hip"].Part0 = Char.Torso
  361. Equip()
  362. end
  363. function Equip()
  364. haw.Part1 = Char["Right Arm"]
  365. for i = 1,60,15 do
  366. haw.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(i*2),math.rad(i),math.rad(-i))
  367. wait(0.03)
  368. end
  369. end
  370. function UnEquip()
  371. for i = 1,60,15 do
  372. haw.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad((45/2)-(i/2)),math.rad(45-i),math.rad(-45+i))
  373. wait(0.03)
  374. end
  375. haw.Part1 = nil
  376. end
  377. function Arcrain()
  378. end
  379. --------------------------------------------
  380. local _ = false
  381. if not script.Parent:IsA("HopperBin") then
  382. h = Instance.new("HopperBin", User.Backpack)
  383. h.Name = "Staff"
  384. script.Parent = h
  385. end
  386. script.Parent.Selected:connect(function(mouse)
  387. Equip()
  388. mouse.Button1Down:connect(function()
  389. if _ == false then
  390. _ = true
  391. Blast()
  392. _ = false
  393. end
  394. end)
  395. mouse.KeyDown:connect(function(key)
  396. if key == "q" and _ == false then
  397. _ = false
  398. CircleBlast()
  399. _ = false
  400. end
  401. end)
  402. end)
  403. script.Parent.Deselected:connect(function()
  404. UnEquip()
  405. end)
  406. --mediafire gtfo password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement