UltimateGate

BLACK MAGIC - Tech Weaponier

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