Versqual

Untitled

Jul 14th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.70 KB | None | 0 0
  1. Player = game:GetService("Players").Excellating
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it=Instance.new
  18. vt=Vector3.new
  19. cf=CFrame.new
  20. euler=CFrame.fromEulerAnglesXYZ
  21. angles=CFrame.Angles
  22. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  24. attack = false
  25. attacktype = 1
  26. attackdebounce = false
  27. MMouse=nil
  28. combo=0
  29. Mode="Choose"
  30. Aiming=false
  31. DroneTarget=Torso.Position
  32. Drone1=nil
  33. Drone2=nil
  34. Drone3=nil
  35. Bullets=10
  36. BowAim=false
  37. SnipAim=false
  38. --player
  39. player = nil
  40. --save shoulders
  41. RSH, LSH = nil, nil
  42. --welds
  43. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  44. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  45.  
  46.  
  47. if Character:findFirstChild("Techno Gauntlet",true) ~= nil then
  48. Character:findFirstChild("Techno Gauntlet",true).Parent = nil
  49. end
  50.  
  51.  
  52. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  53. local fp = it("Part")
  54. fp.formFactor = formfactor
  55. fp.Parent = parent
  56. fp.Reflectance = reflectance
  57. fp.Transparency = transparency
  58. fp.CanCollide = false
  59. fp.Locked=true
  60. fp.BrickColor = brickcolor
  61. fp.Name = name
  62. fp.Size = size
  63. fp.Position = Torso.Position
  64. fp.BottomSurface="Smooth"
  65. fp.TopSurface="Smooth"
  66. fp:BreakJoints()
  67. return fp
  68. end
  69.  
  70. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  71. local mesh = it(Mesh)
  72. mesh.Parent = part
  73. if Mesh=="SpecialMesh" then
  74. mesh.MeshType = meshtype
  75. mesh.MeshId = meshid
  76. end
  77. mesh.Offset=offset
  78. mesh.Scale=scale
  79. return mesh
  80. end
  81.  
  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.  
  91. local cone=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Cone",vt(1,1,1))
  92. local conemsh=mesh("SpecialMesh",cone,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.5,0.5,0.5))
  93. local screen1=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Screen1",vt(1,1,1))
  94. local screen1msh=mesh("BlockMesh",screen1,"","",vt(0,0,0),vt(0.1,0.8,0.9))
  95. local screen2=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Screen2",vt(1,1,1))
  96. local screen2msh=mesh("BlockMesh",screen2,"","",vt(0,0,0),vt(0.1,0.8,0.9))
  97. local screen3=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Screen3",vt(1,1,1))
  98. local screen3msh=mesh("BlockMesh",screen3,"","",vt(0,0,0),vt(0.1,0.8,0.9))
  99. light1=Instance.new("PointLight")
  100. light1.Brightness=.8
  101. light1.Color=Color3.new(.2,.2,255)
  102. light1.Range=10
  103. light1.Parent=screen1
  104. light2=light1:Clone()
  105. light2.Parent=screen2
  106. light3=light1:Clone()
  107. light3.Parent=screen3
  108.  
  109. if Character:findFirstChild("Drone",true) ~= nil then
  110. Character:findFirstChild("Drone",true).Parent = nil
  111. end
  112.  
  113. local modelzorz = Instance.new("Model")
  114. modelzorz.Parent = Character
  115. modelzorz.Name = "Techno Gauntlet"
  116.  
  117. local prt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part1",vt(1,1,1))
  118. local prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(1,1,1))
  119. local prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  120. local prt4=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(1,1,1))
  121. local prt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(1,1,1))
  122. local prt6=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part6",vt(1,1,1))
  123. local prt7=part(3,modelzorz,0,0,Torso.BrickColor,"Part7",vt(1,1,1))
  124. local prt8=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(1,1,1))
  125. local prt9=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part9",vt(1,1,1))
  126. local prt10=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part10",vt(1,1,1))
  127.  
  128. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.1,0.6,1.1))
  129. msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.2,0.7,1.05))
  130. msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1.05,0.7,0.2))
  131. msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1.4,1.6,0.2))
  132. msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1.4,1.6,0.2))
  133. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.6,0.1,0.6))
  134. msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  135. msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(0.6,0.1,0.6))
  136. msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.3,0.1,0.3))
  137. msh10=mesh("CylinderMesh",prt10,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  138.  
  139. local wld1=weld(prt1,prt1,RightArm,euler(0,0,0)*cf(0,0.3,0))
  140. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0.4,0))
  141. local wld3=weld(prt3,prt3,prt1,euler(0,0,0)*cf(0,0.4,0))
  142. local wld4=weld(prt4,prt4,prt1,euler(0,0.785,0)*cf(0,-0.51,0))
  143. local wld5=weld(prt5,prt5,prt1,euler(0,-0.785,0)*cf(0,-0.51,0))
  144. local wld6=weld(prt6,prt6,prt1,euler(0,0,0)*cf(0,-1.3,0))
  145. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(0,0,0))
  146. local wld8=weld(prt8,prt8,prt1,euler(0,0,-1.57)*cf(-0.55,0,0))
  147. local wld9=weld(prt9,prt9,prt8,euler(0,0,0)*cf(0,0.05,0))
  148. local wld10=weld(prt10,prt10,prt9,euler(0,0,0)*cf(0,0.01,0))
  149.  
  150. numb2=0
  151. for i=1,4 do
  152. numb=0.3
  153. for i=1,3 do
  154. local prtclaw=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Partclaw",vt(1,1,1))
  155. mshclaw=mesh("SpecialMesh",prtclaw,"Wedge","",vt(0,0,0),vt(0.1,0.3,0.1))
  156. local wldclaw=weld(prtclaw,prtclaw,prt1,euler(1.57,-1.57,-1.57)*cf(-0.55,0.3,numb)*euler(0,numb2,0))
  157. numb=numb-0.3
  158. end
  159. numb2=numb2+1.57
  160. end
  161.  
  162. numb=0
  163. for i=1,5 do
  164. local prtgear=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Partgear",vt(1,1,1))
  165. mshgear=mesh("BlockMesh",prtgear,"","",vt(0,0,0),vt(0.4,0.09,0.07))
  166. local wldgear=weld(prtgear,prtgear,prt9,euler(0,numb,0)*cf(0,0,0))
  167. numb=numb+0.628
  168. end
  169.  
  170. local gun = Instance.new("Model")
  171. gun.Parent = modelzorz
  172. gun.Name = "Blitz"
  173. gun.Parent=nil
  174.  
  175. local gprt1=part(3,gun,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(1,1,1))
  176. local gprt2=part(3,gun,0,0,BrickColor.new("Black"),"Part2",vt(1,1,1))
  177. local gprt3=part(3,gun,0,0,BrickColor.new("Black"),"Part3",vt(1,1,1))
  178. local gprt4=part(3,gun,0,0,BrickColor.new("Black"),"Part4",vt(1,1,1))
  179. local gprt5=part(3,gun,0,0,BrickColor.new("Black"),"Part5",vt(1,1,1))
  180. local gprt6=part(3,gun,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(1,1,1))
  181. local gprt7=part(3,gun,0,0,BrickColor.new("Medium stone grey"),"Part7",vt(1,1,1))
  182. local gprt8=part(3,gun,0,0,BrickColor.new("Black"),"Part8",vt(1,1,1))
  183. local gprt9=part(3,gun,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(1,1,1))
  184. local gprt10=part(3,gun,0,0,BrickColor.new("Black"),"Part10",vt(1,1,1))
  185. local gprt11=part(3,gun,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  186. local gprt12=part(3,gun,0,0,BrickColor.new("Black"),"Part12",vt(1,1,1))
  187. local gprt13=part(3,gun,0,0,BrickColor.new("Black"),"Part13",vt(1,1,1))
  188. local gprt14=part(3,gun,0,0,BrickColor.new("Black"),"Part14",vt(1,1,1))
  189. local gprt15=part(3,gun,0,0,BrickColor.new("Dark stone grey"),"Part15",vt(1,1,1))
  190. local gprt16=part(3,gun,0,0,BrickColor.new("Dark stone grey"),"Part16",vt(1,1,1))
  191. local gprt17=part(3,gun,0,0,BrickColor.new("Really black"),"Part17",vt(1,1,1))
  192. local gprt18=part(3,gun,0,0,BrickColor.new("Black"),"Part18",vt(1,1,1))
  193. local gprt19=part(3,gun,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(1,1,1))
  194. local gprt20=part(3,gun,0,0,BrickColor.new("Medium stone grey"),"Part20",vt(1,1,1))
  195. local gprt21=part(3,gun,0,0,BrickColor.new("Medium stone grey"),"Part21",vt(1,1,1))
  196. local gprt22=part(3,gun,0,0,BrickColor.new("Medium stone grey"),"Part22",vt(1,1,1))
  197.  
  198. gmsh1=mesh("BlockMesh",gprt1,"","",vt(0,0,0),vt(0.2,0.7,0.2))
  199. gmsh2=mesh("BlockMesh",gprt2,"","",vt(0,0,0),vt(0.25,0.2,0.25))
  200. gmsh3=mesh("BlockMesh",gprt3,"","",vt(0,0,0),vt(0.25,0.2,0.25))
  201. gmsh4=mesh("BlockMesh",gprt4,"","",vt(0,0,0),vt(0.5,0.5,0.7))
  202. gmsh5=mesh("CylinderMesh",gprt5,"","",vt(0,0,0),vt(0.5,0.49,0.5))
  203. gmsh6=mesh("CylinderMesh",gprt6,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  204. gmsh7=mesh("BlockMesh",gprt7,"","",vt(0,0,0),vt(0.55,0.3,0.3))
  205. gmsh8=mesh("CylinderMesh",gprt8,"","",vt(0,0,0),vt(0.7,0.7,0.7))
  206. gmsh9=mesh("CylinderMesh",gprt9,"","",vt(0,0,0),vt(0.4,0.71,0.4))
  207. gmsh10=mesh("BlockMesh",gprt10,"","",vt(0,0,0),vt(0.3,0.4,0.3))
  208. gmsh11=mesh("BlockMesh",gprt11,"","",vt(0,0,0),vt(0.2,2.5,0.5))
  209. gmsh12=mesh("CylinderMesh",gprt12,"","",vt(0,0,0),vt(0.3,0.51,0.3))
  210. gmsh13=mesh("BlockMesh",gprt13,"","",vt(0,0,0),vt(0.2,0.3,0.5))
  211. gmsh14=mesh("CylinderMesh",gprt14,"","",vt(0,0,0),vt(0.3,0.2,0.3))
  212. gmsh15=mesh("CylinderMesh",gprt15,"","",vt(0,0,0),vt(0.2,0.35,0.2))
  213. gmsh16=mesh("CylinderMesh",gprt16,"","",vt(0,0,0),vt(0.2,0.21,0.2))
  214. gmsh17=mesh("CylinderMesh",gprt17,"","",vt(0,0,0),vt(0.15,0.22,0.15))
  215. gmsh18=mesh("CylinderMesh",gprt18,"","",vt(0,0,0),vt(0.6,0.2,0.6))
  216. gmsh19=mesh("CylinderMesh",gprt19,"","",vt(0,0,0),vt(0.7,0.2,0.7))
  217. gmsh20=mesh("CylinderMesh",gprt20,"","",vt(0,0,0),vt(0.6,1.5,0.6))
  218. gmsh21=mesh("CylinderMesh",gprt21,"","",vt(0,0,0),vt(0.69,0.5,0.69))
  219. gmsh22=mesh("CylinderMesh",gprt22,"","",vt(0,0,0),vt(0.69,0.31,0.69))
  220.  
  221. local GunWelds={}
  222. local gwld1=weld(gprt1,gprt1,Torso,euler(0.5,1.57,0)*cf(1,-0.5,1.8))
  223. local gwld2=weld(gprt2,gprt2,gprt1,euler(0,0,0)*cf(0,0.3,0))
  224. local gwld3=weld(gprt3,gprt3,gprt1,euler(0,0,0)*cf(0,-0.3,0))
  225. local gwld4=weld(gprt4,gprt4,gprt3,euler(-0.5,0,0)*cf(0,-0.1,-0.1))
  226. local gwld5=weld(gprt5,gprt5,gprt4,euler(0,0,1.57)*cf(0,0,-0.35))
  227. local gwld6=weld(gprt6,gprt6,gprt5,cf(0,0,-0.1))
  228. local gwld7=weld(gprt7,gprt7,gprt4,cf(0,0,-0.1))
  229. local gwld8=weld(gprt8,gprt8,gprt4,euler(0,0,1.57)*cf(0,0,0.4))
  230. local gwld9=weld(gprt9,gprt9,gprt8,cf(0,0,0))
  231. local gwld10=weld(gprt10,gprt10,gprt8,euler(1.57,0,0)*cf(0,0,0.4)*euler(0,0.7,0))
  232. local gwld11=weld(gprt11,gprt11,gprt8,euler(1.57,0,0)*cf(0.3,0,0.9))
  233. local gwld12=weld(gprt12,gprt12,gprt11,euler(-1.57,0,0)*cf(0,-1.3,0))
  234. local gwld13=weld(gprt13,gprt13,gprt12,cf(0,0,0.3)*euler(0,1.57,0))
  235. local gwld14=weld(gprt14,gprt14,gprt13,cf(0.05,0,0.25))
  236. local gwld15=weld(gprt15,gprt15,gprt14,cf(0,0,0))
  237. local gwld16=weld(gprt16,gprt16,gprt13,euler(0,0,1.57)*cf(0,0,-0.1))
  238. local gwld17=weld(gprt17,gprt17,gprt16,cf(0,0,0))
  239. local gwld18=weld(gprt18,gprt18,gprt8,euler(1.57,0,0)*cf(-0.1,0,0.4))
  240. local gwld19=weld(gprt19,gprt19,gprt18,cf(-0.05,-0.15,0))
  241. local gwld20=weld(gprt20,gprt20,gprt19,cf(0,-0.8,0))
  242. local gwld21=weld(gprt21,gprt21,gprt20,cf(0,0.5,0))
  243. local gwld22=weld(gprt22,gprt22,gprt20,cf(0,-0.6,0))
  244. table.insert(GunWelds,gwld1)
  245. table.insert(GunWelds,gwld2)
  246. table.insert(GunWelds,gwld3)
  247. table.insert(GunWelds,gwld4)
  248. table.insert(GunWelds,gwld5)
  249. table.insert(GunWelds,gwld6)
  250. table.insert(GunWelds,gwld7)
  251. table.insert(GunWelds,gwld8)
  252. table.insert(GunWelds,gwld9)
  253. table.insert(GunWelds,gwld10)
  254. table.insert(GunWelds,gwld11)
  255. table.insert(GunWelds,gwld12)
  256. table.insert(GunWelds,gwld13)
  257. table.insert(GunWelds,gwld14)
  258. table.insert(GunWelds,gwld15)
  259. table.insert(GunWelds,gwld16)
  260. table.insert(GunWelds,gwld17)
  261. table.insert(GunWelds,gwld18)
  262. table.insert(GunWelds,gwld19)
  263. table.insert(GunWelds,gwld20)
  264. table.insert(GunWelds,gwld21)
  265. table.insert(GunWelds,gwld22)
  266.  
  267. numb=1.57
  268. for i=1,10 do
  269. local gprt23=part(3,gun,0,0,BrickColor.new("Medium stone grey"),"Part23",vt(1,1,1))
  270. gmsh23=mesh("CylinderMesh",gprt23,"","",vt(0,0,0),vt(0.15,0.7,0.15))
  271. local gwld23=weld(gprt23,gprt23,gprt20,cf(0,-0.1,-0.25)*euler(0,numb,0))
  272. table.insert(GunWelds,gwld23)
  273. local gprt24=part(3,gun,0,0,BrickColor.new("Really black"),"Part24",vt(1,1,1))
  274. gmsh24=mesh("CylinderMesh",gprt24,"","",vt(0,0,0),vt(0.14,1.52,0.14))
  275. local gwld24=weld(gprt24,gprt24,gprt20,cf(0,0,-0.25)*euler(0,numb,0))
  276. table.insert(GunWelds,gwld24)
  277. numb=numb+0.628
  278. end
  279.  
  280. local sword=Instance.new("Model")
  281. sword.Parent=modelzorz
  282. sword.Name="Daku"
  283. sword.Parent=nil
  284.  
  285. local sprt1=part(3,sword,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(1,1,1))
  286. local sprt2=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part2",vt(1,1,1))
  287. local sprt3=part(3,sword,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  288. local sprt4=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part4",vt(1,1,1))
  289. local sprt5=part(3,sword,0,0,BrickColor.new("Light stone grey"),"Part5",vt(1,1,1))
  290. local sprt6=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part6",vt(1,1,1))
  291. local sprt7=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part7",vt(1,1,1))
  292. local sprt8=part(3,sword,0,0,BrickColor.new("Light stone grey"),"Part8",vt(1,1,1))
  293. local sprt9=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part9",vt(1,1,1))
  294. local sprt10=part(3,sword,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(1,1,1))
  295. local sprt11=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part11",vt(1,1,1))
  296. local sprt12=part(3,sword,0,0,BrickColor.new("Light stone grey"),"Part12",vt(1,1,1))
  297. local sprt13=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part13",vt(1,1,1))
  298. local sprt14=part(3,sword,0,0,BrickColor.new("Medium stone grey"),"Part14",vt(1,1,1))
  299. local sprt15=part(3,sword,0,0,BrickColor.new("Light stone grey"),"Part15",vt(1,1,1))
  300. local sprt16=part(3,sword,0,1,BrickColor.new("Black"),"Hitbox",vt(1,7,1.5))
  301. local sprt17=part(3,sword,0,0,BrickColor.new("Bright yellow"),"Top",vt(1,1,1))
  302. local sprt18=part(3,sword,0,1,BrickColor.new("Black"),"Mid",vt(0.1,0.1,0.1))
  303. local sprt19=part(3,sword,0,0,BrickColor.new("Bright yellow"),"Bottom",vt(1,1,1))
  304.  
  305. smsh1=mesh("BlockMesh",sprt1,"","",vt(0,0,0),vt(0.2,1,0.2))
  306. smsh2=mesh("SpecialMesh",sprt2,"Head","",vt(0,0,0),vt(0.4,0.3,0.4))
  307. smsh3=mesh("BlockMesh",sprt3,"","",vt(0,0,0),vt(0.25,0.5,0.25))
  308. smsh4=mesh("SpecialMesh",sprt4,"Head","",vt(0,0,0),vt(0.5,0.3,0.5))
  309. smsh5=mesh("CylinderMesh",sprt5,"","",vt(0,0,0),vt(0.5,0.2,0.5))
  310. smsh6=mesh("BlockMesh",sprt6,"","",vt(0,0,0),vt(0.5,0.2,0.35))
  311. smsh7=mesh("BlockMesh",sprt7,"","",vt(0,0,0),vt(0.2,0.19,0.2))
  312. smsh8=mesh("BlockMesh",sprt8,"","",vt(0,0,0),vt(0.8,0.15,0.5))
  313. smsh9=mesh("SpecialMesh",sprt9,"Head","",vt(0,0,0),vt(0.4,0.3,0.4))
  314. smsh10=mesh("BlockMesh",sprt10,"","",vt(0,0,0),vt(0.25,0.5,0.25))
  315. smsh11=mesh("SpecialMesh",sprt11,"Head","",vt(0,0,0),vt(0.5,0.3,0.5))
  316. smsh12=mesh("CylinderMesh",sprt12,"","",vt(0,0,0),vt(0.5,0.2,0.5))
  317. smsh13=mesh("BlockMesh",sprt13,"","",vt(0,0,0),vt(0.5,0.2,0.35))
  318. smsh14=mesh("BlockMesh",sprt14,"","",vt(0,0,0),vt(0.2,0.19,0.2))
  319. smsh15=mesh("BlockMesh",sprt15,"","",vt(0,0,0),vt(0.8,0.15,0.5))
  320. smsh17=mesh("CylinderMesh",sprt17,"","",vt(0,0,0),vt(0.1,0.05,0.1))
  321. smsh19=mesh("CylinderMesh",sprt19,"","",vt(0,0,0),vt(0.1,0.05,0.1))
  322.  
  323. local SwordWelds={}
  324. local swld1=weld(sprt1,sprt1,Torso,euler(0,0,1.57)*cf(0,-4,0))
  325. local swld2=weld(sprt2,sprt2,sprt1,euler(0,0,0)*cf(0,-0.4,0))
  326. local swld3=weld(sprt3,sprt3,sprt2,euler(0,0,0)*cf(0,-0.3,0))
  327. local swld4=weld(sprt4,sprt4,sprt3,euler(0,0,0)*cf(0,-0.3,0))
  328. local swld5=weld(sprt5,sprt5,sprt4,euler(0,0,0)*cf(0,-0.15,0))
  329. local swld6=weld(sprt6,sprt6,sprt5,euler(0,0,1.57)*cf(0,-0.2,0))
  330. local swld7=weld(sprt7,sprt7,sprt6,euler(0,0.785,0)*cf(0,0,-0.17))
  331. local swld8=weld(sprt8,sprt8,sprt5,euler(0,0,1.57)*cf(0,-0.4,0))
  332. local swld9=weld(sprt9,sprt9,sprt1,euler(3.14,3.14,0)*cf(0,0.4,0))
  333. local swld10=weld(sprt10,sprt10,sprt9,euler(0,0,0)*cf(0,-0.3,0))
  334. local swld11=weld(sprt11,sprt11,sprt10,euler(0,0,0)*cf(0,-0.3,0))
  335. local swld12=weld(sprt12,sprt12,sprt11,euler(0,0,0)*cf(0,-0.15,0))
  336. local swld13=weld(sprt13,sprt13,sprt12,euler(0,0,1.57)*cf(0,-0.2,0))
  337. local swld14=weld(sprt14,sprt14,sprt13,euler(0,0.785,0)*cf(0,0,-0.17))
  338. local swld15=weld(sprt15,sprt15,sprt12,euler(0,0,1.57)*cf(0,-0.4,0))
  339. local swld16=weld(sprt16,sprt16,sprt1,cf(0,0,-0.3))
  340. local swld17=weld(sprt17,sprt17,sprt1,euler(0.55,0,0)*cf(0,3.7,-0.79))
  341. local swld18=weld(sprt18,sprt18,sprt1,cf(0,0,-0.8))
  342. local swld19=weld(sprt19,sprt19,sprt1,euler(-0.55,0,0)*cf(0,-3.7,-0.79))
  343. table.insert(SwordWelds,swld1)
  344. table.insert(SwordWelds,swld2)
  345. table.insert(SwordWelds,swld3)
  346. table.insert(SwordWelds,swld4)
  347. table.insert(SwordWelds,swld5)
  348. table.insert(SwordWelds,swld6)
  349. table.insert(SwordWelds,swld7)
  350. table.insert(SwordWelds,swld8)
  351. table.insert(SwordWelds,swld9)
  352. table.insert(SwordWelds,swld10)
  353. table.insert(SwordWelds,swld11)
  354. table.insert(SwordWelds,swld12)
  355. table.insert(SwordWelds,swld13)
  356. table.insert(SwordWelds,swld14)
  357. table.insert(SwordWelds,swld15)
  358. table.insert(SwordWelds,swld16)
  359. table.insert(SwordWelds,swld17)
  360. table.insert(SwordWelds,swld18)
  361. table.insert(SwordWelds,swld19)
  362.  
  363. numb=0
  364. numb2=0
  365. bend=0
  366. for i=1,8 do
  367. local sprtblade1=part(3,sword,0.3,0,BrickColor.new("White"),"Partblade1",vt(1,1,1))
  368. smshblade1=mesh("SpecialMesh",sprtblade1,"Wedge","",vt(0,0,0),vt(0.1+numb2,0.7,0.7))
  369. local swldblade1=weld(sprtblade1,sprtblade1,sprt5,euler(0,0,0)*cf(0,-0.3-numb,0.1+bend)*euler(-bend,0,0))
  370. table.insert(SwordWelds,swldblade1)
  371. local sprtblade2=part(3,sword,0.3,0,BrickColor.new("White"),"Partblade2",vt(1,1,1))
  372. smshblade2=mesh("SpecialMesh",sprtblade2,"Wedge","",vt(0,0,0),vt(0.1+numb2,0.7,0.7))
  373. local swldblade2=weld(sprtblade2,sprtblade2,sprt12,euler(0,0,0)*cf(0,-0.3-numb,0.1+bend)*euler(-bend,0,0))
  374. table.insert(SwordWelds,swldblade2)
  375. numb=numb+0.3
  376. numb2=numb2-0.01
  377. bend=bend+0.05
  378. end
  379.  
  380. local sniper=Instance.new("Model")
  381. sniper.Parent=modelzorz
  382. sniper.Name="Hand Sniper"
  383. sniper.Parent=nil
  384.  
  385. local snprt1=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(1,1,1))
  386. local snprt2=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(1,1,1))
  387. local snprt3=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  388. local snprt4=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(1,1,1))
  389. local snprt5=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(1,1,1))
  390. local snprt6=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(1,1,1))
  391. local snprt7=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part7",vt(1,1,1))
  392. local snprt8=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(1,1,1))
  393. local snprt9=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(1,1,1))
  394. local snprt10=part(3,sniper,0,0,BrickColor.new("Black"),"Part10",vt(1,1,1))
  395. local snprt11=part(3,sniper,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  396. local snprt12=part(3,sniper,0,0,BrickColor.new("Black"),"Part12",vt(1,1,1))
  397. local snprt13=part(3,sniper,0,0,BrickColor.new("Black"),"Part13",vt(1,1,1))
  398. local snprt14=part(3,sniper,0,0,BrickColor.new("Black"),"Part14",vt(1,1,1))
  399. local snprt15=part(3,sniper,0,0,BrickColor.new("Really black"),"Part15",vt(1,1,1))
  400. local snprt16=part(3,sniper,0,0,BrickColor.new("Black"),"Part16",vt(1,1,1))
  401. local snprt17=part(3,sniper,0,0,BrickColor.new("Black"),"Part17",vt(1,1,1))
  402. local snprt18=part(3,sniper,0,0,BrickColor.new("Black"),"Part18",vt(1,1,1))
  403. local snprt19=part(3,sniper,0,0,BrickColor.new("Black"),"Part19",vt(1,1,1))
  404. local snprt20=part(3,sniper,0,0,BrickColor.new("Black"),"Part20",vt(1,1,1))
  405. local snprt21=part(3,sniper,0,0,BrickColor.new("Black"),"Part21",vt(1,1,1))
  406. local snprt22=part(3,sniper,0,0,BrickColor.new("Black"),"Part22",vt(1,1,1))
  407. local snprt23=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(1,1,1))
  408. local snprt24=part(3,sniper,0,0,BrickColor.new("Medium stone grey"),"Part24",vt(1,1,1))
  409. local snprt25=part(3,sniper,0,0,BrickColor.new("Black"),"Part25",vt(1,1,1))
  410. local snprt26=part(3,sniper,0,0,BrickColor.new("Black"),"Part26",vt(1,1,1))
  411. local snprt27=part(3,sniper,0,0,BrickColor.new("Dark stone grey"),"Part27",vt(1,1,1))
  412. local snprt28=part(3,sniper,0,0,BrickColor.new("Black"),"Part28",vt(1,1,1))
  413. local snprt29=part(3,sniper,0,0,BrickColor.new("Black"),"Part29",vt(1,1,1))
  414.  
  415. snmsh1=mesh("BlockMesh",snprt1,"","",vt(0,0,0),vt(0.2,1,0.2))
  416. snmsh2=mesh("BlockMesh",snprt2,"","",vt(0,0,0),vt(0.201,0.5,0.5))
  417. snmsh3=mesh("BlockMesh",snprt3,"","",vt(0,0,0),vt(0.2,0.3,0.3))
  418. snmsh4=mesh("BlockMesh",snprt4,"","",vt(0,0,0),vt(0.199,0.6,0.7))
  419. snmsh5=mesh("BlockMesh",snprt5,"","",vt(0,0,0),vt(0.198,0.9,0.3))
  420. snmsh6=mesh("BlockMesh",snprt6,"","",vt(0,0,0),vt(0.202,3.5,0.3))
  421. snmsh7=mesh("BlockMesh",snprt7,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  422. snmsh8=mesh("BlockMesh",snprt8,"","",vt(0,0,0),vt(0.1,0.6,0.1))
  423. snmsh9=mesh("BlockMesh",snprt9,"","",vt(0,0,0),vt(0.201,1.7,0.2))
  424. snmsh10=mesh("BlockMesh",snprt10,"","",vt(0,0,0),vt(0.15,0.4,0.4))
  425. snmsh11=mesh("BlockMesh",snprt11,"","",vt(0,0,0),vt(0.201,0.8,0.2))
  426. snmsh12=mesh("CylinderMesh",snprt12,"","",vt(0,0,0),vt(0.2,4,0.2))
  427. snmsh13=mesh("CylinderMesh",snprt13,"","",vt(0,0,0),vt(0.4,0.2,0.4))
  428. snmsh14=mesh("CylinderMesh",snprt14,"","",vt(0,0,0),vt(0.22,0.3,0.22))
  429. snmsh15=mesh("CylinderMesh",snprt15,"","",vt(0,0,0),vt(0.15,0.301,0.15))
  430. snmsh16=mesh("BlockMesh",snprt16,"","",vt(0,0,0),vt(0.1,0.7,0.1))
  431. snmsh17=mesh("BlockMesh",snprt17,"","",vt(0,0,0),vt(0.05,0.2,0.1))
  432. snmsh18=mesh("BlockMesh",snprt18,"","",vt(0,0,0),vt(0.05,0.2,0.1))
  433. snmsh19=mesh("BlockMesh",snprt19,"","",vt(0,0,0),vt(0.05,0.2,0.1))
  434. snmsh20=mesh("BlockMesh",snprt20,"","",vt(0,0,0),vt(0.05,0.2,0.1))
  435. snmsh21=mesh("CylinderMesh",snprt21,"","",vt(0,0,0),vt(0.2,0.099,0.2))
  436. snmsh22=mesh("CylinderMesh",snprt22,"","",vt(0,0,0),vt(0.2,0.099,0.2))
  437. snmsh23=mesh("CylinderMesh",snprt23,"","",vt(0,0,0),vt(0.199,1,0.199))
  438. snmsh24=mesh("CylinderMesh",snprt24,"","",vt(0,0,0),vt(0.15,1.01,0.15))
  439. snmsh25=mesh("BlockMesh",snprt25,"","",vt(0,0,0),vt(0.3,0.5,0.2))
  440. snmsh26=mesh("CylinderMesh",snprt26,"","",vt(0,0,0),vt(0.05,0.3,0.05))
  441. snmsh27=mesh("SpecialMesh",snprt27,"Sphere","",vt(0,0,0),vt(0.1,0.1,0.1))
  442. snmsh28=mesh("BlockMesh",snprt28,"","",vt(0,0,0),vt(0.05,0.3,0.05))
  443. snmsh29=mesh("CylinderMesh",snprt29,"","",vt(0,0,0),vt(0.15,0.4,0.15))
  444.  
  445. local SniperWelds={}
  446. local snwld1=weld(snprt1,snprt1,Torso,euler(0.5,0,0)*cf(0,-4,0))
  447. local snwld2=weld(snprt2,snprt2,snprt1,euler(-0.5,0,0)*cf(0,0.5,-0.2))
  448. local snwld3=weld(snprt3,snprt3,snprt2,euler(-0.785,0,0)*cf(0,-0.1,-0.2))
  449. local snwld4=weld(snprt4,snprt4,snprt3,euler(0.785,0,0)*cf(0,-0.4,0))
  450. local snwld5=weld(snprt5,snprt5,snprt4,cf(0,0,-0.3))
  451. local snwld6=weld(snprt6,snprt6,snprt1,euler(1.07,0,0)*cf(0,-0.5,0.2))
  452. local snwld7=weld(snprt7,snprt7,snprt6,euler(0,0,0)*cf(0,0.2,0.5))
  453. local snwld8=weld(snprt8,snprt8,snprt6,euler(1.57,0,0)*cf(0,-0.1,0.25))
  454. local snwld9=weld(snprt9,snprt9,snprt6,euler(0,0,0)*cf(0,-0.9,0.25))
  455. local snwld10=weld(snprt10,snprt10,snprt9,euler(0,0,0)*cf(0,0.5,0.2))
  456. local snwld11=weld(snprt11,snprt11,snprt6,euler(0,0,0)*cf(0,0.2,-0.2))
  457. local snwld12=weld(snprt12,snprt12,snprt11,euler(0,0,0)*cf(0,-2,0))
  458. local snwld13=weld(snprt13,snprt13,snprt12,euler(0,0,0)*cf(0,-1.8,0))
  459. local snwld14=weld(snprt14,snprt14,snprt12,euler(0,0,0)*cf(0,-2,0))
  460. local snwld15=weld(snprt15,snprt15,snprt14,euler(0,0,0)*cf(0,0,0))
  461. local snwld16=weld(snprt16,snprt16,snprt11,euler(0,0,0)*cf(0,0,-0.1))
  462. local snwld17=weld(snprt17,snprt17,snprt16,euler(1.57,0,0)*cf(0.05,0.2,-0.1))
  463. local snwld18=weld(snprt18,snprt18,snprt16,euler(1.57,0,0)*cf(-0.05,0.2,-0.1))
  464. local snwld19=weld(snprt19,snprt19,snprt16,euler(1.57,0,0)*cf(-0.05,-0.2,-0.1))
  465. local snwld20=weld(snprt20,snprt20,snprt16,euler(1.57,0,0)*cf(0.05,-0.2,-0.1))
  466. local snwld21=weld(snprt21,snprt21,snprt16,euler(0,0,0)*cf(0,0.2,-0.2))
  467. local snwld22=weld(snprt22,snprt22,snprt16,euler(0,0,0)*cf(0,-0.2,-0.2))
  468. local snwld23=weld(snprt23,snprt23,snprt16,euler(0,0,0)*cf(0,0,-0.2))
  469. local snwld24=weld(snprt24,snprt24,snprt23,euler(0,0,0)*cf(0,0,0))
  470. local snwld25=weld(snprt25,snprt25,snprt6,euler(0,0,0)*cf(0,-0.5,0))
  471. local snwld26=weld(snprt26,snprt26,snprt25,cf(0,-0.3,0)*euler(0.5,0.7,1.57))
  472. local snwld27=weld(snprt27,snprt27,snprt26,cf(0,-0.1,0))
  473. local snwld28=weld(snprt28,snprt28,snprt6,euler(1.57-0.5,0,0)*cf(0,0.2,0.2))
  474. local snwld29=weld(snprt29,snprt29,snprt9,euler(0,0.2,1.57)*cf(0,-0.8,0.1))
  475. table.insert(SniperWelds,snwld1)
  476. table.insert(SniperWelds,snwld2)
  477. table.insert(SniperWelds,snwld3)
  478. table.insert(SniperWelds,snwld4)
  479. table.insert(SniperWelds,snwld5)
  480. table.insert(SniperWelds,snwld6)
  481. table.insert(SniperWelds,snwld7)
  482. table.insert(SniperWelds,snwld8)
  483. table.insert(SniperWelds,snwld9)
  484. table.insert(SniperWelds,snwld10)
  485. table.insert(SniperWelds,snwld11)
  486. table.insert(SniperWelds,snwld12)
  487. table.insert(SniperWelds,snwld13)
  488. table.insert(SniperWelds,snwld14)
  489. table.insert(SniperWelds,snwld15)
  490. table.insert(SniperWelds,snwld16)
  491. table.insert(SniperWelds,snwld17)
  492. table.insert(SniperWelds,snwld18)
  493. table.insert(SniperWelds,snwld19)
  494. table.insert(SniperWelds,snwld20)
  495. table.insert(SniperWelds,snwld21)
  496. table.insert(SniperWelds,snwld22)
  497. table.insert(SniperWelds,snwld23)
  498. table.insert(SniperWelds,snwld24)
  499. table.insert(SniperWelds,snwld25)
  500. table.insert(SniperWelds,snwld26)
  501. table.insert(SniperWelds,snwld27)
  502. table.insert(SniperWelds,snwld28)
  503. table.insert(SniperWelds,snwld29)
  504.  
  505. numb=-0.15
  506. numb2=0.1
  507. for i=1,2 do
  508. local snprt30=part(3,sniper,0,0,BrickColor.new("Black"),"Part30",vt(1,1,1))
  509. local snprt31=part(3,sniper,0,0,BrickColor.new("Black"),"Part31",vt(1,1,1))
  510. local snprt32=part(3,sniper,0,0,BrickColor.new("Black"),"Part32",vt(1,1,1))
  511. local snprt33=part(3,sniper,0,0,BrickColor.new("Black"),"Part33",vt(1,1,1))
  512. local snprt34=part(3,sniper,0,0,BrickColor.new("Black"),"Part34",vt(1,1,1))
  513. local snprt35=part(3,sniper,0,0,BrickColor.new("Black"),"Part35",vt(1,1,1))
  514. local snprt36=part(3,sniper,0,0,BrickColor.new("Black"),"Part36",vt(1,1,1))
  515. local snprt37=part(3,sniper,0,0,BrickColor.new("Black"),"Part37",vt(1,1,1))
  516. snmsh30=mesh("CylinderMesh",snprt30,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  517. snmsh31=mesh("CylinderMesh",snprt31,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  518. snmsh32=mesh("CylinderMesh",snprt32,"","",vt(0,0,0),vt(0.15,0.1,0.15))
  519. snmsh33=mesh("CylinderMesh",snprt33,"","",vt(0,0,0),vt(0.125,0.3,0.125))
  520. snmsh34=mesh("CylinderMesh",snprt34,"","",vt(0,0,0),vt(0.15,0.2,0.15))
  521. snmsh35=mesh("CylinderMesh",snprt35,"","",vt(0,0,0),vt(0.08,0.8,0.08))
  522. snmsh36=mesh("CylinderMesh",snprt36,"","",vt(0,0,0),vt(0.15,0.2,0.15))
  523. snmsh37=mesh("CylinderMesh",snprt37,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  524. local snwld30=weld(snprt30,snprt30,snprt29,euler(0,0,0)*cf(0,numb,0))
  525. local snwld31=weld(snprt31,snprt31,snprt30,euler(0,0,1.57+numb2)*cf(0.25,0,0))
  526. local snwld32=weld(snprt32,snprt32,snprt31,cf(0,0.25,0))
  527. local snwld33=weld(snprt33,snprt33,snprt32,cf(0,0.15,0))
  528. local snwld34=weld(snprt34,snprt34,snprt33,cf(0,0.1,0))
  529. local snwld35=weld(snprt35,snprt35,snprt34,cf(0,0.4,0))
  530. local snwld36=weld(snprt36,snprt36,snprt35,cf(0,0.4,0))
  531. local snwld37=weld(snprt37,snprt37,snprt36,cf(0,0.1,0))
  532. table.insert(SniperWelds,snwld30)
  533. table.insert(SniperWelds,snwld31)
  534. table.insert(SniperWelds,snwld32)
  535. table.insert(SniperWelds,snwld33)
  536. table.insert(SniperWelds,snwld34)
  537. table.insert(SniperWelds,snwld35)
  538. table.insert(SniperWelds,snwld36)
  539. table.insert(SniperWelds,snwld37)
  540. numb=numb+0.3
  541. numb2=numb2-0.2
  542. end
  543. if (script.Parent.className ~= "HopperBin") then
  544. Tool = Instance.new("HopperBin")
  545. Tool.Parent = Backpack
  546. Tool.Name = "Techno Gauntlet"
  547. script.Parent = Tool
  548. end
  549. Bin = script.Parent
  550.  
  551. local Bg = it("BodyGyro")
  552. Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  553. Bg.P = 20e+003
  554. Bg.Parent = nil
  555.  
  556. so = function(id,par,vol,pit)
  557. coroutine.resume(coroutine.create(function()
  558. local sou = Instance.new("Sound",par or workspace)
  559. sou.Volume=vol
  560. sou.Pitch=pit or 1
  561. sou.SoundId=id
  562. wait()
  563. sou:play()
  564. wait(6)
  565. sou:Remove()
  566. end))
  567. end
  568.  
  569. function CreateDrone()
  570. local drone=Instance.new("Model")
  571. drone.Parent=modelzorz
  572. drone.Name="Drone"
  573.  
  574. local dprt1=part(3,drone,0,1,BrickColor.new("White"),"DPart1",vt(1,1,1))
  575. dprt1.CanCollide=true
  576. local dprt6=part(3,drone,0,1,BrickColor.new("Bright red"),"DPart6",vt(1,1,1))
  577. local dprt7=part(3,drone,0,1,BrickColor.new("Black"),"DPart7",vt(1,1,1))
  578.  
  579. local dmsh1=mesh("SpecialMesh",dprt1,"Sphere","",vt(0,0,0),vt(1,1,1))
  580. local dmsh6=mesh("CylinderMesh",dprt6,"","",vt(0,0,0),vt(0.5,0.2,0.5))
  581. local dmsh7=mesh("CylinderMesh",dprt7,"","",vt(0,0,0),vt(0.4,0.21,0.4))
  582.  
  583. --local dwld1=weld(dprt1,dprt1,Torso,euler(0,0,0)*cf(0,-5,0))
  584. local dwld6=weld(dprt6,dprt6,dprt1,euler(1.57,0,0)*cf(0,0,0.4))
  585. local dwld7=weld(dprt7,dprt7,dprt6,cf(0,0,0))
  586.  
  587. numb=0
  588. for i=1,4 do
  589. local dprt2=part(3,drone,0,1,BrickColor.new("Medium stone grey"),"DPart2",vt(1,1,1))
  590. local dmsh2=mesh("BlockMesh",dprt2,"","",vt(0,0,0),vt(0.5,0.5,0.8))
  591. local dwld2=weld(dprt2,dprt2,dprt1,cf(0,-0.5,0)*euler(0,0,numb))
  592. numb=numb+1.57
  593. end
  594. numb=0
  595. for i=1,4 do
  596. local dprt3=part(3,drone,0,1,BrickColor.new("Dark stone grey"),"DPart3",vt(1,1,1))
  597. local dmsh3=mesh("BlockMesh",dprt3,"","",vt(0,0,0),vt(0.5,0.5,0.79))
  598. local dwld3=weld(dprt3,dprt3,dprt1,cf(0,-0.3,0)*euler(0,0,0.785+numb))
  599. numb=numb+1.57
  600. end
  601. numb=0
  602. for i=1,4 do
  603. local dprt4=part(3,drone,0,1,BrickColor.new("Dark stone grey"),"DPart4",vt(1,1,1))
  604. local dmsh4=mesh("BlockMesh",dprt4,"","",vt(0,0,0),vt(0.2,0.8,0.2))
  605. local dwld4=weld(dprt4,dprt4,dprt1,cf(0,0.8,0)*euler(0.785,numb,0))
  606. local dprt5=part(3,drone,0,1,BrickColor.new("Bright blue"),"DPart5",vt(1,1,1))
  607. local dmsh5=mesh("SpecialMesh",dprt5,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
  608. local dwld5=weld(dprt5,dprt5,dprt4,cf(0,0.5,0)*euler(0,0,0))
  609. light1=Instance.new("PointLight")
  610. light1.Brightness=.8
  611. light1.Color=Color3.new(0,0,255)
  612. light1.Range=10
  613. light1.Parent=dprt5
  614. numb=numb+1.57
  615. end
  616. return drone,dprt1
  617. end
  618.  
  619. function hideanim()
  620. equipped=false
  621. if Mode=="Drones" then
  622. Mode="Choose"
  623. end
  624. wait(0.1)
  625. cone.Parent=nil
  626. screen1.Parent=nil
  627. screen2.Parent=nil
  628. screen3.Parent=nil
  629. Neck.C0=necko*euler(0,0,0)
  630. wld9.C0=euler(0,0,0)*cf(0,0.05,0)
  631. Bg.Parent=nil
  632. end
  633.  
  634. function equipanim()
  635. equipped=true
  636. if Mode=="Choose" then
  637. for i=0,1,0.1 do
  638. wait()
  639. Neck.C0=necko*euler(0.3*i,0,-0.2*i)
  640. RW.C0=cf(1.5-0.5*i, 0.5-0.2*i, -0.5*i) * euler(1*i,0,-1*i)
  641. RW.C1=cf(0, 0.5, 0) * euler(0,-2.07*i,0)
  642. LW.C0=cf(-1.5+0.3*i, 0.5, -0.3*i) * euler(1.5*i,0,1.2*i)
  643. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  644. end
  645. for i=0,1,0.1 do
  646. wait()
  647. wld9.C0=euler(0,-1.57*i,0)*cf(0,0.05,0)
  648. Neck.C0=necko*euler(0.3+0.1*i,0,-0.2-0.1*i)
  649. RW.C0=cf(1, 0.3, -0.5) * euler(1-0.2*i,0,-1+0.3*i)
  650. RW.C1=cf(0, 0.5, 0) * euler(0,-2.07-0.1*i,0)
  651. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.5-0.2*i,0,1.2-0.5*i)
  652. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  653. end
  654. coroutine.resume(coroutine.create(function()
  655. cone.Parent=modelzorz
  656. cone.Transparency=1
  657. local conewld=weld(cone,cone,prt9,euler(0,0,0)*cf(0,0.2,0))
  658. screen1.Parent=modelzorz
  659. screen1.Transparency=1
  660. local screen1wld=weld(screen1,screen1,cone,euler(0,0.8,0)*cf(0,1,0))
  661. screen2.Parent=modelzorz
  662. screen2.Transparency=1
  663. local screen2wld=weld(screen2,screen2,screen1,cf(0,0,1)*euler(0,0.3,0))
  664. screen3.Parent=modelzorz
  665. screen3.Transparency=1
  666. local screen3wld=weld(screen3,screen3,screen1,cf(0,0,-1)*euler(0,-0.3,0))
  667.  
  668. for i=1,0.5,-0.05 do
  669. wait()
  670. cone.Transparency=i
  671. screen1.Transparency=i
  672. screen2.Transparency=i
  673. screen3.Transparency=i
  674. end
  675. coroutine.resume(coroutine.create(function(Cone,Screen1,Screen2,Screen3)
  676. while Mode=="Choose" do
  677. wait(0.06)
  678. Cone.Transparency=0.5
  679. Screen1.Transparency=0.5
  680. Screen2.Transparency=0.5
  681. Screen3.Transparency=0.5
  682. light1.Brightness=.7
  683. light2.Brightness=.7
  684. light3.Brightness=.7
  685. wait(0.06)
  686. Cone.Transparency=0.6
  687. Screen1.Transparency=0.6
  688. Screen2.Transparency=0.6
  689. Screen3.Transparency=0.6
  690. light1.Brightness=.8
  691. light2.Brightness=.8
  692. light3.Brightness=.8
  693. end
  694. end),cone,screen1,screen2,screen3)
  695. end))
  696. for i=0,1,0.1 do
  697. wait()
  698. wld9.C0=euler(0,-1.57,0)*cf(0,0.05,0)
  699. Neck.C0=necko*euler(0.4-0.7*i,0,-0.3)
  700. RW.C0=cf(1, 0.3, -0.5-0.3*i) * euler(0.8+0.77*i,0,-1+0.3)
  701. RW.C1=cf(0, 0.5, 0) * euler(0,-2.17+0.67*i,0)
  702. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.3+1*i,0,0.7)
  703. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  704. end
  705. Neck.C0=necko*euler(-0.3,0,-0.3)
  706. RW.C0=cf(1, 0.3, -0.8) * euler(1.57,0,-0.7)
  707. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0)
  708. LW.C0=cf(-1.2, 0.5, -0.3) * euler(2.3,0,0.7)
  709. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  710. end
  711. end
  712.  
  713. function Drones()
  714. Mode="Drones"
  715. attack=true
  716. Humanoid.WalkSpeed=0
  717. coroutine.resume(coroutine.create(function()
  718. while Mode=="Drones" do
  719. wait()
  720. if Aiming==false then
  721. DroneTarget=Torso.Position
  722. end
  723. end
  724. end))
  725. coroutine.resume(coroutine.create(function(Cone,Screen1,Screen2,Screen3)
  726. numb=0.5
  727. for i=0,1,0.1 do
  728. wait()
  729. Cone.Transparency=numb
  730. Screen1.Transparency=numb
  731. Screen2.Transparency=numb
  732. Screen3.Transparency=numb
  733. numb=numb+0.1
  734. end
  735. Cone.Parent=nil
  736. Screen1.Parent=nil
  737. Screen2.Parent=nil
  738. Screen3.Parent=nil
  739. end),cone,screen1,screen2,screen3)
  740. for i=0,1,0.1 do
  741. wait()
  742. Neck.C0=necko*euler(-0.3+0.3*i,0,-0.3+0.3*i)
  743. RW.C0=cf(1, 0.3, -0.8) * euler(1.57-0.3*i,0,-0.7-0.6*i)
  744. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+0.5*i,0)
  745. LW.C0=cf(-1.2, 0.5, -0.3) * euler(2.3-0.8*i,0,0.7-0.5*i)
  746. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  747. end
  748. local drone1,droneprt1=CreateDrone()
  749. local dwld1=weld(droneprt1,droneprt1,Torso,euler(0,0,0)*cf(2,0,5))
  750. local drone2,droneprt2=CreateDrone()
  751. local dwld12=weld(droneprt2,droneprt2,Torso,euler(0,0,0)*cf(0,0,5))
  752. local drone3,droneprt3=CreateDrone()
  753. local dwld13=weld(droneprt3,droneprt3,Torso,euler(0,0,0)*cf(-2,0,5))
  754. wait()
  755. dwld1:Remove()
  756. dwld12:Remove()
  757. dwld13:Remove()
  758. local pos=it("BodyPosition",droneprt1)
  759. rand1=math.random(-5,5)
  760. rand2=math.random(-5,5)
  761. pos.position=Torso.Position + vt(rand1,5,rand2)
  762. coroutine.resume(coroutine.create(function(BodyPosition)
  763. while droneprt1.Parent~=nil do
  764. wait(math.random(1,3))
  765. BodyPosition.position=Torso.Position + vt(math.random(-15,15),5,math.random(-15,15))
  766. end
  767. end),pos)
  768. pos.maxForce=vt(7500,7500,7500)
  769. pos.Name="BP"
  770. local bg=it("BodyGyro",droneprt1)
  771. bg.maxTorque=vt(math.huge,math.huge,math.huge)
  772. bg.P=50000
  773. --bg.cframe=cf(droneprt1.Position, Torso.Position)
  774. coroutine.resume(coroutine.create(function(BodyGyro)
  775. while droneprt1.Parent~=nil do
  776. wait()
  777. if Aiming==true then
  778. BodyGyro.cframe=cf(droneprt1.Position, DroneTarget)
  779. end
  780. end
  781. end),bg)
  782. bg.Name="DroneGyro"
  783. local pos=it("BodyPosition",droneprt2)
  784. rand1=math.random(-5,5)
  785. rand2=math.random(-5,5)
  786. pos.position=Torso.Position + vt(rand1,5,rand2)
  787. coroutine.resume(coroutine.create(function(BodyPosition)
  788. while droneprt2.Parent~=nil do
  789. wait(math.random(1,3))
  790. BodyPosition.position=Torso.Position + vt(math.random(-15,15),5,math.random(-15,15))
  791. end
  792. end),pos)
  793. pos.maxForce=vt(7500,7500,7500)
  794. pos.Name="BP"
  795. local bg=it("BodyGyro",droneprt2)
  796. bg.maxTorque=vt(math.huge,math.huge,math.huge)
  797. bg.P=50000
  798. --bg.cframe=cf(droneprt1.Position, Torso.Position)
  799. coroutine.resume(coroutine.create(function(BodyGyro)
  800. while droneprt2.Parent~=nil do
  801. wait()
  802. if Aiming==true then
  803. BodyGyro.cframe=cf(droneprt2.Position, DroneTarget)
  804. end
  805. end
  806. end),bg)
  807. bg.Name="DroneGyro"
  808. local pos=it("BodyPosition",droneprt3)
  809. rand1=math.random(-5,5)
  810. rand2=math.random(-5,5)
  811. pos.position=Torso.Position + vt(rand1,5,rand2)
  812. coroutine.resume(coroutine.create(function(BodyPosition)
  813. while droneprt3.Parent~=nil do
  814. wait(math.random(1,3))
  815. BodyPosition.position=Torso.Position + vt(math.random(-15,15),5,math.random(-15,15))
  816. end
  817. end),pos)
  818. pos.maxForce=vt(7500,7500,7500)
  819. pos.Name="BP"
  820. local bg=it("BodyGyro",droneprt3)
  821. bg.maxTorque=vt(math.huge,math.huge,math.huge)
  822. bg.P=50000
  823. --bg.cframe=cf(droneprt1.Position, Torso.Position)
  824. coroutine.resume(coroutine.create(function(BodyGyro)
  825. while droneprt3.Parent~=nil do
  826. wait()
  827. if Aiming==true then
  828. BodyGyro.cframe=cf(droneprt3.Position, DroneTarget)
  829. end
  830. end
  831. end),bg)
  832. bg.Name="DroneGyro"
  833. droneprt1.Anchored=true
  834. for _,v in pairs(drone1:children()) do
  835. if v.className=="Part" then
  836. v.Transparency=1
  837. coroutine.resume(coroutine.create(function(Part)
  838. wait(1)
  839. Part.Transparency=0
  840. end),v)
  841. end
  842. end
  843. effect=drone1:Clone()
  844. effect.Parent=workspace
  845. print(effect)
  846. for _,v in pairs(effect:children()) do
  847. if v.className=="Part" then
  848. v.Transparency=1
  849. v.Anchored=true
  850. v.CanCollide=false
  851. v.BrickColor=BrickColor.new("Bright blue")
  852. coroutine.resume(coroutine.create(function(Part)
  853. for i=0,1,0.1 do
  854. wait(0)
  855. Part.Transparency=Part.Transparency-0.05
  856. end
  857. wait(0.5)
  858. for i=0,1,0.1 do
  859. wait(0)
  860. Part.Transparency=Part.Transparency+0.05
  861. end
  862. Part.Parent=nil
  863. end),v)
  864. end
  865. end
  866. droneprt2.Anchored=true
  867. for _,v in pairs(drone2:children()) do
  868. if v.className=="Part" then
  869. v.Transparency=1
  870. coroutine.resume(coroutine.create(function(Part)
  871. wait(1)
  872. Part.Transparency=0
  873. end),v)
  874. end
  875. end
  876. effect=drone2:Clone()
  877. effect.Parent=workspace
  878. print(effect)
  879. for _,v in pairs(effect:children()) do
  880. if v.className=="Part" then
  881. v.Transparency=1
  882. v.Anchored=true
  883. v.CanCollide=false
  884. v.BrickColor=BrickColor.new("Bright blue")
  885. coroutine.resume(coroutine.create(function(Part)
  886. for i=0,1,0.1 do
  887. wait(0)
  888. Part.Transparency=Part.Transparency-0.05
  889. end
  890. wait(0.5)
  891. for i=0,1,0.1 do
  892. wait(0)
  893. Part.Transparency=Part.Transparency+0.05
  894. end
  895. Part.Parent=nil
  896. end),v)
  897. end
  898. end
  899. droneprt3.Anchored=true
  900. for _,v in pairs(drone3:children()) do
  901. if v.className=="Part" then
  902. v.Transparency=1
  903. coroutine.resume(coroutine.create(function(Part)
  904. wait(1)
  905. Part.Transparency=0
  906. end),v)
  907. end
  908. end
  909. effect=drone3:Clone()
  910. effect.Parent=workspace
  911. print(effect)
  912. for _,v in pairs(effect:children()) do
  913. if v.className=="Part" then
  914. v.Transparency=1
  915. v.Anchored=true
  916. v.CanCollide=false
  917. v.BrickColor=BrickColor.new("Bright blue")
  918. coroutine.resume(coroutine.create(function(Part)
  919. for i=0,1,0.1 do
  920. wait(0)
  921. Part.Transparency=Part.Transparency-0.05
  922. end
  923. wait(0.5)
  924. for i=0,1,0.1 do
  925. wait(0)
  926. Part.Transparency=Part.Transparency+0.05
  927. end
  928. Part.Parent=nil
  929. end),v)
  930. end
  931. end
  932. wait(2)
  933. droneprt1.Anchored=false
  934. droneprt2.Anchored=false
  935. droneprt3.Anchored=false
  936. Humanoid.WalkSpeed=16
  937. wait()
  938. effect.Parent=nil
  939. for i=0,1,0.1 do
  940. wait()
  941. RW.C0=cf(1+0.5*i, 0.3+0.2*i, -0.8+0.8*i) * euler(1.27-0.77*i,0,-1.3+1.3*i)
  942. RW.C1=cf(0, 0.5, 0) * euler(0,-1+1*i,0)
  943. LW.C0=cf(-1.2-0.3*i, 0.5, -0.3+0.3*i) * euler(1.5-1.5*i,0,0.2-0.4*i)
  944. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  945. end
  946. attack=false
  947. return drone1, drone2, drone3
  948. end
  949.  
  950. function Gun()
  951. attack=true
  952. Mode="Gun"
  953. gwld1.Part1=LeftArm
  954. gwld1.C0=euler(1.57+0.5,0,-1.57)*cf(0,1,0)
  955. coroutine.resume(coroutine.create(function(Cone,Screen1,Screen2,Screen3)
  956. numb=0.5
  957. for i=0,1,0.1 do
  958. wait()
  959. Cone.Transparency=numb
  960. Screen1.Transparency=numb
  961. Screen2.Transparency=numb
  962. Screen3.Transparency=numb
  963. numb=numb+0.1
  964. end
  965. Cone.Parent=nil
  966. Screen1.Parent=nil
  967. Screen2.Parent=nil
  968. Screen3.Parent=nil
  969. end),cone,screen1,screen2,screen3)
  970. for i=0,1,0.1 do
  971. wait()
  972. Neck.C0=necko*euler(-0.3+0.3*i,0,-0.3+0.3*i)
  973. RW.C0=cf(1, 0.3, -0.8) * euler(1.57-0.3*i,0,-0.7-0.6*i)
  974. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+0.5*i,0)
  975. LW.C0=cf(-1.2, 0.5, -0.3) * euler(2.3-0.8*i,0,0.7-0.5*i)
  976. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  977. end
  978. gun.Parent=modelzorz
  979. for e=1,#GunWelds do
  980. GunWelds[e].Parent=modelzorz
  981. end
  982. for _,v in pairs(gun:children()) do
  983. if v.className=="Part" then
  984. v.Transparency=1
  985. end
  986. end
  987. for _,v in pairs(gun:children()) do
  988. if v.className=="Part" then
  989. v.Transparency=1
  990. coroutine.resume(coroutine.create(function(Part)
  991. wait(0.5)
  992. Part.Transparency=0
  993. end),v)
  994. end
  995. end
  996. effect=gun:Clone()
  997. effect.Parent=workspace
  998. print(effect)
  999. for _,v in pairs(effect:children()) do
  1000. if v.className=="Part" then
  1001. v.Transparency=1
  1002. v.Anchored=true
  1003. v.CanCollide=false
  1004. v.BrickColor=BrickColor.new("Bright blue")
  1005. coroutine.resume(coroutine.create(function(Part)
  1006. for i=0,1,0.1 do
  1007. wait(0)
  1008. Part.Transparency=Part.Transparency-0.05
  1009. end
  1010. for i=0,1,0.1 do
  1011. wait(0)
  1012. Part.Transparency=Part.Transparency+0.05
  1013. end
  1014. Part.Parent=nil
  1015. effect.Parent=nil
  1016. end),v)
  1017. end
  1018. end
  1019. wait(0.5)
  1020. gwld1.Part1=LeftArm
  1021. gwld1.C0=euler(1.57+0.5,0,-1.57)*cf(0,1,0)
  1022. for i=0,1,0.1 do
  1023. wait()
  1024. gwld1.C0=euler(1.57+0.5,0,-1.57+1.57*i)*cf(0,1,0)
  1025. RW.C0=cf(1+0.5*i, 0.3+0.2*i, -0.8+0.8*i) * euler(1.27-1.27*i,0,-1.3+1.5*i)
  1026. RW.C1=cf(0, 0.5, 0) * euler(0,-1+1*i,0)
  1027. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.5-1*i,0,0.2+0.4*i)
  1028. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
  1029. end
  1030. attack=false
  1031. end
  1032.  
  1033. function Sword()
  1034. attack=true
  1035. Mode="Sword"
  1036. swld1.Part1=LeftArm
  1037. swld1.C0=euler(0,0,-1.57)*cf(0,1,0)
  1038. swld1.C1=euler(0,0,0)
  1039. coroutine.resume(coroutine.create(function(Cone,Screen1,Screen2,Screen3)
  1040. numb=0.5
  1041. for i=0,1,0.1 do
  1042. wait()
  1043. Cone.Transparency=numb
  1044. Screen1.Transparency=numb
  1045. Screen2.Transparency=numb
  1046. Screen3.Transparency=numb
  1047. numb=numb+0.1
  1048. end
  1049. Cone.Parent=nil
  1050. Screen1.Parent=nil
  1051. Screen2.Parent=nil
  1052. Screen3.Parent=nil
  1053. end),cone,screen1,screen2,screen3)
  1054. for i=0,1,0.1 do
  1055. wait()
  1056. Neck.C0=necko*euler(-0.3+0.3*i,0,-0.3+0.3*i)
  1057. RW.C0=cf(1, 0.3, -0.8) * euler(1.57-0.3*i,0,-0.7-0.6*i)
  1058. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+0.5*i,0)
  1059. LW.C0=cf(-1.2, 0.5, -0.3) * euler(2.3-0.8*i,0,0.7-0.5*i)
  1060. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1061. end
  1062. sword.Parent=modelzorz
  1063. for e=1,#SwordWelds do
  1064. SwordWelds[e].Parent=modelzorz
  1065. end
  1066. for _,v in pairs(sword:children()) do
  1067. if v.className=="Part" and v.Name~="Hitbox" and v.Name~="Mid" then
  1068. v.Transparency=1
  1069. end
  1070. end
  1071. for _,v in pairs(sword:children()) do
  1072. if v.className=="Part" and v.Name~="Hitbox" and v.Name~="Mid" then
  1073. v.Transparency=1
  1074. coroutine.resume(coroutine.create(function(Part)
  1075. wait(0.5)
  1076. Part.Transparency=0
  1077. end),v)
  1078. end
  1079. end
  1080. effect=sword:Clone()
  1081. effect.Parent=workspace
  1082. print(effect)
  1083. for _,v in pairs(effect:children()) do
  1084. if v.className=="Part" and v.Name~="Hitbox" and v.Name~="Mid" then
  1085. v.Transparency=1
  1086. v.Anchored=true
  1087. v.CanCollide=false
  1088. v.BrickColor=BrickColor.new("Bright blue")
  1089. coroutine.resume(coroutine.create(function(Part)
  1090. for i=0,1,0.1 do
  1091. wait(0)
  1092. Part.Transparency=Part.Transparency-0.05
  1093. end
  1094. for i=0,1,0.1 do
  1095. wait(0)
  1096. Part.Transparency=Part.Transparency+0.05
  1097. end
  1098. Part.Parent=nil
  1099. effect.Parent=nil
  1100. end),v)
  1101. end
  1102. end
  1103. wait(0.5)
  1104. for i=0,1,0.1 do
  1105. wait()
  1106. swld1.C0=euler(0,-1.57*i,1.57-3.14*i)*cf(0,1,0)
  1107. swld1.C1=euler(0,1.57*i,0)
  1108. RW.C0=cf(1+0.5*i, 0.3+0.2*i, -0.8+0.8*i) * euler(1.27-1.27*i,0,-1.3+1.5*i)
  1109. RW.C1=cf(0, 0.5, 0) * euler(0,-1+1*i,0)
  1110. LW.C0=cf(-1.2-0.3*i, 0.5, -0.3+0.3*i) * euler(1.5-1.5*i,0,0.2-0.6*i)
  1111. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1112. end
  1113. attack=false
  1114. end
  1115.  
  1116. function Sniper()
  1117. attack=true
  1118. Mode="Sniper"
  1119. snwld1.Part1=LeftArm
  1120. snwld1.C0=euler(0.5,0,0)*cf(0,1.6,-2)
  1121. coroutine.resume(coroutine.create(function(Cone,Screen1,Screen2,Screen3)
  1122. numb=0.5
  1123. for i=0,1,0.1 do
  1124. wait()
  1125. Cone.Transparency=numb
  1126. Screen1.Transparency=numb
  1127. Screen2.Transparency=numb
  1128. Screen3.Transparency=numb
  1129. numb=numb+0.1
  1130. end
  1131. Cone.Parent=nil
  1132. Screen1.Parent=nil
  1133. Screen2.Parent=nil
  1134. Screen3.Parent=nil
  1135. end),cone,screen1,screen2,screen3)
  1136. for i=0,1,0.1 do
  1137. wait()
  1138. Neck.C0=necko*euler(-0.3+0.3*i,0,-0.3+0.3*i)
  1139. RW.C0=cf(1, 0.3, -0.8) * euler(1.57-0.3*i,0,-0.7-0.6*i)
  1140. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5+0.5*i,0)
  1141. LW.C0=cf(-1.2, 0.5, -0.3) * euler(2.3-0.8*i,0,0.7-0.5*i)
  1142. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1143. end
  1144. sniper.Parent=modelzorz
  1145. for e=1,#SniperWelds do
  1146. SniperWelds[e].Parent=modelzorz
  1147. end
  1148. for _,v in pairs(sniper:children()) do
  1149. if v.className=="Part" then
  1150. v.Transparency=1
  1151. end
  1152. end
  1153. for _,v in pairs(sniper:children()) do
  1154. if v.className=="Part" then
  1155. v.Transparency=1
  1156. coroutine.resume(coroutine.create(function(Part)
  1157. wait(0.5)
  1158. Part.Transparency=0
  1159. end),v)
  1160. end
  1161. end
  1162. effect=sniper:Clone()
  1163. effect.Parent=workspace
  1164. print(effect)
  1165. for _,v in pairs(effect:children()) do
  1166. if v.className=="Part" then
  1167. v.Transparency=1
  1168. v.Anchored=true
  1169. v.CanCollide=false
  1170. v.BrickColor=BrickColor.new("Bright blue")
  1171. coroutine.resume(coroutine.create(function(Part)
  1172. for i=0,1,0.1 do
  1173. wait(0)
  1174. Part.Transparency=Part.Transparency-0.05
  1175. end
  1176. for i=0,1,0.1 do
  1177. wait(0)
  1178. Part.Transparency=Part.Transparency+0.05
  1179. end
  1180. Part.Parent=nil
  1181. effect.Parent=nil
  1182. end),v)
  1183. end
  1184. end
  1185. wait(0.5)
  1186. gwld1.Part1=LeftArm
  1187. snwld1.C0=euler(0.5,0,0)*cf(0,1.6,-2)
  1188. snwld1.C1=cf(0,0,0)
  1189. for i=0,1,0.1 do
  1190. wait()
  1191. snwld1.C0=euler(0.5+1.57*i,0,0)*cf(0,1.6-0.6*i,-2+2*i)
  1192. RW.C0=cf(1, 0.3, -0.8+0.3*i) * euler(1.27-0.37*i,0,-1.3+1*i)
  1193. RW.C1=cf(0, 0.5, 0) * euler(0,-1+2.3*i,0)
  1194. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57-0.5*i,0,0.2+0.5*i)
  1195. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1196. end
  1197. attack=false
  1198. end
  1199.  
  1200. function Shoot()
  1201. attack=true
  1202. Humanoid.WalkSpeed=2
  1203. Bg.Parent=Head
  1204. Bg.cframe=Head.CFrame
  1205. for i=0,1,0.2 do
  1206. wait()
  1207. Neck.C0=necko*euler(0,0,0.785*i)
  1208. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1209. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1210. LW.C0=cf(-1.2, 0.5, -0.3) * euler(0.5+1.07*i,0,0.6-1.385*i)
  1211. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  1212. end
  1213. spread=1
  1214. range=50
  1215. rangepower=70
  1216. while hold==true and Bullets~=0 do
  1217. for i=1,5 do
  1218. wait(0.05)
  1219. Bullets=Bullets-1
  1220. so("http://roblox.com/asset/?id=10209257",gprt16,0.5,1+math.random())
  1221. coroutine.resume(coroutine.create(function()
  1222. for z = 1 ,2 do
  1223. coroutine.resume(coroutine.create(function()
  1224. local meshb1 = Instance.new("BlockMesh")
  1225. meshb1.Scale = Vector3.new(1,1,1)
  1226. light = Instance.new("PointLight")
  1227. light.Brightness = .8
  1228. light.Color = Color3.new(100,50,0)
  1229. light.Range = 10
  1230. local shellb1 = Instance.new("Part")
  1231. light.Parent = shellb1
  1232. meshb1.Parent = shellb1
  1233. shellb1.Anchored = true
  1234. shellb1.formFactor = 3
  1235. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  1236. shellb1.CFrame = CFrame.new((gprt16.CFrame * CFrame.new(0,-gprt16.Size.y/2,0)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1237. shellb1.Parent = Character
  1238. shellb1.Transparency = 0
  1239. if math.random(1,2) == 1 then
  1240. shellb1.BrickColor = BrickColor.new("Bright red")
  1241. else
  1242. shellb1.BrickColor = BrickColor.new("Bright orange")
  1243. end
  1244. shellb1.CanCollide = false
  1245. local incre = math.random(0,60)/100
  1246. for i = 0 , 1 , 0.1 do
  1247. wait()
  1248. light.Brightness = light.Brightness - .1
  1249. shellb1.CFrame = shellb1.CFrame + Head.CFrame.lookVector*incre
  1250. shellb1.Transparency = 1*i
  1251. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1252. end
  1253. shellb1.Parent=nil
  1254. end))
  1255. end
  1256. end))
  1257. shoottrail(MMouse.Hit.p,gprt16,5,1,1)
  1258. LW.C1=cf(0, 0.5, 0) * euler(-0.2,0,0)
  1259. wait(0.05)
  1260. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1261. end
  1262. end
  1263. spread=0
  1264. range=500
  1265. rangepower=50
  1266. if Bullets==0 then
  1267. for i=0,1,0.2 do
  1268. wait(0)
  1269. gwld13.C0=cf(0,0,0.3)*euler(0,1.57-1.57*i,0)
  1270. end
  1271. wait(0.2)
  1272. Humanoid.WalkSpeed=16
  1273. Bg.Parent=nil
  1274. for i=0,1,0.1 do
  1275. wait()
  1276. gwld1.C0=euler(1.57+0.5,0,-1.57*i)*cf(0,1,0)
  1277. Neck.C0=necko*euler(0.3*i,0,0.785-0.785*i)
  1278. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1.2*i,0,0.2-0.4*i)
  1279. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1280. LW.C0=cf(-1.2+0.2*i, 0.5, -0.3-0.2*i) * euler(1.57-0.57*i,0,-0.785+0.785*i)
  1281. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1282. end
  1283. for i=0,1,0.1 do
  1284. wait()
  1285. gwld20.C0=cf(0.3*i,-0.8-0.2*i,0)*euler(0,0,1.57*i)
  1286. RW.C0=cf(1, 0.5, -0.5) * euler(1.2-0.3*i,0,-0.2-0.1*i)
  1287. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1288. end
  1289. for i=0,1,0.2 do
  1290. wait()
  1291. Neck.C0=necko*euler(0.3+0.2*i,0,-0.5*i)
  1292. RW.C0=cf(1+0.5*i, 0.5, -0.5+0.5*i) * euler(0.9-1.3*i,0,-0.3)
  1293. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1294. end
  1295. local ammo=Instance.new("Model")
  1296. ammo.Parent=modelzorz
  1297. ammo.Name="Ammo"
  1298. local aprt1=part(3,ammo,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(1,1,1))
  1299. local amsh1=mesh("CylinderMesh",aprt1,"","",vt(0,0,0),vt(0.7,0.2,0.7))
  1300. local awld1=weld(aprt1,aprt1,RightArm,cf(0,1,0))
  1301. numb=0
  1302. for i=1,10 do
  1303. local aprt2=part(3,ammo,0,0,BrickColor.new("Bright yellow"),"Part2",vt(1,1,1))
  1304. local amsh2=mesh("CylinderMesh",aprt2,"","",vt(0,0,0),vt(0.2,0.3,0.2))
  1305. local awld2=weld(aprt2,aprt2,aprt1,cf(0.2,0.1,0)*euler(0,numb,0))
  1306. numb=numb+0.628
  1307. end
  1308. for i=0,1,0.2 do
  1309. wait()
  1310. awld1.C0=euler(1.57,0,0)*cf(0,1+0.1*i,0)
  1311. Neck.C0=necko*euler(0.5-0.2*i,0,-0.5+0.5*i)
  1312. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.4+1.5*i,0,-0.3-0.1*i)
  1313. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1314. end
  1315. ammo.Parent=nil
  1316. for i=0,1,0.2 do
  1317. wait()
  1318. gwld20.C0=cf(0.3-0.3*i,-0.8-0.2+0.2*i,0)*euler(0,0,1.57-1.57*i)
  1319. Neck.C0=necko*euler(0.3-0.1*i,0,-0.2*i)
  1320. RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.1+0.1*i,0,-0.4+0.4*i)
  1321. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1322. end
  1323. for i=0,1,0.1 do
  1324. wait()
  1325. gwld1.C0=euler(1.57+0.5,0,-1.57+1.57*i)*cf(0,1,0)
  1326. gwld13.C0=cf(0,0,0.3)*euler(0,1.57*i,0)
  1327. Neck.C0=necko*euler(0.2-0.2*i,0,-0.2+0.2*i)
  1328. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(1.2-1.2*i,0,0.2*i)
  1329. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1330. LW.C0=cf(-1-0.2*i, 0.5, -0.5+0.2*i) * euler(1-0.5*i,0,0.6*i)
  1331. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
  1332. end
  1333. Bullets=10
  1334. else
  1335. for i=0,1,0.1 do
  1336. wait()
  1337. Neck.C0=necko*euler(0,0,0.785-0.785*i)
  1338. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1339. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1340. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57-1.57*i,0,-0.785+1.385*i)
  1341. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
  1342. end
  1343. Neck.C0=necko
  1344. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1345. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1346. LW.C0=cf(-1.2, 0.5, -0.3) * euler(0.5,0,0.6)
  1347. LW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1348. end
  1349. Bg.Parent=nil
  1350. Humanoid.WalkSpeed=16
  1351. attack=false
  1352. end
  1353.  
  1354. function slash1()
  1355. attack=true
  1356. for i=0,1,0.1 do
  1357. wait()
  1358. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1359. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1360. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4*i,0,-0.4-0.2*i)
  1361. LW.C1=cf(0, 0.5, 0) * euler(0,1*i,0)
  1362. end
  1363. Bg.Parent=Head
  1364. Bg.cframe=Head.CFrame
  1365. con1=sprt16.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  1366. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1)
  1367. for i=0,1,0.2 do
  1368. wait()
  1369. Neck.C0=necko*euler(0,0,0.785*i)
  1370. swld1.C0=euler(0.5*i,-1.57,-1.57)*cf(0,1,0)
  1371. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1372. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1373. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(-0.4+2.4*i,0,-0.6+1.4*i)
  1374. LW.C1=cf(0, 0.5, 0) * euler(0,1,0)
  1375. end
  1376. for i=0,1,0.1 do
  1377. wait()
  1378. --[[Neck.C0=necko*euler(0,0,0.785*i)
  1379. swld1.C0=euler(0.5*i,-1.57,-1.57)*cf(0,1,0)]]
  1380. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1381. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1382. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(2,0,0.8+0.2*i)
  1383. LW.C1=cf(0, 0.5, 0) * euler(0,1,0)
  1384. end
  1385. con1:disconnect()
  1386. wait()
  1387. attack=false
  1388. end
  1389.  
  1390. function slash2()
  1391. attack=true
  1392. CF=Head.CFrame
  1393. con1=sprt16.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  1394. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1.5)
  1395. for i=0,1,0.2 do
  1396. wait()
  1397. swld1.C0=euler(0.5-0.5*i,-1.57,-1.57)*cf(0,1,0)
  1398. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1399. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1400. LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.43*i,0,1-2.57*i)
  1401. LW.C1=cf(0, 0.5, 0) * euler(0,1+.57*i,0)
  1402. Bg.cframe=CF*euler(0,3.14*i,0)
  1403. end
  1404. so("http://roblox.com/asset/?id=10209640",LeftArm,1,1.5)
  1405. for i=0,1,0.2 do
  1406. wait()
  1407. swld1.C0=euler(-0.5*i,-1.57,-1.57)*cf(0,1,0)
  1408. Bg.cframe=CF*euler(0,3.14+3.14*i,0)
  1409. end
  1410. con1:disconnect()
  1411. wait()
  1412. attack=false
  1413. end
  1414.  
  1415. function slash3()
  1416. attack=true
  1417. Bg.Parent=nil
  1418. for i=0,1,0.1 do
  1419. wait()
  1420. Neck.C0=necko*euler(0,0,0.785-0.785*i)
  1421. swld1.C0=euler(-0.5+0.5*i,-1.57,-1.57)*cf(0,1,0)
  1422. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  1423. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1424. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57+.43*i,0,-1.57+1*i)
  1425. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-2.07*i,0)
  1426. end
  1427. con1=sprt16.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  1428. so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.9)
  1429. for i=0,1,0.2 do
  1430. wait()
  1431. Neck.C0=necko*euler(0.3*i,0,-0.2*i)
  1432. swld1.C0=euler(-0.3*i,-1.57,-1.57)*cf(0,1,0)
  1433. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5*i,0,0.2+0.2*i)
  1434. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1435. LW.C0=cf(-1.5+1.5*i, 0.5-0.2*i, -1*i) * euler(2-1.5*i,0,-.57+1.07*i)
  1436. LW.C1=cf(0, 0.5, 0) * euler(0,-.5,0)
  1437. end
  1438. for i=0,1,0.1 do
  1439. wait()
  1440. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5,0,0.4)
  1441. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1442. LW.C0=cf(0, 0.3, -1) * euler(.5-.2*i,0,.5)
  1443. LW.C1=cf(0, 0.5, 0) * euler(0,-.5,0)
  1444. end
  1445. con1:disconnect()
  1446. wait()
  1447. attack=false
  1448. end
  1449.  
  1450. function BowShoot()
  1451. attack=true
  1452. BowAim=true
  1453. HeadNumb=0
  1454. Humanoid.WalkSpeed=2
  1455. coroutine.resume(coroutine.create(function(FenNeck)
  1456. while BowAim==true do
  1457. wait()
  1458. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1459. Bg.cframe = cf(Head.Position,pos4) * euler(0,3.14-HeadNumb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1460. Bg.Parent = Torso
  1461. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1462. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1463. offset=offset/mag
  1464. FenNeck.C1=necko2*euler(-offset,0,0)
  1465. end
  1466. end),Neck)
  1467. for i=0,1,0.1 do
  1468. wait()
  1469. HeadNumb=1.57*i
  1470. swld1.C0=euler(0,-1.57+0.3*i,-1.57)*cf(0,1,0)
  1471. Neck.C0=necko*euler(0,0,HeadNumb)
  1472. RW.C0=cf(1.5-2.5*i, 0.5, -1*i) * euler(1.57*i,0,0.2-1.97*i)
  1473. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1474. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57*i,0,-0.4-0.87*i)
  1475. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1476. end
  1477.  
  1478. local string1=part(3,sword,0,1,BrickColor.new("Bright yellow"),"String1",vt(0.5,1,0.5))
  1479. local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
  1480. local stringwld1=weld(string1,string1,prt17,euler(0,0,0)*cf(0,0,0))
  1481. local string2=part(3,sword,0,1,BrickColor.new("Bright yellow"),"String2",vt(0.5,1,0.5))
  1482. local stringmsh2=mesh("CylinderMesh",string2,"","",vt(0,0,0),vt(0.1,1,0.1))
  1483. local stringwld2=weld(string2,string2,prt19,euler(0,0,0)*cf(0,0,0))
  1484. table.insert(SwordWelds,stringwld1)
  1485. table.insert(SwordWelds,stringwld1)
  1486. coroutine.resume(coroutine.create(function(String1,String2)
  1487. for i=0,1,0.1 do
  1488. wait()
  1489. String1.Transparency=String1.Transparency-0.05
  1490. String2.Transparency=String2.Transparency-0.05
  1491. end
  1492. end),string1,string2)
  1493.  
  1494. local strmdl = "Arrow"
  1495. coroutine.resume(coroutine.create(function()
  1496. arrowdebounce=false
  1497. repeat
  1498. wait(0)
  1499. coroutine.resume(coroutine.create(function()
  1500. if arrowdebounce==false then
  1501. so("http://www.roblox.com/asset/?id=10756118",sprt18,1,1)
  1502. Lightning(sprt17.Position,sprt18.Position,3,0.2,"Bright yellow",0.00001,0.4)
  1503. Lightning(sprt19.Position,sprt18.Position,3,0.2,"Bright yellow",0.00001,0.4)
  1504. arrowdebounce=true
  1505. wait(0.1)
  1506. arrowdebounce=false
  1507. end
  1508. end))
  1509. local top = sprt17.CFrame
  1510. local bottom = sprt19.CFrame
  1511. local oristrpos
  1512. if strmdl == "Bow" then
  1513. oristrpos = CFrame.new((top.p+bottom.p)/2)
  1514. elseif strmdl == "Arrow" then
  1515. oristrpos = sprt18.CFrame
  1516. end
  1517. local mg1 = (top.p - oristrpos.p).magnitude
  1518. local mg2 = (bottom.p - oristrpos.p).magnitude
  1519. stringmsh1.Scale=vt(0.1,mg1,0.1)
  1520. basecf=sprt17.CFrame
  1521. cff=CFrame.new(sprt17.CFrame*angles(1.57,0,0).p,sprt18.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  1522. hit2=string1
  1523. hit=sprt18
  1524. stringwld1.Parent=string1
  1525. stringwld1.Part0=hit2
  1526. stringwld1.Part1=hit
  1527. HitPos=cff.p
  1528. local CJ = CFrame.new(HitPos)
  1529. local C0=cff:inverse() *CJ
  1530. local C1=hit.CFrame:inverse() * CJ
  1531. stringwld1.C0=C0
  1532. stringwld1.C1=C1
  1533.  
  1534. stringmsh2.Scale=vt(0.1,mg2,0.1)
  1535. cff2=CFrame.new(sprt18.CFrame*angles(1.57,0,0).p,sprt19.Position)*angles(math.rad(90),0,0)*cf(0,-mg2/2,0)
  1536. hit3=string2
  1537. hit2=sprt18
  1538. stringwld2.Parent=string2
  1539. stringwld2.Part0=hit3
  1540. stringwld2.Part1=hit2
  1541. HitPos2=cff2.p
  1542. local CJ2 = CFrame.new(HitPos2)
  1543. local C02=cff2:inverse() *CJ
  1544. local C12=hit2.CFrame:inverse() * CJ
  1545. stringwld2.C0=C02
  1546. stringwld2.C1=C12
  1547. until string1.Parent==nil
  1548. end))
  1549. swld18.Part1=RightArm
  1550. swld18.C0=cf(0,1,0)
  1551. local arrow=part(3,sword,0,1,BrickColor.new("Bright yellow"),"Arrow",vt(1,1,1))
  1552. local arrowmsh=mesh("SpecialMesh",arrow,"FileMesh","http://www.roblox.com/asset/?id=15887356",vt(0,0,0),vt(1,1,2))
  1553. arrowmsh.VertexColor=vt(1,1,1)
  1554. local arrowwld=weld(arrow,arrow,sprt18,euler(-1.57,0,0)*cf(0,1,0))
  1555. for i=0,1,0.1 do
  1556. wait()
  1557. arrow.Transparency=arrow.Transparency-0.05
  1558. arrowwld.C0=euler(-1.57,0,0)*cf(0,1,0)*euler(0,0,0.15*i)
  1559. RW.C0=cf(1.5-2.5+2*i, 0.5, -1) * euler(1.57,0,-1.77+0.2*i)
  1560. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1561. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,0,-1.27)
  1562. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1563. end
  1564. while BowAim==true do
  1565. wait(0)
  1566. end
  1567. so("http://www.roblox.com/asset/?id=16211041",prt18,1,1)
  1568. spread=0
  1569. range=500
  1570. rangepower=100
  1571. shoottrail(MMouse.Hit.p,arrow,30,10,2)
  1572. Humanoid.WalkSpeed=0
  1573. arrow.Parent=nil
  1574. swld18.Part0=sprt18
  1575. swld18.Part1=sprt1
  1576. swld18.C0=cf(0,0,-0.8)
  1577. for i=0,1,0.2 do
  1578. wait()
  1579. Neck.C0=necko*euler(-0.2*i,0,HeadNumb)
  1580. RW.C0=cf(1, 0.5, -1) * euler(1.57,0,-1.57)
  1581. RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)
  1582. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,0,-1.27)
  1583. LW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)
  1584. end
  1585. for i=0,1,0.1 do
  1586. wait()
  1587. Neck.C0=necko*euler(-0.2-0.1*i,0,HeadNumb)
  1588. RW.C0=cf(1, 0.5, -1) * euler(1.57,0,-1.57)
  1589. RW.C1=cf(0, 0.5, 0) * euler(-0.4-0.1*i,0,0)
  1590. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,0,-1.27)
  1591. LW.C1=cf(0, 0.5, 0) * euler(-0.4-0.1*i,0,0)
  1592. end
  1593. string1.Parent=nil
  1594. string2.Parent=nil
  1595. BowAim=false
  1596. Humanoid.WalkSpeed=16
  1597. Bg.Parent=nil
  1598. for i=0,1,0.1 do
  1599. wait()
  1600. Neck.C0=necko*euler(-0.3+0.3*i,0,HeadNumb-HeadNumb*i)
  1601. RW.C0=cf(1+0.5*i, 0.5, -1+1*i) * euler(1.57-1.57*i,0,-1.57+1.77*i)
  1602. RW.C1=cf(0, 0.5, 0) * euler(-0.5+0.5*i,0,0)
  1603. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-1.57*i,0,-1.27+1.07*i)
  1604. LW.C1=cf(0, 0.5, 0) * euler(-0.5+0.5*i,0,0)
  1605. end
  1606. spread=0
  1607. range=500
  1608. rangepower=50
  1609. Neck.C1=necko2
  1610. Neck.C0=necko
  1611. attack=false
  1612. end
  1613.  
  1614. function Aim()
  1615. attack=true
  1616. Humanoid.WalkSpeed=5
  1617. Bg.Parent=Torso
  1618. Bg.cframe=Head.CFrame
  1619. CF=Torso.CFrame
  1620. for i=0,1,0.1 do
  1621. wait()
  1622. Bg.cframe=CF*euler(0,0.785*i,0)
  1623. Neck.C0=necko*euler(0,0,-0.785*i)
  1624. Neck.C1=necko2*euler(0,-0.5*i,0)
  1625. RW.C0=cf(1+0.2*i, 0.3, -0.5-0.2*i) * euler(0.9+0.6*i,0,-0.3+0.1*i)
  1626. RW.C1=cf(0, 0.5, 0) * euler(0,1.3+0.27*i,0)
  1627. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.07+0.5*i,0,0.7+0.085*i)
  1628. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1629. end
  1630. attack=false
  1631. end
  1632.  
  1633. function UnAim()
  1634. attack=true
  1635. Humanoid.WalkSpeed=16
  1636. for i=0,1,0.1 do
  1637. wait()
  1638. Bg.cframe=CF*euler(0,0.785-0.785*i,0)
  1639. Neck.C0=necko*euler(0,0,-0.785+0.785*i)
  1640. Neck.C1=necko2*euler(0,-0.5+0.5*i,0)
  1641. RW.C0=cf(1.2-0.2*i, 0.3, -0.7+0.2*i) * euler(1.5-0.6*i,0,-0.2-0.1*i)
  1642. RW.C1=cf(0, 0.5, 0) * euler(0,1.57-0.27*i,0)
  1643. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57-0.5*i,0,0.785-0.085*i)
  1644. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1645. end
  1646. Bg.Parent=nil
  1647. attack=false
  1648. end
  1649.  
  1650. function SniperShoot()
  1651. attack=true
  1652. spread=0
  1653. range=1000
  1654. rangepower=100
  1655. shoottrail(MMouse.Hit.p,snprt15,20,20,0.5)
  1656. coroutine.resume(coroutine.create(function()
  1657. for z = 1 ,4 do
  1658. coroutine.resume(coroutine.create(function()
  1659. local meshb1 = Instance.new("BlockMesh")
  1660. meshb1.Scale = Vector3.new(1,1,1)
  1661. light = Instance.new("PointLight")
  1662. light.Brightness = .8
  1663. light.Color = Color3.new(100,50,0)
  1664. light.Range = 10
  1665. local shellb1 = Instance.new("Part")
  1666. light.Parent = shellb1
  1667. meshb1.Parent = shellb1
  1668. shellb1.Anchored = true
  1669. shellb1.formFactor = 3
  1670. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  1671. shellb1.CFrame = CFrame.new((snprt15.CFrame * CFrame.new(0,-snprt15.Size.y/2,0)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  1672. shellb1.Parent = Character
  1673. shellb1.Transparency = 0
  1674. if math.random(1,2) == 1 then
  1675. shellb1.BrickColor = BrickColor.new("Bright red")
  1676. else
  1677. shellb1.BrickColor = BrickColor.new("Bright orange")
  1678. end
  1679. shellb1.CanCollide = false
  1680. local incre = math.random(0,60)/100
  1681. HCF=Head.CFrame.lookVector
  1682. for i = 0 , 1 , 0.02 do
  1683. wait()
  1684. light.Brightness = light.Brightness - .02
  1685. shellb1.CFrame = shellb1.CFrame + HCF*incre
  1686. shellb1.Transparency = 1*i
  1687. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1688. end
  1689. shellb1.Parent=nil
  1690. end))
  1691. end
  1692. end))
  1693. so("http://roblox.com/asset/?id=10209875",snprt15,1,0.8)
  1694. for i=0,1,0.3 do
  1695. wait()
  1696. Neck.C0=necko*euler(-0.3*i,0,-0.785)
  1697. RW.C0=cf(1.2, 0.3, -0.7) * euler(1.5+0.3*i,0,-0.2)
  1698. RW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1699. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57,0,0.785)
  1700. LW.C1=cf(0, 0.5, 0) * euler(-0.3*i,0,0)
  1701. end
  1702. for i=0,1,0.2 do
  1703. wait()
  1704. Neck.C0=necko*euler(-0.3-0.1*i,0,-0.785)
  1705. RW.C0=cf(1.2, 0.3, -0.7) * euler(1.5+0.3+0.1*i,0,-0.2)
  1706. RW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1707. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57,0,0.785)
  1708. LW.C1=cf(0, 0.5, 0) * euler(-0.3-0.1*i,0,0)
  1709. end
  1710. Humanoid.WalkSpeed=16
  1711. for i=0,1,0.1 do
  1712. wait()
  1713. Neck.C0=necko*euler(-0.4+0.6*i,0,-0.785+0.785*i)
  1714. Neck.C1=necko2*euler(0,-0.5+0.5*i,0)
  1715. RW.C0=cf(1.2, 0.3, -0.7) * euler(1.9-0.6*i,0,-0.2-0.4*i)
  1716. RW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1717. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57,0,0.785-0.185*i)
  1718. LW.C1=cf(0, 0.5, 0) * euler(-0.4+0.8*i,0,0)
  1719. end
  1720. so("http://roblox.com/asset/?id=10209881",snprt15,1,1)
  1721. local ammo=part(3,workspace,0,0,BrickColor.new("Bright yellow"),"Ammo",vt(1,1,1))
  1722. ammo.CanCollide=true
  1723. ammomsh=mesh("CylinderMesh",ammo,"","",vt(0,0,0),vt(0.15,0.2,0.15))
  1724. local cfrf = snprt25.CFrame * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  1725. local cfr = cfrf + cfrf.lookVector * -0.5
  1726. ammo.CFrame = cfr
  1727. ammo.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1728. ammo.Velocity = cfr.lookVector * 20
  1729. coroutine.resume(coroutine.create(function(Part)
  1730. wait(10)
  1731. Part.Parent=nil
  1732. end),ammo)
  1733. for i=0,1,0.2 do
  1734. wait()
  1735. snwld26.C1=euler(0,0,1*i)
  1736. RW.C0=cf(1.2, 0.3, -0.7-0.4*i) * euler(1.3,0,-0.6+0.3*i)
  1737. RW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1738. end
  1739. for i=0,1,0.2 do
  1740. wait()
  1741. snwld26.C1=euler(0,0,1-1*i)
  1742. RW.C0=cf(1.2, 0.3, -0.7-0.4+0.4*i) * euler(1.3,0,-0.6+0.3-0.3*i)
  1743. RW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1744. end
  1745. Humanoid.WalkSpeed=5
  1746. for i=0,1,0.1 do
  1747. wait()
  1748. Neck.C0=necko*euler(0.2-0.2*i,0,-0.785*i)
  1749. Neck.C1=necko2*euler(0,-0.5*i,0)
  1750. RW.C0=cf(1.2, 0.3, -0.7) * euler(1.3+0.2*i,0,-0.6+0.4*i)
  1751. RW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1752. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.57,0,0.6+0.185*i)
  1753. LW.C1=cf(0, 0.5, 0) * euler(0.4-0.4*i,0,0)
  1754. end
  1755. spread=0
  1756. range=500
  1757. rangepower=50
  1758. attack=false
  1759. end
  1760.  
  1761. function RemoveDrones()
  1762. attack=true
  1763. for i=0,1,0.1 do
  1764. wait()
  1765. Neck.C0=necko*euler(-0.5*i,0,0)
  1766. RW.C0=cf(1.5, 0.5, 0) * euler(0.5+2.64*i,0,0)
  1767. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1768. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1769. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1770. end
  1771. for _,v in pairs(modelzorz:children()) do
  1772. if v.Name=="Drone" then
  1773. print("FoundDrone")
  1774. for _,s in pairs(v:children()) do
  1775. if s.className=="Part" then
  1776. s.Anchored=true
  1777. coroutine.resume(coroutine.create(function(Part,Model)
  1778. for i=0,1,0.1 do
  1779. wait(0)
  1780. Part.Transparency=Part.Transparency+0.1
  1781. end
  1782. wait()
  1783. Model.Parent=nil
  1784. end),s,v)
  1785. end
  1786. end
  1787. end
  1788. end
  1789. wait(1)
  1790. for i=0,1,0.1 do
  1791. wait()
  1792. Neck.C0=necko*euler(-0.5+0.5*i,0,0)
  1793. RW.C0=cf(1.5, 0.5, 0) * euler(3.14-3.14*i,0,0)
  1794. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1795. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2+0.2*i)
  1796. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1797. end
  1798. attack=false
  1799. end
  1800.  
  1801. function RemoveDrones2()
  1802. attack=true
  1803. for i=0,1,0.1 do
  1804. wait()
  1805. Neck.C0=necko*euler(-0.3-0.3*i,0,-0.3+0.3*i)
  1806. RW.C0=cf(1, 0.3, -0.8) * euler(1.57-0.4*i,0,-0.7)
  1807. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0)
  1808. LW.C0=cf(-1.2-0.3*i, 0.5, -0.3+0.3*i) * euler(2.3+0.84*i,0,0.7-0.7*i)
  1809. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1810. end
  1811. for _,v in pairs(modelzorz:children()) do
  1812. if v.Name=="Drone" then
  1813. print("FoundDrone")
  1814. for _,s in pairs(v:children()) do
  1815. if s.className=="Part" then
  1816. s.Anchored=true
  1817. coroutine.resume(coroutine.create(function(Part,Model)
  1818. for i=0,1,0.1 do
  1819. wait(0)
  1820. Part.Transparency=Part.Transparency+0.1
  1821. end
  1822. wait()
  1823. Model.Parent=nil
  1824. end),s,v)
  1825. end
  1826. end
  1827. end
  1828. end
  1829. wait(1)
  1830. for i=0,1,0.1 do
  1831. wait()
  1832. Neck.C0=necko*euler(-0.6+0.3*i,0,-0.3*i)
  1833. RW.C0=cf(1, 0.3, -0.8) * euler(1.17+0.4*i,0,-0.7)
  1834. RW.C1=cf(0, 0.5, 0) * euler(0,-1.5,0)
  1835. LW.C0=cf(-1.5+0.3*i, 0.5, -0.3*i) * euler(3.14-0.84*i,0,0.7*i)
  1836. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1837. end
  1838. attack=false
  1839. end
  1840.  
  1841. function RemoveGun()
  1842. attack=true
  1843. for i=0,1,0.1 do
  1844. wait()
  1845. RW.C0=cf(1.5-0.5*i, 0.5-0.2*i, -0.8*i) * euler(1.27*i,0,0.2-1.5*i)
  1846. RW.C1=cf(0, 0.5, 0) * euler(0,-1*i,0)
  1847. LW.C0=cf(-1.2-0.3*i, 0.5, -0.3+0.2*i) * euler(0.5+1.07*i,0,0.6-0.6*i)
  1848. LW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1849. end
  1850. for _,s in pairs(gun:children()) do
  1851. if s.className=="Part" then
  1852. coroutine.resume(coroutine.create(function(Part,Model)
  1853. for i=0,1,0.1 do
  1854. wait(0)
  1855. Part.Transparency=Part.Transparency+0.1
  1856. end
  1857. wait()
  1858. Model.Parent=nil
  1859. end),s,gun)
  1860. end
  1861. end
  1862. wait(0.7)
  1863. for i=0,1,0.1 do
  1864. wait()
  1865. RW.C0=cf(1+0.5*i, 0.3+0.2*i, -0.8+0.8*i) * euler(1.27-1.27*i,0,-1.3+1.3*i)
  1866. RW.C1=cf(0, 0.5, 0) * euler(0,-1+1*i,0)
  1867. LW.C0=cf(-1.5, 0.5, -0.1+0.1*i) * euler(1.57-1.57*i,0,0)
  1868. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  1869. end
  1870. attack=false
  1871. end
  1872.  
  1873. function RemoveSword()
  1874. attack=true
  1875. for i=0,1,0.1 do
  1876. wait()
  1877. RW.C0=cf(1.5-0.5*i, 0.5-0.2*i, -0.8*i) * euler(1.27*i,0,0.2-1.5*i)
  1878. RW.C1=cf(0, 0.5, 0) * euler(0,-1*i,0)
  1879. LW.C0=cf(-1.5, 0.5, -0.1*i) * euler(1.57*i,0,-0.4+0.4*i)
  1880. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
  1881. end
  1882. for _,s in pairs(sword:children()) do
  1883. if s.className=="Part" then
  1884. coroutine.resume(coroutine.create(function(Part,Model)
  1885. for i=0,1,0.1 do
  1886. wait(0)
  1887. Part.Transparency=Part.Transparency+0.1
  1888. end
  1889. wait()
  1890. Model.Parent=nil
  1891. end),s,sword)
  1892. end
  1893. end
  1894. wait(0.7)
  1895. for i=0,1,0.1 do
  1896. wait()
  1897. RW.C0=cf(1+0.5*i, 0.3+0.2*i, -0.8+0.8*i) * euler(1.27-1.27*i,0,-1.3+1.3*i)
  1898. RW.C1=cf(0, 0.5, 0) * euler(0,-1+1*i,0)
  1899. LW.C0=cf(-1.5, 0.5, -0.1+0.1*i) * euler(1.57-1.57*i,0,0)
  1900. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  1901. end
  1902. attack=false
  1903. end
  1904.  
  1905. function RemoveSniper()
  1906. attack=true
  1907. for i=0,1,0.1 do
  1908. wait()
  1909. Neck.C0=necko*euler(0.4*i,0,0)
  1910. snwld1.C0=euler(2.07+0.3*i,0,0)*cf(0,1,0)
  1911. RW.C0=cf(1, 0.3, -0.5-0.3*i) * euler(0.9+0.37*i,0,-0.3-1*i)
  1912. RW.C1=cf(0, 0.5, 0) * euler(0,1.3-1*i,0)
  1913. LW.C0=cf(-1.2, 0.5, -0.3) * euler(1.07,0,0.7-0.2*i)
  1914. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1915. end
  1916. for _,s in pairs(sniper:children()) do
  1917. if s.className=="Part" then
  1918. coroutine.resume(coroutine.create(function(Part,Model)
  1919. for i=0,1,0.1 do
  1920. wait(0)
  1921. Part.Transparency=Part.Transparency+0.1
  1922. end
  1923. wait()
  1924. Model.Parent=nil
  1925. end),s,sniper)
  1926. end
  1927. end
  1928. wait(0.7)
  1929. for i=0,1,0.1 do
  1930. wait()
  1931. Neck.C0=necko*euler(0.4-0.4*i,0,0)
  1932. RW.C0=cf(1+0.5*i, 0.3, -0.8+0.8*i) * euler(1.27-1.27*i,0,-1.3+1.3*i)
  1933. RW.C1=cf(0, 0.5, 0) * euler(0,0.3-0.3*i,0)
  1934. LW.C0=cf(-1.2-0.3*i, 0.5, -0.3+0.3*i) * euler(1.07-1.07*i,0,0.5-0.5*i)
  1935. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1936. end
  1937. attack=false
  1938. end
  1939.  
  1940. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1941. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1942. end
  1943.  
  1944. function Lightning(p0,p1,tym,ofs,col,th,tra)
  1945. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1946. for i=1,tym do
  1947. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  1948. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1949. light1=Instance.new("PointLight")
  1950. light1.Brightness=.8
  1951. light1.Color=Color3.new(.2,255,.2)
  1952. light1.Range=8
  1953. light1.Parent=li
  1954. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1955. if tym == i then
  1956. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1957. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1958. else
  1959. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1960. end
  1961. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,.2)
  1962. end
  1963. end
  1964.  
  1965. spread=0
  1966. range=500
  1967. rangepower=50
  1968. function shoottrail(ShootPosition,baseprt,Damage,Knockback,Size)
  1969. coroutine.resume(coroutine.create(function()
  1970. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-ShootPosition).magnitude/100
  1971. local dir = CFrame.new((baseprt.Position+ShootPosition)/2,ShootPosition+spreadvector)
  1972. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,modelzorz)
  1973. local rangepos = range
  1974. local function drawtrail(From,To)
  1975. local effectsmsh = Instance.new("CylinderMesh")
  1976. effectsmsh.Scale = Vector3.new(1,1,1)
  1977. effectsmsh.Name = "Mesh"
  1978. local effectsg = Instance.new("Part")
  1979. effectsg.formFactor = 3
  1980. effectsg.CanCollide = false
  1981. effectsg.Name = "Eff"
  1982. effectsg.Locked = true
  1983. effectsg.Anchored = true
  1984. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1985. effectsg.Parent = modelzorz
  1986. effectsmsh.Parent = effectsg
  1987. effectsg.BrickColor = BrickColor.new("Bright yellow")
  1988. effectsg.Reflectance = 0.4
  1989. local LP = From
  1990. local point1 = To
  1991. local mg = (LP - point1).magnitude
  1992. effectsmsh.Scale = Vector3.new(2,mg*5,2)
  1993. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1994. coroutine.resume(coroutine.create(function()
  1995. for i = 0 , 1 , 0.1 do
  1996. wait()
  1997. effectsg.Transparency = 1*i
  1998. effectsmsh.Scale = Vector3.new(Size-Size*i,mg*5,Size-Size*i)
  1999. end
  2000. effectsg.Parent = nil
  2001. end))
  2002. end
  2003. local newpos = baseprt.Position
  2004. local inc = rangepower
  2005. repeat
  2006. wait() wait()
  2007. rangepos = rangepos - 10
  2008. dir = dir
  2009. if Mode~="Sniper" then
  2010. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  2011. end
  2012. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  2013. drawtrail(newpos,pos)
  2014. newpos = newpos + (dir.lookVector * inc)
  2015. if inc >= 20 then
  2016. inc = inc - 10
  2017. end
  2018. if hit ~= nil then
  2019. rangepos = 0
  2020. end
  2021. until rangepos <= 0
  2022. if hit ~= nil then
  2023. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  2024. critical=false
  2025. if SnipAim==true then
  2026. if hit.Name=="Head" then
  2027. coroutine.resume(coroutine.create(function(HeadPart)
  2028. for i=0,0.5,0.1 do
  2029. wait()
  2030. HeadPart.Velocity=vt(0,60,0)
  2031. end
  2032. end),hit)
  2033. print("CRITICAL")
  2034. critical=true
  2035. p=it("Part")
  2036. p.Parent=workspace
  2037. p.CanCollide=false
  2038. p.Transparency=1
  2039. p.CFrame=hit.CFrame
  2040. p.Anchored=true
  2041. local GUI = it("BillboardGui")
  2042. GUI.Adornee = p
  2043. GUI.Parent = p
  2044. GUI.Active = true
  2045. GUI.Enabled = true
  2046. GUI.Size = UDim2.new(1, 0, 1, 0)
  2047. GUI.StudsOffset = vt(0, 4, 0)
  2048. local Chat = it("TextLabel")
  2049. Chat.Parent = GUI
  2050. Chat.FontSize = "Size12"
  2051. Chat.Position = UDim2.new(0.599999964, 0, 0, 0)
  2052. Chat.Visible = true
  2053. Chat.Text = "Critical!"
  2054. coroutine.resume(coroutine.create(function(Part)
  2055. for i=0,4,0.1 do
  2056. wait()
  2057. Part.CFrame=Part.CFrame*cf(0,0.05,0)
  2058. end
  2059. Part.Parent=nil
  2060. end),p)
  2061. for i=0,7 do
  2062. Blood=it("Part")
  2063. Blood.Name="Blood"
  2064. Blood.TopSurface="Smooth"
  2065. Blood.BottomSurface="Smooth"
  2066. Blood.formFactor="Plate"
  2067. Blood.BrickColor=BrickColor:Red()
  2068. Blood.Size=vt(1,.4,1)
  2069. Blood.Velocity=vt(math.random(-4,4),math.random(5,25),math.random(-4,4))
  2070. Blood.CFrame=hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2071. Blood.Parent=workspace
  2072. Blood.Velocity=vt(math.random(-20,20),math.random(20,50),math.random(-20,20))
  2073. Blood.CanCollide=false
  2074. coroutine.resume(coroutine.create(function(blod)
  2075. wait(0.1)
  2076. blod.CanCollide=true
  2077. wait(5)
  2078. blod.Parent = nil
  2079. end),Blood)
  2080. end
  2081. end
  2082. hum = hit.Parent.Humanoid
  2083. tTorso=hit.Parent.Torso
  2084. end
  2085. if critical==true then
  2086. CRIT=true
  2087. Damagefunc1(hit,Damage*math.random(3,8),Knockback)
  2088. else
  2089. Damagefunc1(hit,Damage,Knockback)
  2090. end
  2091. attackdebounce=false
  2092. --ADmg(hum,hit)
  2093. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2094. if SnipAim==true then
  2095. if hit.Parent.className == "Hat" then
  2096. hatCF=hit.CFrame
  2097. coroutine.resume(coroutine.create(function(hat)
  2098. hat.Handle:BreakJoints()
  2099. hat.Handle.CFrame=hatCF
  2100. hat.Handle.CanCollide=true
  2101. hat.Handle.Velocity=vt(math.random(-10,10),40,math.random(-10,10))
  2102. wait(3)
  2103. hatCF=hat.Handle.CFrame
  2104. hat.Parent=workspace
  2105. for i=0,4,0.2 do
  2106. wait()
  2107. hat.Handle.CFrame=hatCF
  2108. hat.Handle.Velocity=vt(math.random(-5,5),20,math.random(-5,5))
  2109. end
  2110. end),hit.Parent)
  2111. --[[hit:BreakJoints()
  2112. hit.CFrame=CF
  2113. hit.Velocity = vt(math.random(-5,5),20,math.random(-5,5)) ]]
  2114. print("BREAKHAT")
  2115. end
  2116. end
  2117. hum = hit.Parent.Parent.Humanoid
  2118. tTorso=hit.Parent.Parent.Torso
  2119. Damagefunc1(hit.Parent.Parent.Torso,Damage,Knockback)
  2120. attackdebounce=false
  2121. --ADmg(hum,hit)
  2122. end
  2123. end
  2124. end))
  2125. end
  2126.  
  2127. function findNearestTorso(pos)
  2128. local list = game:service("Workspace"):children()
  2129. local torso = nil
  2130. local dist = 50
  2131. local temp = nil
  2132. local human = nil
  2133. local temp2 = nil
  2134. for x = 1, #list do
  2135. temp2 = list[x]
  2136. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then
  2137. temp = temp2:findFirstChild("Torso")
  2138. human = temp2:findFirstChild("Humanoid")
  2139. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2140. if (temp.Position - pos).magnitude < dist then
  2141. torso = temp
  2142. dist = (temp.Position - pos).magnitude
  2143. end
  2144. end
  2145. end
  2146. end
  2147. return torso
  2148. end
  2149.  
  2150. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  2151. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2152. prt.Anchored=true
  2153. prt.CFrame=cframe*cf(x2,y2,z2)
  2154. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2155. coroutine.resume(coroutine.create(function()
  2156. for i=0,1,0.1 do
  2157. wait()
  2158. prt.CFrame=prt.CFrame
  2159. prt.Transparency=i
  2160. msh.Scale=msh.Scale+vt(x3,y3,z3)
  2161. end
  2162. prt.Parent=nil
  2163. end))
  2164. end
  2165.  
  2166. Damagefunc1=function(hit,Damage,Knockback)
  2167. if hit.Parent==nil then
  2168. return
  2169. end
  2170. CPlayer=Bin
  2171. h=hit.Parent:FindFirstChild("Humanoid")
  2172. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2173. if attackdebounce == false then
  2174. attackdebounce = true
  2175. coroutine.resume(coroutine.create(function()
  2176. wait(0.2)
  2177. attackdebounce = false
  2178. end))
  2179. Damage=Damage
  2180. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2181. return
  2182. end]]
  2183. -- hs(hit,1.2)
  2184. c=Instance.new("ObjectValue")
  2185. c.Name="creator"
  2186. c.Value=game:service("Players").LocalPlayer
  2187. c.Parent=h
  2188. game:GetService("Debris"):AddItem(c,.5)
  2189. Damage=Damage+math.random(0,10)
  2190. -- h:TakeDamage(Damage)
  2191. blocked=false
  2192. block=hit.Parent:findFirstChild("Block")
  2193. if block~=nil then
  2194. print("herp")
  2195. if block.Value>0 then
  2196. blocked=true
  2197. block.Value=block.Value-1
  2198. print(block.Value)
  2199. end
  2200. end
  2201. if blocked==false then
  2202. -- h:TakeDamage(Damage)
  2203. h.Health=h.Health-Damage
  2204. showDamage(hit.Parent,Damage,.5)
  2205. else
  2206. h:TakeDamage(1)
  2207. showDamage(hit.Parent,1,.5)
  2208. end
  2209. vp=Instance.new("BodyVelocity")
  2210. vp.P=500
  2211. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2212. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2213. vp.velocity=Head.CFrame.lookVector*Knockback+Head.Velocity/1.05
  2214. if Knockback>0 then
  2215. vp.Parent=hit.Parent.Torso
  2216. end
  2217. game:GetService("Debris"):AddItem(vp,.25)
  2218. c=Instance.new("ObjectValue")
  2219. c.Name="creator"
  2220. c.Value=Player
  2221. c.Parent=h
  2222. game:GetService("Debris"):AddItem(c,.5)
  2223. CRIT=false
  2224. hitDeb=true
  2225. AttackPos=6
  2226. end
  2227. end
  2228. end
  2229.  
  2230. showDamage=function(Char,Dealt,du)
  2231. m=Instance.new("Model")
  2232. m.Name=tostring(Dealt)
  2233. h=Instance.new("Humanoid")
  2234. h.Health=0
  2235. h.MaxHealth=0
  2236. h.Parent=m
  2237. c=Instance.new("Part")
  2238. c.Transparency=0
  2239. c.BrickColor=BrickColor:Red()
  2240. if CRIT==true then
  2241. c.BrickColor=BrickColor.new("Really red")
  2242. end
  2243. c.Name="Head"
  2244. c.TopSurface=0
  2245. c.BottomSurface=0
  2246. c.formFactor="Plate"
  2247. c.Size=Vector3.new(1,.4,1)
  2248. ms=Instance.new("CylinderMesh")
  2249. ms.Scale=Vector3.new(.8,.8,.8)
  2250. if CRIT==true then
  2251. ms.Scale=Vector3.new(1,1.25,1)
  2252. end
  2253. ms.Parent=c
  2254. c.Reflectance=0
  2255. Instance.new("BodyGyro").Parent=c
  2256. c.Parent=m
  2257. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2258. f=Instance.new("BodyPosition")
  2259. f.P=2000
  2260. f.D=100
  2261. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2262. f.position=c.Position+Vector3.new(0,3,0)
  2263. f.Parent=c
  2264. game:GetService("Debris"):AddItem(m,.5+du)
  2265. c.CanCollide=false
  2266. m.Parent=workspace
  2267. c.CanCollide=false
  2268. end
  2269.  
  2270. function ob1d(mouse)
  2271. if attack == true then return end
  2272. hold=true
  2273. if Mode=="Drones" and Aiming==true then
  2274. print("Attack drones")
  2275. for i=0,1,0.1 do
  2276. wait()
  2277. RW.C0=cf(1.5, 0.5, 0) * euler(0.5+1.07*i,0,0)
  2278. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2279. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  2280. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2281. end
  2282. Drone1debounce=false
  2283. Drone2debounce=false
  2284. Drone3debounce=false
  2285. for _,v in pairs(modelzorz:children()) do
  2286. if v.Name=="Drone" then
  2287. coroutine.resume(coroutine.create(function(Drone)
  2288. while hold==true do
  2289. so("http://roblox.com/asset/?id=10209257",Drone.DPart1,0.5,1.5)
  2290. shoottrail(MMouse.Hit.p,Drone.DPart1,5,0,1)
  2291. wait(math.random(0,2)+math.random())
  2292. end
  2293. end),v)
  2294. end
  2295. end
  2296. while hold==true do
  2297. wait()
  2298. end
  2299. for i=0,1,0.1 do
  2300. wait()
  2301. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-1.07*i,0,0)
  2302. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2303. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  2304. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2305. end
  2306. elseif Aiming==false then
  2307. for _,v in pairs(modelzorz:children()) do
  2308. if v.Name=="Drone" and v:findFirstChild("CanShoot")~=nil then
  2309. coroutine.resume(coroutine.create(function(Drone)
  2310. while hold==true do
  2311. if v.CanShoot.Value==true then
  2312. print("Shoot")
  2313. so("http://roblox.com/asset/?id=10209257",Drone.DPart1,0.5,1.5)
  2314. shoottrail(Drone.DPart6.Position,Drone.DPart1,5,0,1)
  2315. elseif v.CanShoot.Value==false then
  2316. print("NoShoot")
  2317. end
  2318. wait(math.random(0,2)+math.random())
  2319. end
  2320. end),v)
  2321. end
  2322. end
  2323. end
  2324. if Mode=="Gun" then
  2325. print("Shoot")
  2326. Shoot()
  2327. end
  2328. if Mode=="Sword" then
  2329. slash1()
  2330. if hold==true then
  2331. slash2()
  2332. end
  2333. if hold==true then
  2334. slash3()
  2335. end
  2336. wait(0.5)
  2337. Bg.Parent=nil
  2338. Neck.C0=necko*euler(0,0,0)
  2339. swld1.C0=euler(0,-1.57,-1.57)*cf(0,1,0)
  2340. swld1.C1=euler(0,1.57,0)
  2341. RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.2)
  2342. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2343. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.4)
  2344. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2345. end
  2346. if Mode=="Sniper" and SnipAim==true then
  2347. SniperShoot()
  2348. end
  2349. end
  2350.  
  2351. function ob1u(mouse)
  2352. hold = false
  2353. end
  2354.  
  2355. buttonhold = false
  2356.  
  2357. eul=0
  2358. function key(key)
  2359. if attack == true then return end
  2360. if Mode=="Drones" then
  2361. if key=="z" then
  2362. RemoveDrones()
  2363. Mode="Choose"
  2364. equipanim()
  2365. return
  2366. end
  2367. if key=="f" then
  2368. if Aiming==false then
  2369. attack=true
  2370. for i=0,1,0.1 do
  2371. wait()
  2372. RW.C0=cf(1.5, 0.5, 0) * euler(0.5+2.64*i,0,0)
  2373. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2374. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  2375. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2376. end
  2377. for i=0,1,0.1 do
  2378. wait()
  2379. RW.C0=cf(1.5, 0.5, 0) * euler(3.14-1.57*i,0,0)
  2380. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2381. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  2382. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2383. end
  2384. Aiming=true
  2385. coroutine.resume(coroutine.create(function()
  2386. while Aiming==true do
  2387. wait()
  2388. DroneTarget=MMouse.Hit.p
  2389. end
  2390. end))
  2391. wait(0.5)
  2392. for i=0,1,0.1 do
  2393. wait()
  2394. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-1.07*i,0,0)
  2395. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2396. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  2397. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2398. end
  2399. attack=false
  2400. elseif Aiming==true then
  2401. attack=true
  2402. for i=0,1,0.1 do
  2403. wait()
  2404. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(.5+1.07*i,0,-1*i)
  2405. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2406. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.57*i,0,-0.2+1.2*i)
  2407. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2408. end
  2409. Aiming=false
  2410. for _,v in pairs(modelzorz:children()) do
  2411. if v.Name=="Drone" then
  2412. Valuee=Instance.new("BoolValue")
  2413. Valuee.Parent=v
  2414. Valuee.Name="CanShoot"
  2415. print("Found Drone")
  2416. coroutine.resume(coroutine.create(function(DDrone,Val,Gyro)
  2417. --coroutine.resume(coroutine.create(function()
  2418. while Aiming==false do
  2419. wait()
  2420. local target = findNearestTorso(DDrone.DPart1.Position)
  2421. if target~=nil then
  2422. Val.Value=true
  2423. Gyro.cframe=cf(DDrone.DPart1.Position, target.Position)
  2424. else
  2425. Val.Value=false
  2426. Gyro.cframe=cf(DDrone.DPart1.Position, Torso.Position)
  2427. end
  2428. end
  2429. Val.Parent=nil
  2430. end),v,Valuee,v.DPart1.DroneGyro)
  2431. end
  2432. end
  2433. wait(0.5)
  2434. for i=0,1,0.1 do
  2435. wait()
  2436. RW.C0=cf(1+.5*i, 0.5, -0.5+0.5*i) * euler(1.57-1.07*i,0,-1+1*i)
  2437. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2438. LW.C0=cf(-1-.5*i, 0.5, -0.5+0.5*i) * euler(1.57-1.57*i,0,1-1.2*i)
  2439. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  2440. end
  2441. attack=false
  2442. end
  2443. end
  2444. end
  2445. if Mode=="Gun" then
  2446. if key=="x" then
  2447. RemoveGun()
  2448. Mode="Choose"
  2449. equipanim()
  2450. return
  2451. end
  2452. end
  2453. if Mode=="Sword" then
  2454. if key=="c" then
  2455. RemoveSword()
  2456. Mode="Choose"
  2457. equipanim()
  2458. return
  2459. end
  2460. if key=="f" then
  2461. BowShoot()
  2462. end
  2463. end
  2464. if Mode=="Sniper" then
  2465. if key=="v" then
  2466. if SnipAim==true then
  2467. SnipAim=false
  2468. UnAim()
  2469. end
  2470. RemoveSniper()
  2471. Mode="Choose"
  2472. equipanim()
  2473. return
  2474. end
  2475. if key=="f" then
  2476. if SnipAim==false then
  2477. SnipAim=true
  2478. Aim()
  2479. else
  2480. SnipAim=false
  2481. UnAim()
  2482. end
  2483. end
  2484. end
  2485. if Mode=="Choose" then
  2486. if key=="f" then
  2487. RemoveDrones2()
  2488. end
  2489. if key=="z" then
  2490. Drone1,Drone2,Drone3=Drones()
  2491. end
  2492. if key=="x" then
  2493. Gun()
  2494. end
  2495. if key=="c" then
  2496. Sword()
  2497. end
  2498. if key=="v" then
  2499. Sniper()
  2500. end
  2501. end
  2502. end
  2503.  
  2504. function key2(key)
  2505. if key=="f" then
  2506. BowAim=false
  2507. end
  2508. end
  2509.  
  2510. function s(mouse)
  2511. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2512. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2513. mouse.KeyDown:connect(key)
  2514. mouse.KeyUp:connect(key2)
  2515. unsheathed = true
  2516. player = Player
  2517. ch = Character
  2518. MMouse = mouse
  2519. RSH = ch.Torso["Right Shoulder"]
  2520. LSH = ch.Torso["Left Shoulder"]
  2521. --
  2522. RSH.Parent = nil
  2523. LSH.Parent = nil
  2524. --
  2525. RW.Part0 = ch.Torso
  2526. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2527. RW.C1 = CFrame.new(0, 0.5, 0)
  2528. RW.Part1 = ch["Right Arm"]
  2529. RW.Parent = ch.Torso
  2530. --_G.R = RW
  2531. --
  2532. LW.Part0 = ch.Torso
  2533. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2534. LW.C1 = CFrame.new(0, 0.5, 0)
  2535. LW.Part1 = ch["Left Arm"]
  2536. LW.Parent = ch.Torso
  2537. --_G.L = LW
  2538. --
  2539. equipanim()
  2540. end
  2541.  
  2542. function ds(mouse)
  2543. hideanim()
  2544. wait(0)
  2545. RW.Parent = nil
  2546. LW.Parent = nil
  2547. RSH.Parent = player.Character.Torso
  2548. LSH.Parent = player.Character.Torso
  2549. end
  2550.  
  2551. Bin.Selected:connect(s)
  2552. Bin.Deselected:connect(ds)
  2553. print("Fenrier's Techno Gauntlet loaded.")
  2554.  
  2555. -- mediafire lego
  2556. --[[
  2557. Copyrighted (C) Fenrier 2013
  2558. ]]
Add Comment
Please, Sign In to add comment