Advertisement
ethan15864

blitz

Mar 11th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player = game:GetService("Players").ethan15864
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it=Instance.new
  18. vt=Vector3.new
  19. cf=CFrame.new
  20. euler=CFrame.fromEulerAnglesXYZ
  21. angles=CFrame.Angles
  22. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. attack = false
  25. attacktype = 1
  26. damage = 5
  27. oridamage = 50
  28. attackdebounce = false
  29. MMouse=nil
  30. combo=0
  31. Loaded=false
  32. AmmoType="None"
  33. BulletTable={}
  34. --player
  35. player = nil
  36. --save shoulders
  37. RSH, LSH = nil, nil
  38. --welds
  39. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  40. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  41. if Character:findFirstChild("Blitz",true) ~= nil then
  42. Character:findFirstChild("Blitz",true).Parent = nil
  43. end
  44. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  45. local fp = it("Part")
  46. fp.formFactor = formfactor
  47. fp.Material = "SmoothPlastic"
  48. fp.Parent = parent
  49. fp.Reflectance = reflectance
  50. fp.Transparency = transparency
  51. fp.CanCollide = false
  52. fp.Locked=true
  53. fp.BrickColor = brickcolor
  54. fp.Name = name
  55. fp.Size = size
  56. fp.Position = Torso.Position
  57. fp.CFrame = Torso.CFrame
  58. fp.BottomSurface="SmoothNoOutlines"
  59. fp.TopSurface="SmoothNoOutlines"
  60. fp.RightSurface="SmoothNoOutlines"
  61. fp.LeftSurface="SmoothNoOutlines"
  62. fp:BreakJoints()
  63. return fp
  64. end
  65. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  66. local mesh = it(Mesh)
  67. mesh.Parent = part
  68. if Mesh=="SpecialMesh" then
  69. mesh.MeshType = meshtype
  70. mesh.MeshId = meshid
  71. end
  72. mesh.Offset=offset
  73. mesh.Scale=scale
  74. return mesh
  75. end
  76. function weld(parent,part0,part1,c0)
  77. local weld = it("Weld")
  78. weld.Parent = parent
  79. weld.Part0 = part0
  80. weld.Part1 = part1
  81. weld.C0 = c0
  82. return weld
  83. end
  84. local modelzorz = Instance.new("Model")
  85. modelzorz.Parent = Character
  86. modelzorz.Name = "Blitz"
  87. BaseColour=BrickColor.new("Navy blue")
  88. local prt1=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Part1",vt(0.5,0.5,0.5))
  89. local prt2=part(3,modelzorz,0,0,BaseColour,"Part2",vt(0.3,1,0.3))
  90. local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(0.5,1,0.5))
  91. local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(0.7,0.7,0.7))
  92. local prt5=part(3,modelzorz,0,0,BaseColour,"Part5",vt(0.3,0.7,0.3))
  93. local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(0.7,0.7,0.9))
  94. local prt7=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(0.5,0.3,0.2))
  95. local prt8=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(0.3,1,0.3))
  96. local prt9=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(0.8,1,0.8))
  97. local prt9b=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9b",vt(0.6,1.01,0.6))
  98. local prt10=part(3,modelzorz,0,0,BaseColour,"Part10",vt(0.6,0.6,1.5))
  99. local prt11=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part11",vt(0.61,0.61,0.2))
  100. local prt12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(0.62,0.62,0.45))
  101. local prt13=part(3,modelzorz,0,0,BaseColour,"Part13",vt(0.6,0.6,1.6))
  102. local prt14=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part14",vt(0.61,0.61,0.2))
  103. local prt15=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part15",vt(0.62,0.62,0.45))
  104. local prt16=part(3,modelzorz,0,0,BaseColour,"Part16",vt(0.6,0.2,0.6))
  105. local prt17=part(3,modelzorz,0,0,BaseColour,"Part17",vt(0.6,0.6,0.2))
  106. local prt18=part(3,modelzorz,0,1,BaseColour,"Part18",vt(0.5,0.5,0.5))
  107. local prt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(0.1,0.2,2))
  108. local prt20=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part20",vt(0.1,0.2,2))
  109. local prt22=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part22",vt(1,1,1))
  110. local prt22b=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part22b",vt(0.8,1.01,0.8))
  111. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  112. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1,1,1))
  113. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1,1,1))
  114. local msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(1,1,1))
  115. local msh5=mesh("CylinderMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
  116. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1,1,1))
  117. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(1,1,1))
  118. local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(1,1,1))
  119. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(1,1,1))
  120. local msh9b=mesh("CylinderMesh",prt9b,"","",vt(0,0,0),vt(1,1,1))
  121. local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(1,1,1))
  122. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(1,1,1))
  123. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(1,1,1))
  124. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
  125. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(1,1,1))
  126. local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(1,1,1))
  127. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(1,1,1))
  128. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(1,1,1))
  129. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(1,1,1))
  130. local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(1,1,1))
  131. local msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(1,1,1))
  132. local msh22=mesh("CylinderMesh",prt22,"","",vt(0,0,0),vt(1,1,1))
  133. local msh22b=mesh("CylinderMesh",prt22b,"","",vt(0,0,0),vt(1,1,1))
  134. local wld1=weld(prt1,prt1,Torso,euler(2.5,1.57,0)*cf(-0.5,-1,-0.7))
  135. local wld2=weld(prt2,prt2,prt1,euler(0.5,0,0)*cf(0,0,0))
  136. local wld3=weld(prt3,prt3,prt2,euler(0.8,0,0)*cf(0,0.6,-0.2))
  137. local wld4=weld(prt4,prt4,prt3,euler(0,0,0)*cf(0,0.5,0))
  138. local wld5=weld(prt5,prt5,prt4,euler(0,0,1.57)*cf(0,0,0))
  139. local wld6=weld(prt6,prt6,prt2,euler(-0.5,0,0)*cf(0,-0.7,0))
  140. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(0,0.5,0.35))
  141. local wld8=weld(prt8,prt8,prt6,euler(0,0,1.57)*cf(0,0,0.3))
  142. local wld9=weld(prt9,prt9,prt6,euler(1.57,0,0)*cf(0,-0.3,-0.4))
  143. local wld9b=weld(prt9b,prt9b,prt9,euler(0,0,0)*cf(0,0,0))
  144. local wld10=weld(prt10,prt10,prt6,euler(0,0,0)*cf(0,0,1))
  145. local wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,0,0.1))
  146. local wld12=weld(prt12,prt12,prt10,euler(0,0,0)*cf(0,0,0.55))
  147. local wld13=weld(prt13,prt13,prt6,euler(0,0,0)*cf(0,-0.65,0.8))
  148. local wld14=weld(prt14,prt14,prt13,euler(0,0,0)*cf(0,0,0.3))
  149. local wld15=weld(prt15,prt15,prt13,euler(0,0,0)*cf(0,0,0.75))
  150. local wld16=weld(prt16,prt16,prt13,euler(0,0,0)*cf(0,-0.2,-1))
  151. local wld17=weld(prt17,prt17,prt13,euler(0,0,0)*cf(0,0.2,-1.2))
  152. local wld18=weld(prt18,prt18,prt6,euler(0,0,0)*cf(0,0,0.8))
  153. local wld19=weld(prt19,prt19,prt18,euler(0,0,0)*cf(0.4,-0.3,0))
  154. local wld20=weld(prt20,prt20,prt18,euler(0,0,0)*cf(-0.4,-0.3,0))
  155. local wld22=weld(prt22,prt22,prt6,euler(1.57,0,0)*cf(0,-0.3,1.6))
  156. local wld22b=weld(prt22b,prt22b,prt22,euler(0,0,0)*cf(0,0,0))
  157. numb=-0.8
  158. for i=1,9 do
  159. local prt21=part(3,modelzorz,0,0,BaseColour,"Part21",vt(0.5,0.5,0.5))
  160. local msh21=mesh("SpecialMesh",prt21,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.8,0.8,0.8))
  161. local wld21=weld(prt21,prt21,prt18,euler(0,0,0)*cf(0,-0.3,numb))
  162. numb=numb+0.2
  163. end
  164. function MakeBullet(Color)
  165. model=Instance.new("Model")
  166. model.Parent=modelzorz
  167. model.Name="Bullet"
  168. local bulletbase=part(3,model,0,0,BrickColor.new("Really black"),"BulletBase",vt(0.5,0.5,0.5))
  169. bulletbase.CFrame=prt22.CFrame
  170. local bullet1=part(3,model,0,0,BrickColor.new(Color),"Bullet1",vt(0.51,0.1,0.51))
  171. local bullet2=part(3,model,0,0,BrickColor.new(Color),"Bullet2",vt(0.5,0.5,0.5))
  172. local bullet3=part(3,model,0,0,BrickColor.new(Color),"Bullet3",vt(0.5,0.5,0.5))
  173. local bullet4=part(3,model,0,0,BrickColor.new("Really black"),"Bullet4",vt(0.5,0.5,0.5))
  174. local bulmsh=mesh("CylinderMesh",bulletbase,"","",vt(0,0,0),vt(1.5,1,1.5))
  175. local bulmsh1=mesh("CylinderMesh",bullet1,"","",vt(0,0,0),vt(1.5,0.5,1.5))
  176. local bulmsh2=mesh("SpecialMesh",bullet2,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.55,0.2,0.55))
  177. local bulmsh3=mesh("CylinderMesh",bullet3,"","",vt(0,0,0),vt(1,0.5,1))
  178. local bulmsh4=mesh("CylinderMesh",bullet4,"","",vt(0,0,0),vt(1.5,0.2,1.5))
  179. local bulwld1=weld(bullet1,bullet1,bulletbase,euler(0,0,0)*cf(0,0.1,0))
  180. local bulwld2=weld(bullet2,bullet2,bulletbase,euler(3.14,0,0)*cf(0,0.4,0))
  181. local bulwld3=weld(bullet3,bullet3,bulletbase,euler(0,0,0)*cf(0,-0.3,0))
  182. local bulwld4=weld(bullet4,bullet4,bulletbase,euler(0,0,0)*cf(0,-0.35,0))
  183. bulletbase.CFrame=prt22.CFrame
  184. coroutine.resume(coroutine.create(function(Part)
  185. for i=0,1,0.1 do
  186. wait()
  187. end
  188. end),bulletbase)
  189. return bulletbase,model
  190. end
  191. --[[local bullet=MakeBullet("Bright red")
  192. local wldbul=weld(bullet,bullet,Torso,euler(0,0,0)*cf(0,-5,0))]]
  193. if (script.Parent.className ~= "HopperBin") then
  194. Tool = Instance.new("HopperBin")
  195. Tool.Parent = Backpack
  196. Tool.Name = "Blitz"
  197. script.Parent = Tool
  198. end
  199. Bin = script.Parent
  200. local bg = it("BodyGyro")
  201. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  202. bg.P = 20e+003
  203. bg.Parent = nil
  204. so = function(id,par,vol,pit)
  205. coroutine.resume(coroutine.create(function()
  206. local sou = Instance.new("Sound",par or workspace)
  207. sou.Volume=vol
  208. sou.Pitch=pit or 1
  209. sou.SoundId=id
  210. wait()
  211. sou:play()
  212. wait(6)
  213. sou:Remove()
  214. end))
  215. end
  216. function unequipweld()
  217. wld1.Part1=Torso
  218. wld1.C0=euler(2.5,1.57,0)*cf(-0.5,-1,-0.7)
  219. end
  220. function equipweld()
  221. wld1.Part1=RightArm
  222. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  223. end
  224. function hideanim()
  225. equipped=false
  226. wait(0.1)
  227. bg.Parent=nil
  228. unequipweld()
  229. end
  230. function equipanim()
  231. equipped=true
  232. wait(0.1)
  233. equipweld()
  234. RW.C0=cf(1.5, 0.5, 0) * euler(0.8,0,0)
  235. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  236. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  237. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  238. end
  239. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  240. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  241. prt.Anchored=true
  242. prt.CFrame=cframe
  243. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  244. coroutine.resume(coroutine.create(function()
  245. for i=0,1,0.2 do
  246. wait()
  247. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  248. prt.Transparency=i
  249. msh.Scale=msh.Scale+vt(x3,y3,z3)
  250. end
  251. prt.Parent=nil
  252. end))
  253. end
  254. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  255. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  256. prt.Anchored=true
  257. prt.CFrame=cframe
  258. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  259. coroutine.resume(coroutine.create(function(Part,Mesh)
  260. for i=0,1,0.1 do
  261. wait()
  262. Part.CFrame=Part.CFrame
  263. Part.Transparency=i
  264. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  265. end
  266. Part.Parent=nil
  267. end),prt,msh)
  268. end
  269. function MagicFreeze(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  270. local prt=part(3,workspace,0.4,0.3,brickcolor,"Effect",vt(0.5,0.5,0.5))
  271. prt.Anchored=true
  272. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  273. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(x1,y1,z1))
  274. coroutine.resume(coroutine.create(function(Part,Mesh)
  275. for i=0,1,0.1 do
  276. wait()
  277. Part.CFrame=Part.CFrame*cf(0,0.3,0)
  278. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  279. end
  280. wait(5)
  281. Part.Parent=nil
  282. end),prt,msh)
  283. end
  284. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  285. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  286. prt.Anchored=true
  287. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  288. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  289. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  290. CF=Part.CFrame
  291. Numbb=0
  292. randnumb=math.random()-math.random()
  293. for i=0,1,0.05 do
  294. wait()
  295. CF=CF*cf(0,1,0)
  296. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  297. Part.CFrame=CF*euler(Numbb,0,0)
  298. Part.Transparency=i
  299. Numbb=Numbb+randnumb
  300. end
  301. Part.Parent=nil
  302. end),prt,CF,Numbb,randnumb)
  303. end
  304. Damagefunc1=function(hit,Damage,Type)
  305. if hit.Parent==nil then
  306. return
  307. end
  308. CPlayer=Bin
  309. h=hit.Parent:FindFirstChild("Humanoid")
  310. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  311. if attackdebounce == false then
  312. attackdebounce = true
  313. coroutine.resume(coroutine.create(function()
  314. wait(0.2)
  315. attackdebounce = false
  316. end))
  317. Damage=Damage
  318. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  319. return
  320. end]]
  321. -- hs(hit,1.2)
  322. c=Instance.new("ObjectValue")
  323. c.Name="creator"
  324. c.Value=game.Players.LocalPlayer
  325. c.Parent=h
  326. game:GetService("Debris"):AddItem(c,100)
  327. Damage=Damage+math.random(0,100)
  328. -- h:TakeDamage(Damage)
  329. h.Health=h.Health-Damage
  330. showDamage(hit.Parent,Damage,100)
  331. if Type=="" then
  332. vp=Instance.new("BodyVelocity")
  333. vp.P=500
  334. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  335. -- vp.velocity=Character.Torso.CFrame.lookVector*10
  336. vp.velocity=Head.CFrame.lookVector*10+Head.Velocity/1.05
  337. if 10>0 then
  338. vp.Parent=hit.Parent.Torso
  339. end
  340. rl=Instance.new("BodyAngularVelocity")
  341. rl.P=3000
  342. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  343. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  344. -- rl.Parent=hit
  345. coroutine.resume(coroutine.create(function(vel)
  346. wait(1)
  347. vel:Remove()
  348. end),rl)
  349. game:GetService("Debris"):AddItem(vp,.25)
  350. game:GetService("Debris"):AddItem(rl,.5)
  351. elseif Type=="Explosion" then
  352. local bodyVelocity=Instance.new("BodyVelocity")
  353. bodyVelocity.velocity=vt(0,40,0)
  354. bodyVelocity.P=5000
  355. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  356. bodyVelocity.Parent=hit
  357. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  358. end
  359. c=Instance.new("ObjectValue")
  360. c.Name="creator"
  361. c.Value=Player
  362. c.Parent=h
  363. game:GetService("Debris"):AddItem(c,100)
  364. CRIT=false
  365. hitDeb=true
  366. AttackPos=6
  367. end
  368. end
  369. end
  370. freezeDamagefunc=function(hit,Damage,Knockback)
  371. if hit.Parent==nil then
  372. return
  373. end
  374. CPlayer=Bin
  375. h=hit.Parent:FindFirstChild("Humanoid")
  376. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  377. if attackdebounce == false then
  378. attackdebounce = true
  379. coroutine.resume(coroutine.create(function()
  380. wait(0.2)
  381. attackdebounce = false
  382. end))
  383. Damage=Damage
  384. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  385. return
  386. end]]
  387. -- hs(hit,1.2)
  388. c=Instance.new("ObjectValue")
  389. c.Name="creator"
  390. c.Value=game.Players.LocalPlayer
  391. c.Parent=h
  392. game:GetService("Debris"):AddItem(c,.5)
  393. Damage=Damage+math.random(0,100)
  394. -- h:TakeDamage(Damage)
  395. blocked=false
  396. block=hit.Parent:findFirstChild("Block")
  397. if block~=nil then
  398. print("herp")
  399. if block.Value>0 then
  400. blocked=true
  401. block.Value=block.Value-1
  402. print(block.Value)
  403. end
  404. end
  405. if blocked==false then
  406. -- h:TakeDamage(Damage)
  407. h.Health=h.Health-Damage
  408. showDamage(hit.Parent,Damage,100)
  409. else
  410. h:TakeDamage(1)
  411. showDamage(hit.Parent,1,.5)
  412. end
  413. if math.random(1,1)==1 then
  414. BodPos=Instance.new("BodyPosition")
  415. BodPos.P=50000
  416. BodPos.D=1000
  417. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  418. BodPos.position=hit.Parent.Torso.Position
  419. BodPos.Parent=hit.Parent.Torso
  420. BodGy = it("BodyGyro")
  421. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  422. BodGy.P = 20e+003
  423. BodGy.Parent=hit.Parent.Torso
  424. BodGy.cframe = hit.Parent.Torso.CFrame
  425. showDamage(hit.Parent,"Freeze!",3)
  426. so("http://www.roblox.com/asset/?id=41763367",hit,1,2)
  427. for i=1,10 do
  428. local freezepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
  429. freezepart.Anchored=true
  430. freezepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  431. coroutine.resume(coroutine.create(function(Part)
  432. wait(3)
  433. Part.Anchored=false
  434. Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
  435. wait(5)
  436. Part.Parent=nil
  437. end),freezepart)
  438. end
  439. coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted)
  440. wait(3)
  441. BodyPos.Parent=nil
  442. BodyGy.Parent=nil
  443. so("http://www.roblox.com/asset/?id=87015121",Hitted,1,2)
  444. end),BodPos,BodGy,hit)
  445. end
  446. vp=Instance.new("BodyVelocity")
  447. vp.P=500
  448. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  449. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  450. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  451. if Knockback>0 then
  452. vp.Parent=hit.Parent.Torso
  453. end
  454. game:GetService("Debris"):AddItem(vp,.25)
  455. c=Instance.new("ObjectValue")
  456. c.Name="creator"
  457. c.Value=Player
  458. c.Parent=h
  459. game:GetService("Debris"):AddItem(c,.5)
  460. CRIT=false
  461. hitDeb=true
  462. AttackPos=6
  463. end
  464. end
  465. end
  466. Damagefunc2=function(hit,Damage,Knockback)
  467. if hit.Parent==nil then
  468. return
  469. end
  470. CPlayer=Bin
  471. blocked=false
  472. h=hit.Parent:FindFirstChild("Humanoid")
  473. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  474. Damage=Damage
  475. c=it("ObjectValue")
  476. c.Name="creator"
  477. c.Value=game.Players.LocalPlayer
  478. c.Parent=h
  479. game:GetService("Debris"):AddItem(c,.5)
  480. -- print(c.Value)
  481. --[[ if math.random(0,99)+math.random()<=7.8 then
  482. CRIT=true
  483. Damage=Damage*2
  484. s=it("Sound")
  485. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  486. s.Volume=1
  487. s.Pitch=2
  488. s.Parent=hit
  489. s.PlayOnRemove=true
  490. s.Parent=nil
  491.  
  492. end]]
  493. Damage=Damage+math.random(0,10)
  494. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  495. block=hit.Parent:findFirstChild("Block")
  496. if block~=nil then
  497. print("herp")
  498. if block.Value>0 then
  499. blocked=true
  500. block.Value=block.Value-3
  501. print(block.Value)
  502. end
  503. end
  504. if blocked==false then
  505. -- h:TakeDamage(Damage)
  506. h.Health=h.Health-Damage
  507. showDamage(hit.Parent,Damage,.5)
  508. else
  509. h:TakeDamage(1)
  510. showDamage(hit.Parent,1,.5)
  511. end
  512. --if blocked==false then
  513. --end
  514. local bodyVelocity=Instance.new("BodyVelocity")
  515. bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
  516. bodyVelocity.P=5000
  517. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  518. bodyVelocity.Parent=hit
  519. coroutine.resume(coroutine.create(function(Vel)
  520. wait(1)
  521. Vel:Remove()
  522. end),bodyVelocity)
  523. game:GetService("Debris"):AddItem(vp,1)
  524. c=it("ObjectValue")
  525. c.Name="creator"
  526. c.Value=Player
  527. c.Parent=h
  528. game:GetService("Debris"):AddItem(c,.5)
  529. CRIT=false
  530. hitDeb=true
  531. AttackPos=6
  532. end
  533. end
  534. showDamage=function(Char,Dealt,du)
  535. m=Instance.new("Model")
  536. m.Name=tostring(Dealt)
  537. h=Instance.new("Humanoid")
  538. h.Health=0
  539. h.MaxHealth=0
  540. h.Parent=m
  541. c=Instance.new("Part")
  542. c.Material = "SmoothPlastic"
  543. c.BottomSurface="SmoothNoOutlines"
  544. c.TopSurface="SmoothNoOutlines"
  545. c.RightSurface="SmoothNoOutlines"
  546. c.LeftSurface="SmoothNoOutlines"
  547. c.Transparency=0
  548. c.BrickColor=BrickColor:Red()
  549. if CRIT==true then
  550. c.BrickColor=BrickColor.new("New Yeller")
  551. end
  552. c.Name="Head"
  553. c.TopSurface=0
  554. c.BottomSurface=0
  555. c.formFactor="Plate"
  556. c.Size=Vector3.new(1,.4,1)
  557. ms=Instance.new("CylinderMesh")
  558. ms.Scale=Vector3.new(.8,.8,.8)
  559. if CRIT==true then
  560. ms.Scale=Vector3.new(1,1.25,1)
  561. end
  562. ms.Parent=c
  563. c.Reflectance=0
  564. Instance.new("BodyGyro").Parent=c
  565. c.Parent=m
  566. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  567. f=Instance.new("BodyPosition")
  568. f.P=2000
  569. f.D=100
  570. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  571. f.position=c.Position+Vector3.new(0,3,0)
  572. f.Parent=c
  573. game:GetService("Debris"):AddItem(m,.5+du)
  574. c.CanCollide=false
  575. m.Parent=workspace
  576. c.CanCollide=false
  577. wait(2)
  578. c:remove()
  579. end
  580. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  581. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  582. end
  583. spread=0
  584. range=500
  585. rangepower=10
  586. function shoottrail(mouse,baseprt,Type)
  587. coroutine.resume(coroutine.create(function(v)
  588. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  589. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  590. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  591. local rangepos = range
  592. BulletType=Type
  593. NewCol="White"
  594. if BulletType=="Explosion" then
  595. NewCol="Bright red"
  596. elseif BulletType=="Freeze" then
  597. NewCol="Bright blue"
  598. elseif BulletType=="Tornado" then
  599. NewCol="Pastel Blue"
  600. end
  601. local ShootBullet,ShootModel=MakeBullet(NewCol)
  602. ShootBullet.Anchored=false
  603. ShootBullet.CFrame=baseprt.CFrame
  604. local shodderp=weld(ShootBullet,ShootBullet,prt22,euler(3.14,0,0)*cf(0,0,0))
  605. shodderp.Parent=nil
  606. local function drawtrail(From,To)
  607. local effectsmsh = Instance.new("CylinderMesh")
  608. effectsmsh.Scale = Vector3.new(1,1,1)
  609. effectsmsh.Name = "Mesh"
  610. local effectsg = Instance.new("Part")
  611. effectsg.Material = "SmoothPlastic"
  612. effectsg.TopSurface = "SmoothNoOutlines"
  613. effectsg.BottomSurface = "SmoothNoOutlines"
  614. effectsg.RightSurface = "SmoothNoOutlines"
  615. effectsg.LeftSurface = "SmoothNoOutlines"
  616. effectsg.formFactor = 3
  617. effectsg.CanCollide = false
  618. effectsg.Name = "Eff"
  619. effectsg.Locked = true
  620. effectsg.Anchored = true
  621. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  622. effectsg.Parent = modelzorz
  623. effectsmsh.Parent = effectsg
  624. effectsg.BrickColor = BrickColor.new(NewCol)
  625. effectsg.Reflectance = 0.25
  626. effectsg.Transparency = 1
  627. local LP = From
  628. local point1 = To
  629. local mg = (LP - point1).magnitude
  630. effectsmsh.Scale = Vector3.new(1.5,mg*5,1.5)
  631. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  632. ShootBullet.CFrame=effectsg.CFrame*euler(3.14,0,0)
  633. local shodderp=weld(ShootBullet,ShootBullet,effectsg,euler(3.14,0,0)*cf(0,0,0))
  634. MagicBlock(BrickColor.new(NewCol),ShootBullet.CFrame,0,0,0,0.5,0.5,0.5)
  635. coroutine.resume(coroutine.create(function()
  636. effectsg.Transparency=1
  637. wait(0.1)
  638. effectsg.Parent = nil
  639. end))
  640. end
  641. local newpos = baseprt.Position
  642. local inc = rangepower
  643. repeat
  644. wait(0)
  645. rangepos = rangepos - 10
  646. dir = dir * CFrame.Angles(math.rad(-0.5),0,0)
  647. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  648. drawtrail(newpos,pos)
  649. newpos = newpos + (dir.lookVector * inc)
  650. if inc >= 20 then
  651. inc = inc - 10
  652. end
  653. if hit ~= nil then
  654. rangepos = 0
  655. end
  656. until rangepos <= 0
  657. TehCF=ShootBullet.CFrame
  658. NewCF=CFrame.new(ShootBullet.Position)
  659. NewPOS=ShootBullet.Position
  660. rand=math.random(1,3)
  661. ShootModel.Parent=nil
  662. if Type=="Explosion" then
  663. MagicCircle(BrickColor.new("Bright red"),TehCF,1,1,1,5,5,5)
  664. coroutine.resume(coroutine.create(function()
  665. for i=1,10 do
  666. wait(0.05)
  667. MagicCircle(BrickColor.new("Bright red"),NewCF*cf(math.random(-5,5),0,math.random(-5,5)),rand,1,rand,1,8,1)
  668. end
  669. end))
  670. local cc = game.Workspace:GetChildren()
  671. for i = 1, #cc do
  672. local hum = cc[i]:findFirstChild("Humanoid")
  673. if hum ~= nil and hum.Health ~= 0 then
  674. local head = cc[i]:findFirstChild("Head")
  675. if head ~= nil then
  676. local targ = head.Position - NewPOS
  677. local mag = targ.magnitude
  678. if mag <= 20 and cc[i].Name ~= Player.Name then
  679. attackdebounce=false
  680. Damagefunc1(head,20,"Explosion")
  681. end
  682. end
  683. end
  684. end
  685. elseif Type=="Freeze" then
  686. MagicBlock(BrickColor.new("Bright blue"),NewCF,1,1,1,5,5,5)
  687. for i=1,6 do
  688. MagicFreeze(BrickColor.new("Bright blue"),NewCF,0.5,0.5,0.5,0.1,0.3,0.1)
  689. BreakEffect(BrickColor.new("Bright blue"),NewCF,0.5,math.random(5,15),0.5)
  690. end
  691. local cc = game.Workspace:GetChildren()
  692. for i = 1, #cc do
  693. local hum = cc[i]:findFirstChild("Humanoid")
  694. if hum ~= nil and hum.Health ~= 0 then
  695. local head = cc[i]:findFirstChild("Head")
  696. if head ~= nil then
  697. local targ = head.Position - NewPOS
  698. local mag = targ.magnitude
  699. if mag <= 10 and cc[i].Name ~= Player.Name then
  700. attackdebounce=false
  701. freezeDamagefunc(head,10,10)
  702. end
  703. end
  704. end
  705. end
  706. elseif Type=="Tornado" then
  707. end
  708. --[[if hit ~= nil then
  709. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  710. hum = hit.Parent.Humanoid
  711. tTorso=hit.Parent.Torso
  712. Damagefunc2(hit,20,30)
  713. --ADmg(hum,hit)
  714. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  715. hum = hit.Parent.Parent.Humanoid
  716. tTorso=hit.Parent.Parent.Torso
  717. Damagefunc2(hit.Parent.Parent.Torso,20,30)
  718. --ADmg(hum,hit)
  719. end
  720. end]]
  721. end))
  722. end
  723. function Melee()
  724. attack=true
  725. for i=0,1,0.1 do
  726. wait()
  727. RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(0.8+0.77*i,0,0)
  728. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.77*i,-0.2+1.2*i)
  729. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  730. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  731. end
  732. so("http://roblox.com/asset/?id=10209640",prt22,1,1)
  733. con1=prt22.Touched:connect(function(hit) Damagefunc1(hit,10,"") end)
  734. for i=0,1,0.2 do
  735. wait()
  736. RW.C0=cf(0.5+1*i, 0.5, -0.5+0.5*i) * euler(1.57,0,0)
  737. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1-2.5*i)
  738. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2)
  739. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  740. end
  741. con1:disconnect()
  742. for i=0,1,0.1 do
  743. wait()
  744. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,-1.5-0.1*i)
  745. end
  746. for i=0,1,0.1 do
  747. wait()
  748. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  749. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.77*i,-1.6+1.4*i)
  750. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-0.2)
  751. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  752. end
  753. attack=false
  754. end
  755. function Shoot(Model)
  756. attack=true
  757. Humanoid.WalkSpeed=0
  758. coroutine.resume(coroutine.create(function()
  759. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  760. bg.P = 9000
  761. bg.Parent = Torso
  762. MainCFX=workspace.CurrentCamera.CoordinateFrame.X
  763. MainCFZ=workspace.CurrentCamera.CoordinateFrame.Z
  764. HeadCF=Head.Position.Y
  765. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  766. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  767. MainCF=cf(Head.Position,pos4) * euler(0,3.14,0)
  768. while attack==true do
  769. wait()
  770. bg.cframe = MainCF
  771. bg.Parent = Head
  772. end
  773. for i=0,1,0.1 do
  774. wait()
  775. bg.Parent=nil
  776. Neck.C0=necko*euler(0,0,0)
  777. end
  778. end))
  779. for i=0,1,0.1 do
  780. wait()
  781. Neck.C0=necko*euler(0,0,-1.57*i)
  782. RW.C0=cf(1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
  783. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-0.2*i,-0.2-1.37*i)
  784. end
  785. wait(0.3)
  786. so("http://roblox.com/asset/?id=151776307",prt7,1,1)
  787. MainModel=BulletTable[1]
  788. table.remove(BulletTable,1)
  789. MainModel.Parent=nil
  790. shoottrail(mouse,prt22,AmmoType)
  791. Loaded=false
  792. AmmoType=""
  793. for i=0,1,0.2 do
  794. wait()
  795. Neck.C0=necko*euler(0,0,-1.57)
  796. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  797. RW.C1=cf(0, 0.5, 0) * euler(-0.3*i,0,-1.57)
  798. end
  799. for i=0,1,0.1 do
  800. wait()
  801. Neck.C0=necko*euler(0,0,-1.57)
  802. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  803. RW.C1=cf(0, 0.5, 0) * euler(-0.3-0.2*i,0,-1.57)
  804. end
  805. for i=0,1,0.1 do
  806. wait()
  807. Neck.C0=necko*euler(0,0,-1.57+1.57*i)
  808. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
  809. RW.C1=cf(0, 0.5, 0) * euler(-0.5+0.5*i,0.2*i,-1.57+1.37*i)
  810. end
  811. wait(0.2)
  812. Humanoid.WalkSpeed=16
  813. attack=false
  814. end
  815. function LoadExplode(bullet,BulletModel)
  816. attack=true
  817. for i=0,1,0.1 do
  818. wait()
  819. RW.C0=cf(1.5, 0.5, 0) * euler(0.8,0,0)
  820. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  821. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2+0.6*i)
  822. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  823. end
  824. local bullet,BulletModel=MakeBullet("Bright red")
  825. local wldbul=weld(bullet,bullet,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  826. table.insert(BulletTable,BulletModel)
  827. for i=0,1,0.1 do
  828. wait()
  829. RW.C0=cf(1.5-0.5*i, 0.5, -1*i) * euler(0.8,0,0)
  830. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.6*i,-0.2+0.2*i)
  831. LW.C0=cf(-1.5+0.3*i, 0.5-0.2*i, -1*i) * euler(-0.5+2*i,0,0.4+0.7*i)
  832. LW.C1=cf(0, 0.5, 0) * euler(0,0.8*i,0)
  833. end
  834. so("http://www.roblox.com/asset/?id=10209845",prt9,1,0.7)
  835. wldbul.Part1=prt9
  836. wldbul.C0=euler(3.14,0,0)*cf(0,0.8,0)
  837. Loaded=true
  838. AmmoType="Explosion"
  839. for i=0,1,0.1 do
  840. wait()
  841. wldbul.C0=euler(3.14,0,0)*cf(0,0.8-2.2*i,0)
  842. RW.C0=cf(1.5-0.5, 0.5, -1) * euler(0.8,0,0)
  843. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.6,0)
  844. LW.C0=cf(-1.5+0.3, 0.5-0.2, -1) * euler(1.5,0,0.4+0.7)
  845. LW.C1=cf(0, 0.5, 0) * euler(1*i,0.8,0)
  846. end
  847. for i=0,1,0.1 do
  848. wait()
  849. RW.C0=cf(1+0.5*i, 0.5, -1+1*i) * euler(0.8,0,0)
  850. RW.C1=cf(0, 0.5, 0) * euler(0,-1.4+1.6*i,-0.2*i)
  851. LW.C0=cf(-1.2-0.3*i, 0.5-0.2+0.2*i, -1+1*i) * euler(1.5-1.5*i,0,1.1-1.3*i)
  852. LW.C1=cf(0, 0.5, 0) * euler(1-1*i,0.8-0.8*i,0)
  853. end
  854. attack=false
  855. return bullet,BulletModel
  856. end
  857. function LoadFreeze(bullet,BulletModel)
  858. attack=true
  859. for i=0,1,0.1 do
  860. wait()
  861. RW.C0=cf(1.5, 0.5, 0) * euler(0.8,0,0)
  862. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  863. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2+0.6*i)
  864. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  865. end
  866. local bullet,BulletModel=MakeBullet("Bright blue")
  867. local wldbul=weld(bullet,bullet,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  868. table.insert(BulletTable,BulletModel)
  869. for i=0,1,0.1 do
  870. wait()
  871. RW.C0=cf(1.5-0.5*i, 0.5, -1*i) * euler(0.8,0,0)
  872. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.6*i,-0.2+0.2*i)
  873. LW.C0=cf(-1.5+0.3*i, 0.5-0.2*i, -1*i) * euler(-0.5+2*i,0,0.4+0.7*i)
  874. LW.C1=cf(0, 0.5, 0) * euler(0,0.8*i,0)
  875. end
  876. so("http://www.roblox.com/asset/?id=10209845",prt9,1,0.7)
  877. wldbul.Part1=prt9
  878. wldbul.C0=euler(3.14,0,0)*cf(0,0.8,0)
  879. Loaded=true
  880. AmmoType="Freeze"
  881. for i=0,1,0.1 do
  882. wait()
  883. wldbul.C0=euler(3.14,0,0)*cf(0,0.8-2.2*i,0)
  884. RW.C0=cf(1.5-0.5, 0.5, -1) * euler(0.8,0,0)
  885. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.6,0)
  886. LW.C0=cf(-1.5+0.3, 0.5-0.2, -1) * euler(1.5,0,0.4+0.7)
  887. LW.C1=cf(0, 0.5, 0) * euler(1*i,0.8,0)
  888. end
  889. for i=0,1,0.1 do
  890. wait()
  891. RW.C0=cf(1+0.5*i, 0.5, -1+1*i) * euler(0.8,0,0)
  892. RW.C1=cf(0, 0.5, 0) * euler(0,-1.4+1.6*i,-0.2*i)
  893. LW.C0=cf(-1.2-0.3*i, 0.5-0.2+0.2*i, -1+1*i) * euler(1.5-1.5*i,0,1.1-1.3*i)
  894. LW.C1=cf(0, 0.5, 0) * euler(1-1*i,0.8-0.8*i,0)
  895. end
  896. attack=false
  897. return bullet,BulletModel
  898. end
  899. function LoadTornado(bullet,BulletModel)
  900. attack=true
  901. for i=0,1,0.1 do
  902. wait()
  903. RW.C0=cf(1.5, 0.5, 0) * euler(0.8,0,0)
  904. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  905. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2+0.6*i)
  906. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  907. end
  908. local bullet,BulletModel=MakeBullet("Pastel Blue")
  909. local wldbul=weld(bullet,bullet,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  910. table.insert(BulletTable,BulletModel)
  911. for i=0,1,0.1 do
  912. wait()
  913. RW.C0=cf(1.5-0.5*i, 0.5, -1*i) * euler(0.8,0,0)
  914. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.6*i,-0.2+0.2*i)
  915. LW.C0=cf(-1.5+0.3*i, 0.5-0.2*i, -1*i) * euler(-0.5+2*i,0,0.4+0.7*i)
  916. LW.C1=cf(0, 0.5, 0) * euler(0,0.8*i,0)
  917. end
  918. so("http://www.roblox.com/asset/?id=10209845",prt9,1,0.7)
  919. wldbul.Part1=prt9
  920. wldbul.C0=euler(3.14,0,0)*cf(0,0.8,0)
  921. Loaded=true
  922. AmmoType="Tornado"
  923. for i=0,1,0.1 do
  924. wait()
  925. wldbul.C0=euler(3.14,0,0)*cf(0,0.8-2.2*i,0)
  926. RW.C0=cf(1.5-0.5, 0.5, -1) * euler(0.8,0,0)
  927. RW.C1=cf(0, 0.5, 0) * euler(0,0.2-1.6,0)
  928. LW.C0=cf(-1.5+0.3, 0.5-0.2, -1) * euler(1.5,0,0.4+0.7)
  929. LW.C1=cf(0, 0.5, 0) * euler(1*i,0.8,0)
  930. end
  931. for i=0,1,0.1 do
  932. wait()
  933. RW.C0=cf(1+0.5*i, 0.5, -1+1*i) * euler(0.8,0,0)
  934. RW.C1=cf(0, 0.5, 0) * euler(0,-1.4+1.6*i,-0.2*i)
  935. LW.C0=cf(-1.2-0.3*i, 0.5-0.2+0.2*i, -1+1*i) * euler(1.5-1.5*i,0,1.1-1.3*i)
  936. LW.C1=cf(0, 0.5, 0) * euler(1-1*i,0.8-0.8*i,0)
  937. end
  938. attack=false
  939. return bullet,BulletModel
  940. end
  941. function ob1d(mouse)
  942. if attack == true then return end
  943. hold=true
  944. if Loaded==false then
  945. Melee()
  946. else
  947. Shoot(TehModel)
  948. end
  949. RW.C0=cf(1.5, 0.5, 0) * euler(0.8,0,0)
  950. RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
  951. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  952. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  953. end
  954. function ob1u(mouse)
  955. hold = false
  956. end
  957. buttonhold = false
  958. eul=0
  959. function key(key)
  960. if attack == true then return end
  961. if Loaded==false then
  962. if key=="z" then
  963. local Bullet,TehModel=LoadExplode(bullet,BulletModel)
  964. end
  965. if key=="x" then
  966. local Bullet,TehModel=LoadFreeze(bullet,BulletModel)
  967. end
  968. if key=="c" then
  969. local Bullet,TehModel=LoadTornado(bullet,BulletModel)
  970. end
  971. end
  972. end
  973. function key2(key)
  974. end
  975. function s(mouse)
  976. mouse.Button1Down:connect(function() ob1d(mouse) end)
  977. mouse.Button1Up:connect(function() ob1u(mouse) end)
  978. mouse.KeyDown:connect(key)
  979. mouse.KeyUp:connect(key2)
  980. unsheathed = true
  981. player = Player
  982. ch = Character
  983. MMouse = mouse
  984. RSH = ch.Torso["Right Shoulder"]
  985. LSH = ch.Torso["Left Shoulder"]
  986. --
  987. RSH.Parent = nil
  988. LSH.Parent = nil
  989. --
  990. RW.Part0 = ch.Torso
  991. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  992. RW.C1 = CFrame.new(0, 0.5, 0)
  993. RW.Part1 = ch["Right Arm"]
  994. RW.Parent = ch.Torso
  995. --_G.R = RW
  996. --
  997. LW.Part0 = ch.Torso
  998. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  999. LW.C1 = CFrame.new(0, 0.5, 0)
  1000. LW.Part1 = ch["Left Arm"]
  1001. LW.Parent = ch.Torso
  1002. --_G.L = LW
  1003. --
  1004. equipanim()
  1005. end
  1006. function ds(mouse)
  1007. hideanim()
  1008. wait(0)
  1009. RW.Parent = nil
  1010. LW.Parent = nil
  1011. RSH.Parent = player.Character.Torso
  1012. LSH.Parent = player.Character.Torso
  1013. end
  1014. Bin.Selected:connect(s)
  1015. Bin.Deselected:connect(ds)
  1016. print("Blitz loaded.")
  1017. -- mediafire
  1018. --[[
  1019. Copyrighted (C) Fenrier 2013
  1020. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement