Advertisement
Zarcus

Untitled

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