KnightZoro

Blitz Gun

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