luciferxolotl

Untitled

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