Vegetathesayajin

Techno gaunlets[Para Xenoduct]

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