welel33t

teapot staff

Oct 5th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.17 KB | None | 0 0
  1. lp=game.Players.LocalPlayer
  2. pl=lp.Character
  3. tol=Instance.new("HopperBin",lp.Backpack)
  4. tol.Name="J-B-C-V_Gauntlet"--jarredbcv
  5.  
  6.  
  7. Sword=false
  8. Staff=false
  9. Gun=false
  10.  
  11. bool=false
  12.  
  13. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="CharacterMesh" then v:remove() end end
  14. Part = function(x,y,z,color,tr,cc,an,parent)
  15. local p = Instance.new('Part',parent or Weapon)
  16. p.formFactor = 'Custom'
  17. p.Size = Vector3.new(x,y,z)
  18. p.BrickColor = BrickColor.new(color)
  19. p.CanCollide = cc
  20. p.Transparency = tr
  21. p.Anchored = an
  22. p.TopSurface,p.BottomSurface = 0,0
  23. return p
  24. end
  25. fir = function(n1,n2,n3,n4,n5,n6,hs,fs,parent)
  26. local fi = Instance.new('Fire',parent or Weapon)
  27. fi.Color=Color3.new(n1,n2,n3)
  28. fi.Heat=hs
  29. fi.SecondaryColor=Color3.new(n4,n5,n6)
  30. fi.Size=fs
  31. return fi
  32. end
  33. s = Instance.new("Sound")
  34. s.SoundId = "http://www.roblox.com/asset?id=131632972"s.Volume = 1
  35. s.Pitch = 1 s.Looped = false s.PlayOnRemove = false s.archivable = false
  36. s.Parent = pl.Torso
  37. s2 = Instance.new("Sound")
  38. s2.SoundId = "http://roblox.com/asset/?id=131072992"s2.Volume = 1
  39. s2.Pitch = 1 s2.Looped = false s2.PlayOnRemove = false s2.archivable = false
  40. s2.Parent = pl.Torso
  41. s3 = Instance.new("Sound")
  42. s3.SoundId = "http://www.roblox.com/asset/?id=30624262"s3.Volume = 1
  43. s3.Pitch = .225 s3.Looped = false s3.PlayOnRemove = false s3.archivable = false
  44. s3.Parent = pl.Torso
  45. s4 = Instance.new("Sound")
  46. s4.SoundId = "http://www.roblox.com/asset/?id=146025564"s4.Volume = 1
  47. s4.Pitch = 1 s4.Looped = false s4.PlayOnRemove = false s4.archivable = false
  48. s4.Parent = pl.Torso
  49. s5 = Instance.new("Sound")
  50. s5.SoundId = "http://www.roblox.com/asset/?id=99666816"s5.Volume = 1
  51. s5.Pitch = 1 s5.Looped = false s5.PlayOnRemove = false s5.archivable = false
  52. s5.Parent = pl.Torso
  53. s6 = Instance.new("Sound")
  54. s6.SoundId = "http://www.roblox.com/asset/?id=99666774"s6.Volume = 1
  55. s6.Pitch = 1 s6.Looped = false s6.PlayOnRemove = false s6.archivable = false
  56. s6.Parent = pl.Torso
  57. s7 = Instance.new("Sound")
  58. s7.SoundId = "http://www.roblox.com/asset/?id=99204415"s7.Volume = 1
  59. s7.Pitch = 1 s7.Looped = false s7.PlayOnRemove = false s7.archivable = false
  60. s7.Parent = pl.Torso
  61. s8 = Instance.new("Sound")
  62. s8.SoundId = "http://www.roblox.com/asset/?id=134966555"s7.Volume = 1
  63. s8.Pitch = 1 s7.Looped = false s7.PlayOnRemove = false s7.archivable = false
  64. s8.Parent = pl.Torso
  65. s9 = Instance.new("Sound")
  66. s9.SoundId = "http://www.roblox.com/asset/?id=134966529"s9.Volume = 1
  67. s9.Pitch = 1 s9.Looped = false s9.PlayOnRemove = false s9.archivable = false
  68. s9.Parent = pl.Torso
  69. s10 = Instance.new("Sound")
  70. s10.SoundId = "http://www.roblox.com/asset/?id=102544922"s10.Volume = 1
  71. s10.Pitch = 1 s10.Looped = false s10.PlayOnRemove = false s10.archivable = false
  72. s10.Parent = pl.Torso
  73. s11 = Instance.new("Sound")
  74. s11.SoundId = "http://www.roblox.com/asset/?id=10756118"s11.Volume = 1
  75. s11.Pitch = 1 s11.Looped = false s11.PlayOnRemove = false s11.archivable = false
  76. s11.Parent = pl.Torso
  77. s12 = Instance.new("Sound")
  78. s12.SoundId = "http://www.roblox.com/asset/?id=2974249"s12.Volume = 1
  79. s12.Pitch = 1 s12.Looped = false s12.PlayOnRemove = false s12.archivable = false
  80. s12.Parent = pl.Torso
  81. wPart = function(x,y,z,color,tr,cc,an,parent)
  82. local wp = Instance.new('WedgePart',parent or Weapon)
  83. wp.formFactor = 'Custom'
  84. wp.Size = Vector3.new(x,y,z)
  85. wp.BrickColor = BrickColor.new(color)
  86. wp.CanCollide = cc
  87. wp.Transparency = tr
  88. wp.Anchored = an
  89. wp.TopSurface,wp.BottomSurface = 0,0
  90. return wp
  91. end
  92. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  93. p0.Position = p1.Position
  94. local w = Instance.new('Motor',par or p0)
  95. w.Part0 = p0
  96. w.Part1 = p1
  97. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  98. return w
  99. end
  100. Mesh = function(par,num,x,y,z)
  101. local msh = _
  102. if num == 1 then msh = Instance.new("CylinderMesh",par)
  103. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  104. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  105. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  106. end
  107. msh.Scale = Vector3.new(x,y,z)
  108. return msh
  109. end
  110. dmg=0
  111. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  112. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  113. for i=1,Times do
  114. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = Transparency or 0.4 li.BrickColor = BrickColor.new(Color)
  115. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  116. function touch(hit)
  117. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~=pl then
  118. hit.Parent.Humanoid:TakeDamage(dmg)
  119. end end li.Touched:connect(touch)
  120. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  121. if Times == i then
  122. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  123. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  124. else
  125. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  126. end
  127. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  128. end
  129. end
  130.  
  131.  
  132. function onKeyDown(key)
  133. key = key:lower()
  134. if key == "e" then
  135. if Staff==true then return end
  136. if Gun==true then return end
  137. if bool==true then return end
  138. e = not e
  139. if e == true then
  140. bool=true
  141. s5:play()
  142. wait(.25)
  143. s7:play()
  144. main:remove()
  145. Sword=true
  146. dmg=15
  147. wep=Instance.new("Model",pl)
  148. wep1= Part(.1,.3,1.2,'',1,false,false,wep)
  149. wepwl1= Weld(wep1,pl['Right Arm'],0,-1,0,0,0,0,wep)
  150. wep2= Part(.3,.1,1.2,'Really black',1,false,false,wep)
  151. wepwl2= Weld(wep2,pl['Right Arm'],0,-1,0,0,0,0,wep)
  152. wep3= Part(.1,.1,.1,'Really black',1,false,false,wep)
  153. wepwl3= Weld(wep3,pl['Right Arm'],0,-1,1.1,0,math.pi/2,0,wep)
  154. wm= Mesh(wep3,'http://www.roblox.com/asset/?id=3270017',.9,.9,.9)
  155. wep4= Part(.1,.1,.1,'',1,false,false,wep)
  156. wepwl4= Weld(wep4,pl['Right Arm'],0,-1,1.1,0,math.pi/2,0,wep)
  157. wm2= Mesh(wep4,'http://www.roblox.com/Asset/?id=9982590',.1,.1,.01)
  158. wep5= Part(.1,.5,2,'',1,false,false,wep)
  159. wepwl5= Weld(wep5,pl['Right Arm'],0,-1,-1.57,0,0,0,wep)
  160. wep6= wPart(.1,.5,.1,'',1,false,false,wep)
  161. wepwl6= Weld(wep6,pl['Right Arm'],0,-.855,-.4,math.pi/2,0,0,wep)
  162. wep7= wPart(.1,.5,.1,'',1,false,false,wep)
  163. wepwl7= Weld(wep7,pl['Right Arm'],0,-1.155,-.4,math.pi/2,math.pi/1,0,wep)
  164. wep8= Part(.3,1,.1,'Really black',1,false,false,wep)
  165. wepwl8= Weld(wep8,pl['Right Arm'],0,-1,-.7,0,0,0,wep)
  166. wep9= Part(.3,.3,2,'Really black',1,false,false,wep)
  167. wepwl9= Weld(wep9,pl['Right Arm'],0,-1,-1.57,0,0,0,wep)
  168. wep10= wPart(.1,.25,.3,'',1,false,false,wep)
  169. wepwl10= Weld(wep10,pl['Right Arm'],0,-.86,-2.72,0,0,0,wep)
  170. wep11= wPart(.1,.25,.3,'',1,false,false,wep)
  171. wepwl11= Weld(wep11,pl['Right Arm'],0,-1.1,-2.72,0,0,math.pi/1,wep)
  172. function touch(hit)
  173. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~=pl then
  174. hit.Parent.Humanoid:TakeDamage(dmg)
  175. end end wep5.Touched:connect(touch)
  176. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle/.3), math.rad(0), math.rad(0))wait()end
  177. for i=1,10 do wait() for _,v in pairs(wep:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency-.1 end end end
  178. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  179. bool=false
  180. else
  181. s6:play() bool=true Sword=false main:remove()
  182. fakel.C0 = CFrame.new(1.5, 0.5, 0)
  183. for i=1,10 do wait()for _,v in pairs(wep:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency+.1 end end end
  184. wep:remove()
  185. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  186. main= Part(1,1,1,'Institutional white',.5,false,false,moe)
  187. mainm= Mesh(main,'http://www.roblox.com/asset/?id=1033714',.5,1.5,.5)
  188. main:BreakJoints()
  189. mainw= Weld(main,pl['Right Arm'],0,0,-1,math.pi/2,0,0,moe)
  190. bool=false
  191. end
  192. end
  193.  
  194.  
  195. if key == "x" then
  196. if Staff==true then return end
  197. if Sword==true then return end
  198. if bool==true then return end
  199. x = not x
  200. if x == true then
  201. bool=true
  202. s5:play()
  203. wait(.25)
  204. s7:play()
  205. main:remove()
  206. dmg=100
  207. Gun=true shotval=0
  208. wep=Instance.new("Model",pl)
  209. pa1= Part(.3,.3,1,'Really black',1,false,false,wep)
  210. wl1= Weld(pa1,pl['Right Arm'],0,-1,0,0,0,0,wep)
  211. pa1= Part(.3,.3,.4,'Really black',1,false,false,wep)
  212. wl1= Weld(pa1,pl['Right Arm'],0,-1.2,-.5,-math.pi/5,0,0,wep)
  213. pa1= Part(.3,2,.3,'Really black',1,false,false,wep)
  214. wl1= Weld(pa1,pl['Right Arm'],0,-1.75,-.6,0,0,0,wep)
  215. pa1= Part(.4,2,.4,'Dark stone grey',1,false,false,wep)--pa1.Material="Slate"
  216. wl1= Weld(pa1,pl['Right Arm'],0.2,-2.25,-.6,0,0,0,wep)
  217. m1= Mesh(pa1,1,1,1,1)
  218. pa1= Part(.4,2,.4,'Dark stone grey',1,false,false,wep)--pa1.Material="Slate"
  219. wl1= Weld(pa1,pl['Right Arm'],-0.2,-2.25,-.6,0,0,0,wep)
  220. m1= Mesh(pa1,1,1,1,1)
  221. shot2= Part(.3,2,.3,'Really black',1,false,false,wep)
  222. wl1= Weld(shot2,pl['Right Arm'],0.2,-2.26,-.6,0,0,0,wep)
  223. m1= Mesh(shot2,1,1,1,1)
  224. shot1= Part(.3,2,.3,'Really black',1,false,false,wep)
  225. wl1= Weld(shot1,pl['Right Arm'],-0.2,-2.26,-.6,0,0,0,wep)
  226. m1= Mesh(shot1,1,1,1,1)
  227. pa1= Part(.2,.5,.2,'Really black',1,false,false,wep)
  228. wl1= Weld(pa1,pl['Right Arm'],-0.2,-1.25,-.6,0,0,-math.pi/5,wep)
  229. pa1= Part(.2,.5,.2,'Really black',1,false,false,wep)
  230. wl1= Weld(pa1,pl['Right Arm'],0.2,-1.25,-.6,0,0,math.pi/5,wep)
  231. pa1= Part(.3,.5,.3,'Really black',1,false,false,wep)
  232. wl1= Weld(pa1,pl['Right Arm'],0.2,-1.2,-.7,-math.pi/5,0,0,wep)
  233. m1= Mesh(pa1,1,1,1,1)
  234. pa1= Part(.3,.5,.3,'Really black',1,false,false,wep)
  235. wl1= Weld(pa1,pl['Right Arm'],-0.2,-1.2,-.7,-math.pi/5,0,0,wep)
  236. m1= Mesh(pa1,1,1,1,1)
  237. lod2= Part(.2,.5,.2,'Really red',1,false,false,wep)
  238. wl1= Weld(lod2,pl['Right Arm'],0.2,-1.15,-.75,-math.pi/5,0,0,wep)
  239. m1= Mesh(lod2,1,1,1,1)
  240. lod= Part(.2,.5,.2,'Really red',1,false,false,wep)
  241. wl1= Weld(lod,pl['Right Arm'],-0.2,-1.15,-.75,-math.pi/5,0,0,wep)
  242. m1= Mesh(lod,1,1,1,1)
  243. pa1= Part(.4,.5,.5,'',1,false,false,wep)
  244. wl1= Weld(pa1,pl['Right Arm'],0,-2.75,-.3,0,0,0,wep)
  245. pa1= Part(.3,.5,.3,'Really black',1,false,false,wep)
  246. wl1= Weld(pa1,pl['Right Arm'],0,-2.8,0,0,0,0,wep)
  247. m1= Mesh(pa1,1,1,1,1)
  248. pa1= Part(.1,.1,.1,'Really red',1.75,false,false,wep)
  249. wl1= Weld(pa1,pl['Right Arm'],0,-5.55,0,0,0,0,wep)
  250. m1= Mesh(pa1,1,.3,30,.3)
  251. bb= Part(.1,.1,.1,'Bright red',1,false,false,wep)
  252. wl1= Weld(bb,pl['Right Arm'],0,-2,0,-math.pi/3,0,0,wep)
  253. m1= Mesh(bb,2,2.5,2.5,2.5)
  254. pa1= Part(.5,1,.5,'Bright red',1,false,false,wep)
  255. wl1= Weld(pa1,bb,0,-.5,0,0,0,0,wep)
  256. m1= Mesh(pa1,1,1,1,1)
  257. pa1= Part(.3,.65,.3,'',1,false,false,wep)
  258. wl1= Weld(pa1,bb,0,.25,0,0,0,0,wep)
  259. m1= Mesh(pa1,1,1,1,1)
  260. pa1= Part(.3,.5,.3,'Dark stone grey',1,false,false,wep)
  261. wl1= Weld(pa1,bb,0.1,-.74,0,0,0,0,wep)
  262. pa1= Part(.1,.1,.1,'Really black',1,false,false,wep)
  263. wl1= Weld(pa1,bb,0.25,-.74,0,0,0,0,wep)
  264. m1= Mesh(pa1,3,.1,2,.1)
  265. pa1= Part(.1,.1,.1,'Really black',1,false,false,wep)
  266. wl1= Weld(pa1,bb,0.25,-.74,.05,0,0,0,wep)
  267. m1= Mesh(pa1,3,.1,2,.1)
  268. pa1= Part(.1,.1,.1,'Really black',1,false,false,wep)
  269. wl1= Weld(pa1,bb,0.25,-.74,-.05,0,0,0,wep)
  270. m1= Mesh(pa1,3,.1,2,.1)
  271. pa1= Part(.1,.1,.1,'Really black',1,false,false,wep)
  272. wl1= Weld(pa1,bb,0.25,-.74,.1,0,0,0,wep)
  273. m1= Mesh(pa1,3,.1,2,.1)
  274. pa1= Part(.1,.1,.1,'Really black',1,false,false,wep)
  275. wl1= Weld(pa1,bb,0.25,-.74,-.1,0,0,0,wep)
  276. m1= Mesh(pa1,3,.1,2,.1)
  277. pa1= Part(.2,.6,.2,'Really black',1,false,false,wep)
  278. wl1= Weld(pa1,pl['Right Arm'],0,-2.5,0,0,0,0,wep)
  279. pa1= Part(.3,.3,1,'Really black',1,false,false,wep)
  280. wl1= Weld(pa1,pl['Right Arm'],0,-1.2,0,math.pi/8,0,0,wep)
  281. m1= Mesh(pa1,3,1,.1,1)
  282. swep= Part(.1,.1,.1,'Dark stone grey',1,false,false,wep)
  283. wl1= Weld(swep,bb,0.1,-.74,0,0,0,-math.pi/2,wep)
  284. swepke=Instance.new("Smoke",swep)
  285. swepke.Color=Color3.new(.85,0,2.55)
  286. swepke.RiseVelocity=100
  287. swepke.Enabled=false
  288. coroutine.wrap(function()for angle = 0, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle),math.rad(angle/8),0)wait()end end)()
  289. coroutine.wrap(function()for angle = 0, 30, 5 do fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-angle),math.rad(-angle/5),math.rad(-angle/5))wait()end end)()
  290. for i=1,10 do wait() for _,v in pairs(wep:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency-.1 end end end
  291. bool=false
  292. else s6:play() bool=true Gun=false
  293. for i=1,10 do wait()for _,v in pairs(wep:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency+.1 end end end
  294. wep:remove()
  295. fakel2.C0 = CFrame.new(-1.5, 0.5, 0)
  296. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  297. main= Part(1,1,1,'Institutional white',.5,false,false,moe)
  298. mainm= Mesh(main,'http://www.roblox.com/asset/?id=1033714',.5,1.5,.5)
  299. main:BreakJoints()
  300. mainw= Weld(main,pl['Right Arm'],0,0,-1,math.pi/2,0,0,moe)
  301. bool=false
  302. end
  303. end
  304.  
  305. if key == "q" then
  306. if Gun==true then return end
  307. if Sword==true then return end
  308. if bool==true then return end
  309. q = not q
  310. if q == true then
  311. bool=true
  312. s5:play()
  313. wait(.25)
  314. s7:play()
  315. power=0
  316. dmg=10
  317. Staff=true
  318. main:remove()
  319. wep=Instance.new("Model",pl)
  320. wep1= Part(.5,.5,3,'Really black',1,false,false,wep)
  321. wepwl1= Weld(wep1,pl['Right Arm'],0,-1,0,0,0,0,wep)
  322. wep2= Part(.3,.6,3,'Institutional white',1,false,false,wep)
  323. wepwl2= Weld(wep2,pl['Right Arm'],0,-1,0,0,0,0,wep)
  324. wep3= Part(.6,.3,3,'Institutional white',1,false,false,wep)
  325. wepwl3= Weld(wep3,pl['Right Arm'],0,-1,0,0,0,0,wep)
  326. wep4= Part(.75,.75,.75,'Really black',1,false,false,wep)
  327. wepwl4= Weld(wep4,pl['Right Arm'],0,-1,1.5,-10,-10,0,wep)
  328. wep5= Part(.75,.75,.75,'Institutional white',1,false,false,wep)
  329. wepwl5= Weld(wep5,pl['Right Arm'],0,-1,1.5,0,-10,-10,wep)
  330. wep6= Part(.75,.75,.75,'Institutional white',1,false,false,wep)
  331. wepwl6= Weld(wep6,pl['Right Arm'],0,-1,-1.5,0,0,0,wep)
  332. mes= Mesh(wep6,'http://www.roblox.com/Asset/?id=9982590',.5,.5,.5)
  333. wep7= Part(.75,.75,.75,'Really black',1,false,false,wep)
  334. wepwl7= Weld(wep7,pl['Right Arm'],0,-1,-1.5,0,0,0,wep)
  335. mes= Mesh(wep7,'http://www.roblox.com/Asset/?id=9982590',.4,.4,.4)
  336. wep8= Part(.75,.75,.75,'Really black',1,false,false,wep)
  337. wepwl8= Weld(wep8,pl['Right Arm'],0,-1,-2.5,0,0,0,wep)
  338. mes= Mesh(wep8,'http://www.roblox.com/Asset/?id=9756362',1,1,1.5)
  339. for angle = 0, 45, 5 do
  340. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle/.3), math.rad(0), math.rad(0))wait()end
  341. for i=1,10 do wait()for _,v in pairs(wep:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency-.1 end end end
  342. wep6.Transparency=.5
  343. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle/.5), math.rad(0), math.rad(0))wait()end
  344. gui=Instance.new("ScreenGui",lp.PlayerGui)
  345. gui.Name="afr"
  346. gut=Instance.new("TextLabel",gui)
  347. gut.Name="r"
  348. gut.Text="Energy: "..power.."/100"
  349. gut.Position = UDim2.new(0.5, 0, 0.1, 0)
  350. gut.FontSize="Size14"
  351. gut.TextColor3=Color3.new(1,0,0)
  352. gut.TextStrokeTransparency=0
  353. gut.TextTransparency=0
  354. bool=false
  355. else
  356. s6:play()
  357. bool=true
  358. main:remove()gut:remove()
  359. Staff=false
  360. fakel.C0 = CFrame.new(1.5, 0.5, 0)
  361. for i=1,10 do wait()for _,v in pairs(wep:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency+.1 end end end
  362. wep:remove()
  363. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))wait()end
  364. main= Part(1,1,1,'Institutional white',.5,false,false,moe)
  365. mainm= Mesh(main,'http://www.roblox.com/asset/?id=1033714',.5,1.5,.5)
  366. main:BreakJoints()
  367. mainw= Weld(main,pl['Right Arm'],0,0,-1,math.pi/2,0,0,moe)
  368. bool=false
  369. end
  370. end
  371.  
  372. if key == "r" then
  373. if Gun==true then
  374. if shotval>=2 then
  375. shotval=-10900
  376. lod.BrickColor=BrickColor.new("Really red")s2:play()
  377. wait(.75)
  378. lod2.BrickColor=BrickColor.new("Really red")s2:play()
  379. wait(1)
  380. swepke.Enabled=true
  381. s3:play()
  382. wait(1.5)
  383. swepke.Enabled=false
  384. shotval=0
  385. end end end
  386. if key == "z" then
  387. mouse=lp:GetMouse()
  388. if Staff==true then
  389. if power>=10 then
  390. coroutine.wrap(function()
  391. for i=1,10 do wait()
  392. power=power-1
  393. gut.Text="Energy: "..power.."/100"
  394. end end)()
  395. s11:play()
  396. for i=1,5 do
  397. Lightning(wep8.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"White",0.05,0.35)end
  398. end
  399. end
  400. end
  401. if key == "f" then
  402. if Staff==true then
  403. if power>=25 then
  404. coroutine.wrap(function()
  405. for i=1,25 do wait()
  406. power=power-1
  407. gut.Text="Energy: "..power.."/100"
  408. end end)()
  409. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(0), math.rad(angle/2)) wait()end
  410. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(0), 1)wait()end
  411. for i=1,20 do wait()s10:play()
  412. partz= Part(15,15,15,'Really black',0,true,true,workspace)
  413. partz.CFrame= CFrame.new(pl.Torso.Position+Vector3.new(0,0,10)) * CFrame.Angles(math.random()-.5,math.random()-.5,math.random()-.5) + Vector3.new(0,-8,0) + pl.Torso.CFrame.lookVector*(i+5)*3.5
  414. function touch(hit)
  415. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~=pl then
  416. hit.Parent.Humanoid:TakeDamage(dmg)
  417. end end partz.Touched:connect(touch)
  418. game.Debris:AddItem(partz,1)
  419. end
  420. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle/.5), math.rad(0), math.rad(0))wait()end
  421. end
  422. end
  423. end
  424. end
  425.  
  426. workspace.Base.TopSurface=0
  427. mo=Instance.new("Model",pl)
  428. bas = Part(1,1,1,'',1,false,false,mo)
  429. pa1= Part(1.1,.1,1.1,'',0,false,false,mo)
  430. pa1:BreakJoints()
  431. wl1= Weld(pa1,pl['Right Arm'],0,-.5,0,0,0,0,mo)
  432. pa2= Part(.1,1.1,1.1,'',0,false,false,mo)
  433. wl2= Weld(pa2,pl['Right Arm'],0,-.5,0,0,0,0,mo)
  434. pa3= Part(1.1,.1,1.1,'',0,false,false,mo)
  435. wl3= Weld(pa3,pl['Right Arm'],0,0,0,0,0,0,mo)
  436. pa4= Part(.4,.4,.1,'Really black',0,false,false,mo)
  437. wl4= Weld(pa4,pl['Right Arm'],0,0,-.5,0,0,0,mo)
  438. pa5= Part(.3,.1,.3,'Really red',0,false,false,mo)
  439. me= Mesh(pa5,1,1,1,1)
  440. wl5= Weld(pa5,pl['Right Arm'],0,0,-.55,math.pi/2,0,0,mo)
  441. pa6= Part(.7,1,.1,'Really black',0,false,false,mo)
  442. wl6= Weld(pa6,pl['Right Arm'],0,0,.5,0,0,0,mo)
  443. pa7= Part(.1,.3,.1,'Really red',0,false,false,mo)
  444. me2= Mesh(pa7,1,1,1,1)
  445. wl7= Weld(pa7,pl['Right Arm'],-.2, .3, .55,0,0,0,mo)
  446. pa8= Part(.1,.3,.1,'Bright blue',0,false,false,mo)
  447. me3= Mesh(pa8,1,1,1,1)
  448. wl8= Weld(pa8,pl['Right Arm'],0, .3, .55,0,0,0,mo)
  449. pa9= Part(.1,.3,.1,'Lime green',0,false,false,mo)
  450. me4= Mesh(pa9,1,1,1,1)
  451. wl9= Weld(pa9,pl['Right Arm'],.2, .3, .55,0,0,0,mo)
  452. pa10= Part(.1,.3,.1,'',0,false,false,mo)
  453. me5= Mesh(pa10,'http://www.roblox.com/asset/?id=19251107',.2,.2,.2)
  454. wl10= Weld(pa10,pl['Right Arm'],0, 0, .6,math.pi/2,0,0,mo)
  455. workspace.Base.TopSurface="Studs"
  456.  
  457.  
  458.  
  459. tol.Selected:connect(function(mouse)
  460. mouse.Button1Down:connect(function() onClicked(mouse) end)
  461. mouse.KeyDown:connect(onKeyDown)
  462. mouse.Button1Up:connect(function() declick(mouse) end)
  463. print("Success no errors")
  464.  
  465. moe=Instance.new("Model",mo)
  466. bas:BreakJoints()
  467. bas = Part(1,1,1,'',1,false,false,moe)
  468. fakel = Instance.new("Weld",moe)
  469. fakel.Part0 = pl.Torso
  470. fakel.Part1 = bas
  471. coroutine.wrap(function()
  472. for angle = 0, 45, 5 do
  473. if fakel == nil then return end
  474. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))
  475. wait()
  476. end
  477. end)()
  478. welditbro = Instance.new("Weld", moe)
  479. welditbro.C0 = CFrame.new(0, 0.5, 0)
  480. welditbro.Part0 = pl['Right Arm']
  481. welditbro.Part1 = bas
  482. bas2 = Part(1,1,1,'',1,false,false,moe)
  483. bas2:BreakJoints()
  484. fakel2 = Instance.new("Weld",moe)
  485. fakel2.Part0 = pl.Torso
  486. fakel2.Part1 = bas2
  487. fakel2.C0 = CFrame.new(-1.5, 0.5, 0)
  488. welditbro2 = Instance.new("Weld", moe)
  489. welditbro2.C0 = CFrame.new(0, 0.5, 0)
  490. welditbro2.Part0 = pl['Left Arm']
  491. welditbro2.Part1 = bas2
  492.  
  493.  
  494. main= Part(1,1,1,'Institutional white',.5,false,false,moe)
  495. main.Name="asd"
  496. mainm= Mesh(main,'http://www.roblox.com/asset/?id=1033714',.5,1.5,.5)
  497. main:BreakJoints()
  498. mainw= Weld(main,pl['Right Arm'],0,0,-1,math.pi/2,0,0,main)
  499.  
  500. if Sword==false and Gun==false and Staff==false then s8:play() end
  501. if Sword==true or Gun==true or Staff==true then main:remove() end
  502.  
  503. function onClicked(mouse)
  504. if Sword==true then s4:play()
  505. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)wait()end
  506. for angle = 0, 45, 5 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0)) wait() end
  507. end
  508.  
  509. if Gun==true then
  510. if shotval==2 then print("out") return end
  511. if shotval==0 then print("1")
  512. lod.BrickColor=BrickColor.new("")s:play()
  513. for i=1,5 do
  514. Lightning(shot1.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"Royal purple",0.05,0.35)end end
  515. if shotval==1 then print("2")
  516. lod2.BrickColor=BrickColor.new("")s:play()
  517. for i=1,5 do
  518. Lightning(shot2.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"Royal purple",0.05,0.35)end end
  519. shotval=shotval+1
  520. end
  521.  
  522. if Staff==true then
  523. loop=false
  524. for angle = 0, 45, 5 do
  525. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle/.3), math.rad(0), math.rad(0))
  526. wait()
  527. end
  528. coroutine.wrap(function()
  529. while wait() do
  530. if power == 100 then break end
  531. if loop == true then break end
  532. power=power +1
  533. gut.Text="Energy: "..power.."/100"
  534. s12:play()
  535. local vh=Instance.new("Part",pl)
  536. vh.BrickColor=BrickColor.new("Institutional white")
  537. vh.CanCollide=false
  538. vh.Anchored=true
  539. vh.CFrame=pl.Torso.CFrame*CFrame.new(0,-1,0)
  540. game.Debris:AddItem(vh,1)
  541. local me=Instance.new("SpecialMesh", vh)
  542. me.MeshId="http://www.roblox.com/asset/?id=92588061"
  543. me.Scale=Vector3.new(1,1,1)
  544. --me.Scale = me.Scale - Vector3.new(0, 0, 0) + Vector3.new(0, 0, 0.6)
  545. coroutine.wrap(function()
  546. for i = 0, 20 do
  547. vh.Transparency = vh.Transparency + 0.05
  548. me.Scale = me.Scale + Vector3.new(0.05, 0.05, 0.05)
  549. wait()
  550. end
  551. end)()
  552. end
  553. end)()
  554. end
  555.  
  556. end
  557. function declick(mouse)
  558. if Staff==true then
  559. loop=true
  560. for angle = 0, 45, 5 do
  561. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle/.5), math.rad(0), math.rad(0))
  562. wait()end end
  563.  
  564.  
  565. end
  566.  
  567. end)
  568. tol.Deselected:connect(function(mouse)
  569. if Sword==false and Gun==false and Staff==false then s9:play() end
  570. moe:remove()
  571. end)
  572.  
  573.  
  574. ---.2, .3, .55
  575.  
  576. --[[main:remove()
  577. loop==true]]
Add Comment
Please, Sign In to add comment