deadropz

Untitled

Mar 15th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 225.74 KB | None | 0 0
  1. --pastebin id = http://pastebin.com/raw/4kp30fHr]
  2.  
  3. --[pastebin url: http://pastebin.com/raw/vJmtAYPe]]--
  4.  
  5. function clerp(c1,c2,al)
  6. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  7. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  8. for i,v in pairs(com1) do
  9. com1[i] = v+(com2[i]-v)*al
  10. end
  11. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  12. end
  13.  
  14. ff = Instance.new("ForceField")
  15. Value = Instance.new("BoolValue", char)
  16. gui = Instance.new("BillboardGui", head)
  17. fra = Instance.new("TextLabel", gui)
  18. plr = game:service'Players'.LocalPlayer
  19. plrgui = plr:findFirstChild'PlayerGui'
  20. plrmouse = plr:GetMouse()
  21. char = plr.Character
  22. humanoid = char:findFirstChild("Humanoid")
  23. torso = char:findFirstChild("Torso")
  24. head = char.Head
  25. humanoid.Health = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  26. humanoid.WalkSpeed = 25
  27. ra = char:findFirstChild("Right Arm")
  28. la = char:findFirstChild("Left Arm")
  29. rl = char:findFirstChild("Right Leg")
  30. ll = char:findFirstChild("Left Leg")
  31. rs = torso:findFirstChild("Right Shoulder")
  32. ls = torso:findFirstChild("Left Shoulder")
  33. rh = torso:findFirstChild("Right Hip")
  34. lh = torso:findFirstChild("Left Hip")
  35. neck = torso:findFirstChild("Neck")
  36. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  37. rootpart = char:findFirstChild("HumanoidRootPart")
  38. camera = workspace.CurrentCamera
  39. anim = char:findFirstChild("Animate")
  40.  
  41.  
  42. local rm = Instance.new("Weld")
  43. rm.C0 = CFrame.new(1.5, 0.5, 0)
  44. rm.C1 = CFrame.new(0, 0.5, 0)
  45. rm.Part0 = torso
  46. rm.Part1 = ra
  47. rm.Name = 'Right Shoulder'
  48.  
  49. local lm = Instance.new("Weld")
  50. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  51. lm.C1 = CFrame.new(0, 0.5, 0)
  52. lm.Part0 = torso
  53. lm.Part1 = la
  54. lm.Name = 'Left Shoulder'
  55.  
  56. local tool = Instance.new('HopperBin', plr.Backpack)
  57. tool.Name = 'Dual Blue Gusters'
  58.  
  59. function scan(parent)
  60. local parts,last = {}
  61. for _,v in pairs(parent:GetChildren()) do
  62. if (v:IsA("BasePart")) then
  63. v.Anchored = true
  64. if (last) then
  65. local w = Instance.new("Weld")
  66. w.Name = ("%s_Weld"):format(v.Name)
  67. w.Part0,w.Part1 = last,v
  68. w.C0 = last.CFrame:inverse()
  69. w.C1 = v.CFrame:inverse()
  70. w.Parent = last
  71. end
  72. last = v
  73. table.insert(parts,v)
  74. end
  75. scan(v)
  76. end
  77. for _,v in pairs(parts) do
  78. v.Anchored = false
  79. v.Locked = true
  80. v.CanCollide = false
  81. end
  82. end
  83.  
  84. --1-Torso
  85. holsters=Instance.new("Model")
  86. holsters.Name="Torso"
  87. holsters.Parent=char
  88. --2-HolsterWeldTo2
  89. obj2=Instance.new("Part")
  90. obj2.CFrame=CFrame.new(Vector3.new(14.8519955,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  91. obj2.FormFactor=Enum.FormFactor.Custom
  92. obj2.LeftSurface=10
  93. obj2.Transparency=1
  94. obj2.TopSurface=10
  95. obj2.RightSurface=10
  96. obj2.Material="SmoothPlastic"
  97. obj2.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  98. obj2.FrontSurface=10
  99. obj2.BottomSurface=10
  100. obj2.BackSurface=10
  101. obj2.BrickColor=BrickColor.new("Really blue")
  102. obj2.Name="HolsterWeldTo2"
  103. obj2.Parent=holsters
  104. --3-Mesh
  105. obj3=Instance.new("BlockMesh")
  106. obj3.Scale=Vector3.new(0.999499977,1,1)
  107. obj3.Parent=obj2
  108. --4-Belt
  109. obj4=Instance.new("Part")
  110. obj4.CFrame=CFrame.new(Vector3.new(13.6000061,1.49000156,35.8999977)) * CFrame.Angles(-1.4901162970204e-008,0,-0)
  111. obj4.FormFactor=Enum.FormFactor.Custom
  112. obj4.LeftSurface=10
  113. obj4.TopSurface=10
  114. obj4.RightSurface=10
  115. obj4.Material="SmoothPlastic"
  116. obj4.Size=Vector3.new(2,0.200000003,1)
  117. obj4.FrontSurface=10
  118. obj4.BottomSurface=10
  119. obj4.BackSurface=10
  120. obj4.BrickColor=BrickColor.new("Really blue")
  121. obj4.Name="Belt"
  122. obj4.Parent=holsters
  123. --5-Mesh
  124. obj5=Instance.new("BlockMesh")
  125. obj5.Scale=Vector3.new(1.10000002,1,1.10000002)
  126. obj5.Parent=obj4
  127. --6-Hold2
  128. obj6=Instance.new("Part")
  129. obj6.CFrame=CFrame.new(Vector3.new(14.8000011,1.0950017,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  130. obj6.FormFactor=Enum.FormFactor.Custom
  131. obj6.LeftSurface=10
  132. obj6.TopSurface=10
  133. obj6.RightSurface=10
  134. obj6.Material="SmoothPlastic"
  135. obj6.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  136. obj6.FrontSurface=10
  137. obj6.BottomSurface=10
  138. obj6.BackSurface=10
  139. obj6.BrickColor=BrickColor.new("Really blue")
  140. obj6.Name="Hold2"
  141. obj6.Parent=holsters
  142. --7-TorsoWeld
  143. obj7=Instance.new("Part")
  144. obj7.CFrame=CFrame.new(Vector3.new(13.6000061,1.99000168,35.8999939)) * CFrame.Angles(-0,0,-0)
  145. obj7.FormFactor=Enum.FormFactor.Custom
  146. obj7.LeftSurface=10
  147. obj7.Transparency=1
  148. obj7.TopSurface=10
  149. obj7.RightSurface=10
  150. obj7.Size=Vector3.new(2,2,1)
  151. obj7.FrontSurface=10
  152. obj7.BottomSurface=10
  153. obj7.BackSurface=10
  154. obj7.BrickColor=BrickColor.new("Bright blue")
  155. obj7.Name="TorsoWeld"
  156. obj7.Parent=holsters
  157. --8-HolsterWeldTo
  158. obj8=Instance.new("Part")
  159. obj8.CFrame=CFrame.new(Vector3.new(12.342,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  160. obj8.FormFactor=Enum.FormFactor.Custom
  161. obj8.LeftSurface=10
  162. obj8.Transparency=1
  163. obj8.TopSurface=10
  164. obj8.RightSurface=10
  165. obj8.Material="SmoothPlastic"
  166. obj8.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  167. obj8.FrontSurface=10
  168. obj8.BottomSurface=10
  169. obj8.BackSurface=10
  170. obj8.BrickColor=BrickColor.new("Really blue")
  171. obj8.Name="HolsterWeldTo"
  172. obj8.Parent=holsters
  173. --9-Mesh
  174. obj9=Instance.new("BlockMesh")
  175. obj9.Scale=Vector3.new(0.999499977,1,1)
  176. obj9.Parent=obj8
  177. --10-Hold
  178. obj10=Instance.new("Part")
  179. obj10.CFrame=CFrame.new(Vector3.new(12.4000053,1.09500158,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  180. obj10.FormFactor=Enum.FormFactor.Custom
  181. obj10.LeftSurface=10
  182. obj10.TopSurface=10
  183. obj10.RightSurface=10
  184. obj10.Material="SmoothPlastic"
  185. obj10.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  186. obj10.FrontSurface=10
  187. obj10.BottomSurface=10
  188. obj10.BackSurface=10
  189. obj10.BrickColor=BrickColor.new("Really blue")
  190. obj10.Name="Hold"
  191. obj10.Parent=holsters
  192. holsters:MakeJoints()
  193. scan(holsters)
  194.  
  195. --1-M1911
  196. gun=Instance.new("Model")
  197. gun.Name="Blue Guster"
  198. gun.Parent=char
  199. --2-Handle
  200. obj2=Instance.new("Part")
  201. obj2.CFrame=CFrame.new(Vector3.new(12.3420238,1.86332655,36.3927727)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  202. obj2.FormFactor=Enum.FormFactor.Custom
  203. obj2.LeftSurface=10
  204. obj2.TopSurface=10
  205. obj2.RightSurface=10
  206. obj2.Material=Enum.Material.Neon
  207. obj2.Size=Vector3.new(0.200000003,0.99999994,0.400000036)
  208. obj2.FrontSurface=10
  209. obj2.BottomSurface=10
  210. obj2.BackSurface=10
  211. obj2.BrickColor=BrickColor.new("Really black")
  212. obj2.Name="Handle"
  213. obj2.Parent=gun
  214. --3-Decor
  215. obj3=Instance.new("Part")
  216. obj3.CFrame=CFrame.new(Vector3.new(12.3420143,2.28510284,35.9773712)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  217. obj3.FormFactor=Enum.FormFactor.Custom
  218. obj3.LeftSurface=10
  219. obj3.TopSurface=10
  220. obj3.RightSurface=10
  221. obj3.Material="SmoothPlastic"
  222. obj3.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  223. obj3.FrontSurface=10
  224. obj3.BottomSurface=10
  225. obj3.BackSurface=10
  226. obj3.BrickColor=BrickColor.new("Really blue")
  227. obj3.Name="Decor"
  228. obj3.Parent=gun
  229. --4-Mesh
  230. obj4=Instance.new("BlockMesh")
  231. obj4.Offset=Vector3.new(0,0.00999999978,0.0399999991)
  232. obj4.Scale=Vector3.new(0.699999988,0.200000003,0.800000012)
  233. obj4.Parent=obj3
  234. --5-Decor
  235. obj5=Instance.new("Part")
  236. obj5.CFrame=CFrame.new(Vector3.new(12.3420143,1.46716928,35.8617401)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  237. obj5.FormFactor=Enum.FormFactor.Custom
  238. obj5.LeftSurface=10
  239. obj5.TopSurface=10
  240. obj5.RightSurface=10
  241. obj5.Material="SmoothPlastic"
  242. obj5.Size=Vector3.new(0.200000003,0.400000006,0.200000003)
  243. obj5.FrontSurface=10
  244. obj5.BottomSurface=10
  245. obj5.BackSurface=10
  246. obj5.BrickColor=BrickColor.new("Really blue")
  247. obj5.Name="Decor"
  248. obj5.Parent=gun
  249. --6-Mesh
  250. obj6=Instance.new("BlockMesh")
  251. obj6.Scale=Vector3.new(0.600000024,1,0.200000003)
  252. obj6.Parent=obj5
  253. --7-Decor
  254. obj7=Instance.new("Part")
  255. obj7.CFrame=CFrame.new(Vector3.new(12.3420124,1.55429673,36.0928192)) * CFrame.Angles(0.45686540007591,-1.1175870895386e-008,3.141592502594)
  256. obj7.FormFactor=Enum.FormFactor.Custom
  257. obj7.LeftSurface=10
  258. obj7.TopSurface=10
  259. obj7.RightSurface=10
  260. obj7.Material="SmoothPlastic"
  261. obj7.Size=Vector3.new(0.200000003,0.310000002,0.200000003)
  262. obj7.FrontSurface=10
  263. obj7.BottomSurface=10
  264. obj7.BackSurface=10
  265. obj7.BrickColor=BrickColor.new("Really blue")
  266. obj7.Name="Decor"
  267. obj7.Parent=gun
  268. --8-Mesh
  269. obj8=Instance.new("BlockMesh")
  270. obj8.Scale=Vector3.new(0.600000024,1,0.200000003)
  271. obj8.Parent=obj7
  272. --9-Decor
  273. obj9=Instance.new("Part")
  274. obj9.CFrame=CFrame.new(Vector3.new(12.3420258,2.21372294,35.8965569)) * CFrame.Angles(0.76370096206665,-1.4901161193848e-008,-3.1415927410126)
  275. obj9.FormFactor=Enum.FormFactor.Custom
  276. obj9.LeftSurface=10
  277. obj9.TopSurface=10
  278. obj9.RightSurface=10
  279. obj9.Material="SmoothPlastic"
  280. obj9.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  281. obj9.FrontSurface=10
  282. obj9.BottomSurface=10
  283. obj9.BackSurface=10
  284. obj9.BrickColor=BrickColor.new("Really blue")
  285. obj9.Name="Decor"
  286. obj9.Parent=gun
  287. --10-Mesh
  288. obj10=Instance.new("BlockMesh")
  289. obj10.Scale=Vector3.new(0.400000006,0.200000003,1)
  290. obj10.Parent=obj9
  291. --11-Decor
  292. obj11=Instance.new("Part")
  293. obj11.CFrame=CFrame.new(Vector3.new(12.3420229,1.8633275,36.2927704)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  294. obj11.FormFactor=Enum.FormFactor.Custom
  295. obj11.LeftSurface=10
  296. obj11.TopSurface=10
  297. obj11.RightSurface=10
  298. obj11.Material="SmoothPlastic"
  299. obj11.Size=Vector3.new(0.200000003,1.20000005,0.400000036)
  300. obj11.FrontSurface=10
  301. obj11.BottomSurface=10
  302. obj11.BackSurface=10
  303. obj11.BrickColor=BrickColor.new("Really blue")
  304. obj11.Name="Decor"
  305. obj11.Parent=gun
  306. --12-Mesh
  307. obj12=Instance.new("BlockMesh")
  308. obj12.Offset=Vector3.new(0,-0.0700000003,0)
  309. obj12.Scale=Vector3.new(0.995000005,0.949999988,1.20000005)
  310. obj12.Parent=obj11
  311. --13-Decor
  312. obj13=Instance.new("Part")
  313. obj13.CFrame=CFrame.new(Vector3.new(12.3420258,2.30202365,35.8373909)) * CFrame.Angles(1.756756901741,-1.0430812835693e-007,3.1415927410126)
  314. obj13.FormFactor=Enum.FormFactor.Custom
  315. obj13.LeftSurface=10
  316. obj13.TopSurface=10
  317. obj13.RightSurface=10
  318. obj13.Material="SmoothPlastic"
  319. obj13.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  320. obj13.FrontSurface=10
  321. obj13.BottomSurface=10
  322. obj13.BackSurface=10
  323. obj13.BrickColor=BrickColor.new("Really blue")
  324. obj13.Name="Decor"
  325. obj13.Parent=gun
  326. --14-Mesh
  327. obj14=Instance.new("BlockMesh")
  328. obj14.Scale=Vector3.new(0.400000006,0.200000003,0.400000006)
  329. obj14.Parent=obj13
  330. --15-BulletCase
  331. obj15=Instance.new("Part")
  332. obj15.CFrame=CFrame.new(Vector3.new(12.3420229,1.44165683,35.6482697)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  333. obj15.FormFactor=Enum.FormFactor.Custom
  334. obj15.LeftSurface=10
  335. obj15.TopSurface=10
  336. obj15.RightSurface=10
  337. obj15.Material="SmoothPlastic"
  338. obj15.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  339. obj15.FrontSurface=10
  340. obj15.BottomSurface=10
  341. obj15.BackSurface=10
  342. obj15.BrickColor=BrickColor.new("Really blue")
  343. obj15.Name="BulletCase"
  344. obj15.Parent=gun
  345. --16-Mesh
  346. obj16=Instance.new("BlockMesh")
  347. obj16.Scale=Vector3.new(0.999499977,1,1)
  348. obj16.Parent=obj15
  349. --17-Flashlight
  350. obj17=Instance.new("Part")
  351. obj17.CFrame=CFrame.new(Vector3.new(12.3420115,0.729269207,35.601902)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  352. obj17.FormFactor=Enum.FormFactor.Custom
  353. obj17.LeftSurface=10
  354. obj17.TopSurface=10
  355. obj17.RightSurface=10
  356. obj17.Material="SmoothPlastic"
  357. obj17.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  358. obj17.FrontSurface=10
  359. obj17.BottomSurface=10
  360. obj17.BackSurface=10
  361. obj17.BrickColor=BrickColor.new("Pastel yellow")
  362. obj17.Name="Flashlight"
  363. obj17.Parent=gun
  364. --18-Mesh
  365. obj18=Instance.new("CylinderMesh")
  366. obj18.Offset=Vector3.new(0,0,0.0500000007)
  367. obj18.Scale=Vector3.new(0.5,1.01999998,0.5)
  368. obj18.Parent=obj17
  369. --19-Decor
  370. obj19=Instance.new("Part")
  371. obj19.CFrame=CFrame.new(Vector3.new(12.3420143,2.1178081,35.8290215)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  372. obj19.FormFactor=Enum.FormFactor.Custom
  373. obj19.LeftSurface=10
  374. obj19.TopSurface=10
  375. obj19.RightSurface=10
  376. obj19.Material="SmoothPlastic"
  377. obj19.Size=Vector3.new(0.200000003,0.400000036,0.200000003)
  378. obj19.FrontSurface=10
  379. obj19.BottomSurface=10
  380. obj19.BackSurface=10
  381. obj19.BrickColor=BrickColor.new("Really black")
  382. obj19.Name="Decor"
  383. obj19.Parent=gun
  384. --20-Mesh
  385. obj20=Instance.new("BlockMesh")
  386. obj20.Scale=Vector3.new(0.5,0.5,1.10000002)
  387. obj20.Parent=obj19
  388. --21-Decor
  389. obj21=Instance.new("Part")
  390. obj21.CFrame=CFrame.new(Vector3.new(12.2895117,2.05304575,35.6843338)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  391. obj21.FormFactor=Enum.FormFactor.Custom
  392. obj21.LeftSurface=10
  393. obj21.TopSurface=10
  394. obj21.RightSurface=10
  395. obj21.Material="SmoothPlastic"
  396. obj21.Size=Vector3.new(0.399999976,0.200000003,0.200000003)
  397. obj21.FrontSurface=10
  398. obj21.BottomSurface=10
  399. obj21.BackSurface=10
  400. obj21.BrickColor=BrickColor.new("Really blue")
  401. obj21.Name="Decor"
  402. obj21.Parent=gun
  403. --22-Mesh
  404. obj22=Instance.new("SpecialMesh")
  405. obj22.MeshType=Enum.MeshType.Wedge
  406. obj22.Scale=Vector3.new(1,0.25,0.50999999)
  407. obj22.Parent=obj21
  408. --23-Decor
  409. obj23=Instance.new("Part")
  410. obj23.CFrame=CFrame.new(Vector3.new(12.3420172,1.41577363,35.744442)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  411. obj23.FormFactor=Enum.FormFactor.Custom
  412. obj23.LeftSurface=10
  413. obj23.TopSurface=10
  414. obj23.RightSurface=10
  415. obj23.Material="SmoothPlastic"
  416. obj23.Size=Vector3.new(0.200000003,1.60000002,0.200000003)
  417. obj23.FrontSurface=10
  418. obj23.BottomSurface=10
  419. obj23.BackSurface=10
  420. obj23.BrickColor=BrickColor.new("Really blue")
  421. obj23.Name="Decor"
  422. obj23.Parent=gun
  423. --24-Mesh
  424. obj24=Instance.new("CylinderMesh")
  425. obj24.Parent=obj23
  426. --25-ShellCaseSpawner
  427. obj25=Instance.new("Part")
  428. obj25.CFrame=CFrame.new(Vector3.new(12.3420172,1.75731552,35.6289024)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  429. obj25.FormFactor=Enum.FormFactor.Custom
  430. obj25.LeftSurface=10
  431. obj25.TopSurface=10
  432. obj25.RightSurface=10
  433. obj25.Material="SmoothPlastic"
  434. obj25.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  435. obj25.FrontSurface=10
  436. obj25.BottomSurface=10
  437. obj25.BackSurface=10
  438. obj25.Name="ShellCaseSpawner"
  439. obj25.Parent=gun
  440. --26-Mesh
  441. obj26=Instance.new("CylinderMesh")
  442. obj26.Offset=Vector3.new(0.0149999997,0,-0.0350000001)
  443. obj26.Scale=Vector3.new(0.75,1,0.75)
  444. obj26.Parent=obj25
  445. --27-Decor
  446. obj27=Instance.new("Part")
  447. obj27.CFrame=CFrame.new(Vector3.new(12.3420115,0.765501678,35.4666672)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  448. obj27.FormFactor=Enum.FormFactor.Custom
  449. obj27.LeftSurface=10
  450. obj27.TopSurface=10
  451. obj27.RightSurface=10
  452. obj27.Material="SmoothPlastic"
  453. obj27.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  454. obj27.FrontSurface=10
  455. obj27.BottomSurface=10
  456. obj27.BackSurface=10
  457. obj27.BrickColor=BrickColor.new("Really black")
  458. obj27.Name="Decor"
  459. obj27.Parent=gun
  460. --28-Mesh
  461. obj28=Instance.new("CylinderMesh")
  462. obj28.Offset=Vector3.new(0,0,0.0500000007)
  463. obj28.Scale=Vector3.new(0.5,1.01999998,0.5)
  464. obj28.Parent=obj27
  465. --29-Decor
  466. obj29=Instance.new("Part")
  467. obj29.CFrame=CFrame.new(Vector3.new(12.3920164,1.4734931,35.5290413)) * CFrame.Angles(-1.3089969158173,-1.5701057910919,-0)
  468. obj29.FormFactor=Enum.FormFactor.Custom
  469. obj29.LeftSurface=10
  470. obj29.TopSurface=10
  471. obj29.RightSurface=10
  472. obj29.Material="SmoothPlastic"
  473. obj29.Size=Vector3.new(1.60000002,0.200000003,0.200000003)
  474. obj29.FrontSurface=10
  475. obj29.BottomSurface=10
  476. obj29.BackSurface=10
  477. obj29.BrickColor=BrickColor.new("Really blue")
  478. obj29.Name="Decor"
  479. obj29.Parent=gun
  480. --30-Mesh
  481. obj30=Instance.new("SpecialMesh")
  482. obj30.MeshType=Enum.MeshType.Wedge
  483. obj30.Scale=Vector3.new(1,0.25,0.5)
  484. obj30.Parent=obj29
  485. --31-Decor
  486. obj31=Instance.new("Part")
  487. obj31.CFrame=CFrame.new(Vector3.new(12.2895117,1.18371284,35.4513969)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  488. obj31.FormFactor=Enum.FormFactor.Custom
  489. obj31.LeftSurface=10
  490. obj31.TopSurface=10
  491. obj31.RightSurface=10
  492. obj31.Material="SmoothPlastic"
  493. obj31.Size=Vector3.new(1,0.200000003,0.200000003)
  494. obj31.FrontSurface=10
  495. obj31.BottomSurface=10
  496. obj31.BackSurface=10
  497. obj31.BrickColor=BrickColor.new("Really blue")
  498. obj31.Name="Decor"
  499. obj31.Parent=gun
  500. --32-Mesh
  501. obj32=Instance.new("SpecialMesh")
  502. obj32.MeshType=Enum.MeshType.Wedge
  503. obj32.Scale=Vector3.new(1,0.25,0.50999999)
  504. obj32.Parent=obj31
  505. gun:MakeJoints()
  506. scan(gun)
  507.  
  508. local gun2 = gun:clone()
  509. gun2.Parent = char
  510.  
  511. local torsoweld = Instance.new('Weld', char)
  512. torsoweld.Part0 = torso
  513. torsoweld.Part1 = holsters.TorsoWeld
  514. torsoweld.C1 = CFrame.Angles(0,math.pi,0)
  515.  
  516. local gunweld = Instance.new('Weld', char)
  517. gunweld.Part0 = gun.BulletCase
  518. gunweld.Part1 = holsters.HolsterWeldTo
  519.  
  520. local gunweld2 = Instance.new('Weld', char)
  521. gunweld2.Part0 = gun2.BulletCase
  522. gunweld2.Part1 = holsters.HolsterWeldTo2
  523.  
  524. local bodygyro = Instance.new('BodyGyro')
  525. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  526. bodygyro.P = 15000
  527.  
  528. local rsc0 = rm.C0
  529. local lsc0 = lm.C0
  530. local angle = 0
  531. local anglespeed = .5
  532. local speed = .3
  533. local side = 0
  534. local Equipped = false
  535. local origneckc0 = neck.C0
  536. local origneckc1 = neck.C1
  537. local neckc0 = CFrame.new(0, 1, 0)
  538. local firing = false
  539. local pistol = 1
  540. local light = false
  541.  
  542. local gunlight = Instance.new('SpotLight', gun.Flashlight)
  543. gunlight.Range = 40
  544. gunlight.Angle = 60
  545. gunlight.Face = 'Bottom'
  546. gunlight.Shadows = true
  547. gunlight.Enabled = false
  548.  
  549. local gunlight2 = gunlight:clone()
  550. gunlight2.Parent = gun2.Flashlight
  551.  
  552. local fire = Instance.new('Sound', head)
  553. fire.SoundId = "rbxassetid://260433746"
  554. fire.Volume = 18000000
  555.  
  556. local song = Instance.new('Sound', head)
  557. song.SoundId = "rbxassetid://142653441"
  558. song.Volume = 10000000
  559. song.Looped = true
  560.  
  561. local song2 = Instance.new('Sound', head)
  562. song2.SoundId = "rbxassetid://382893859"
  563. song2.Volume = 1000000
  564. song2.Looped = true
  565.  
  566. local reload = Instance.new('Sound', head)
  567. reload.SoundId = "rbxassetid://266022905"
  568. reload.Volume = 180000
  569.  
  570. local ammo = 40
  571. local scrgui = Instance.new('ScreenGui', plrgui)
  572. scrgui.Name = 'DualGunsGui'
  573.  
  574. local ammonution = Instance.new('TextLabel', scrgui)
  575. ammonution.Size = UDim2.new(0,150,0,50)
  576. ammonution.Position = UDim2.new(1, -250, 1, -70)
  577. ammonution.BackgroundTransparency = 1
  578. ammonution.TextColor3 = Color3.new(1,1,1)
  579. ammonution.TextStrokeTransparency = .1
  580. ammonution.Text = ('| '):rep(ammo)
  581. ammonution.TextXAlignment = 'Right'
  582. ammonution.ZIndex = 2
  583. ammonution.FontSize = 'Size18'
  584.  
  585. local ammonution2 = Instance.new('TextLabel', scrgui)
  586. ammonution2.Size = UDim2.new(0,150,0,50)
  587. ammonution2.Position = UDim2.new(1, -250, 1, -70)
  588. ammonution2.BackgroundTransparency = 1
  589. ammonution2.TextColor3 = Color3.new(.5,.5,.5)
  590. ammonution2.TextStrokeTransparency = .1
  591. ammonution2.TextXAlignment = 'Right'
  592. ammonution2.Text = ('| '):rep(ammo)
  593. ammonution2.FontSize = 'Size18'
  594.  
  595. local rel = Instance.new('TextButton', scrgui)
  596. rel.Size = UDim2.new(0,500,0,250)
  597. rel.Position = UDim2.new(.5, -250, .8, -250)
  598. rel.BackgroundTransparency = 1
  599. rel.TextColor3 = Color3.new(.7,0,0)
  600. rel.Visible = false
  601. rel.Text = 'Reload (r)'
  602. rel.FontSize = 'Size24'
  603.  
  604. rel.MouseButton1Down:connect(function()
  605. if ammo >= 40 or firing then return end
  606. dontclerpneck = true
  607. firing = true
  608. local dropammo = gun.Handle:clone()
  609. dropammo:ClearAllChildren()
  610. dropammo.CanCollide = true
  611. dropammo.BrickColor = BrickColor.Black()
  612. dropammo.Parent = workspace
  613. dropammo.CFrame = gun.Handle.CFrame
  614. local dropammo2 = dropammo:clone()
  615. dropammo2.Parent = workspace
  616. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  617. game:service'Debris':AddItem(dropammo,15)
  618. game:service'Debris':AddItem(dropammo2,15)
  619. wait(.5)
  620. reload:play()
  621. for i = 1, 65 do
  622. firing = true
  623. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  624. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  625. lm.C0 = clerp(lm.C0,lscf,speed)
  626. rm.C0 = clerp(rm.C0,rscf,speed)
  627. game:service'RunService'.RenderStepped:wait()
  628. end
  629. reload:play()
  630. for i = 1, 65 do
  631. firing = true
  632. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  633. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  634. lm.C0 = clerp(lm.C0,lscf,speed)
  635. rm.C0 = clerp(rm.C0,rscf,speed)
  636. game:service'RunService'.RenderStepped:wait()
  637. end
  638. dontclerpneck = false
  639. firing = false
  640. ammo = 26
  641. ammonution.Text = ('| '):rep(ammo)
  642. end)
  643. tool.Selected:connect(function(mouse)
  644. Equipped = true
  645. bodygyro.Parent = torso
  646. bodygyro.cframe = torso.CFrame
  647. rs.Parent = nil
  648. ls.Parent = nil
  649. rm.Parent = torso
  650. lm.Parent = torso
  651. neck.C0 = CFrame.new(0, 1, 0)
  652. neck.C1 = CFrame.new(0, -0.5, 0)
  653. gunweld.Part0 = gun.Handle
  654. gunweld2.Part0 = gun2.Handle
  655. gunweld.Part1 = ra
  656. gunweld2.Part1 = la
  657. gunweld.C1 = CFrame.new(0, -.8, 0)
  658. gunweld.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  659. gunweld2.C1 = CFrame.new(0, -.8, 0)
  660. gunweld2.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  661. mouse.KeyDown:connect(function(k)
  662. if k == "r" then
  663. if ammo >= 40 or firing then return end
  664. dontclerpneck = true
  665. firing = true
  666. local dropammo = gun.Handle:clone()
  667. dropammo:ClearAllChildren()
  668. dropammo.CanCollide = true
  669. dropammo.BrickColor = BrickColor.Black()
  670. dropammo.Parent = workspace
  671. dropammo.CFrame = gun.Handle.CFrame
  672. local dropammo2 = dropammo:clone()
  673. dropammo2.Parent = workspace
  674. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  675. game:service'Debris':AddItem(dropammo,15)
  676. game:service'Debris':AddItem(dropammo2,15)
  677. wait(.5)
  678. reload:play()
  679. for i = 1, 65 do
  680. firing = true
  681. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  682. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  683. lm.C0 = clerp(lm.C0,lscf,speed)
  684. rm.C0 = clerp(rm.C0,rscf,speed)
  685. game:service'RunService'.RenderStepped:wait()
  686. end
  687. reload:play()
  688. for i = 1, 65 do
  689. firing = true
  690. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  691. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  692. lm.C0 = clerp(lm.C0,lscf,speed)
  693. rm.C0 = clerp(rm.C0,rscf,speed)
  694. game:service'RunService'.RenderStepped:wait()
  695. end
  696. dontclerpneck = false
  697. firing = false
  698. ammo = 40
  699. ammonution.Text = ('| '):rep(ammo)
  700. end
  701. if k == "f" then
  702. game:GetService("Chat"):Chat(plr.Character.Head, "Boss Mode!", Enum.ChatColor.Red)
  703. song:Play()
  704. char.Head.face.Texture = "http://www.roblox.com/asset/?id=397016154"
  705. else
  706. if k == "g" then
  707. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  708. song:Stop()
  709. char.Head.face.Texture = "rbxassetid://13079565"
  710. else
  711. if k == "h" then
  712. game:GetService("Chat"):Chat(plr.Character.Head, "Evil Mode!", Enum.ChatColor.Red)
  713. song2:Play()
  714. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152629683"
  715. else
  716. if k == "j" then
  717. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  718. song2:Stop()
  719. char.Head.face.Texture = "rbxassetid://13079565"
  720. else
  721. if k == "k" then
  722. humanoid.WalkSpeed = 60
  723. else
  724. if k == "l" then
  725. humanoid.WalkSpeed = 25
  726. else
  727. if k == "p" then
  728. game:GetService("Chat"):Chat(plr.Character.Head, "Human Mode!", Enum.ChatColor.Green)
  729. plr.Character.Humanoid.Health = (10000000000000000)
  730. plr.Character.Humanoid.MaxHealth = (10000000000000000)
  731. else
  732. if k == "u" then
  733. game:GetService("Chat"):Chat(plr.Character.Head, "Demi God Mode!", Enum.ChatColor.Red)
  734. plr.Character.Humanoid.Health = (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  735. plr.Character.Humanoid.MaxHealth = (1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  736. else
  737. if k == "q" then
  738. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Enabled", Enum.ChatColor.Red)
  739. Value = true
  740. else
  741. if k == "e" then
  742. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Disabled", Enum.ChatColor.Green)
  743. Value = false
  744. else
  745. if k == "b" then
  746. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Enabled!", Enum.ChatColor.Blue)
  747. ff:Clone().Parent = char
  748. else
  749. if k == "v" then
  750. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Disabled!", Enum.ChatColor.Blue)
  751. char.ForceField:Destroy()
  752. end
  753. end
  754. end
  755. end
  756. end
  757. end
  758. end
  759. end
  760. end
  761. end
  762. end
  763. end
  764. end)
  765. mouse.Button1Down:connect(function()
  766. if ammo <= 0 then
  767. local sound = Instance.new('Sound', head)
  768. sound.SoundId = "rbxassetid://260433746"
  769. sound.Volume = 2
  770. sound:play()
  771. game:service'Debris':AddItem(sound,1)
  772. end
  773. if firing or ammo <= 0 then return end
  774. ammo = ammo - 1
  775. ammonution.Text = ('| '):rep(ammo)
  776. firing = true
  777. local pa = Instance.new('Part')
  778. pa.CanCollide = false
  779. pa.Anchored = true
  780. pa.Locked = true
  781. pa.FormFactor = 'Custom'
  782. pa.Material = 'Neon'
  783. pa.BrickColor = BrickColor.new('Cyan')
  784. pa.Size = Vector3.new(.2,3,.2)
  785. Instance.new('BlockMesh', pa).Scale = Vector3.new(.2,3,.2)
  786. local thegun
  787. if pistol == 1 then
  788. thegun = gun.BulletCase
  789. elseif pistol == 2 then
  790. thegun = gun2.BulletCase
  791. end
  792. local muzzle = Instance.new('PointLight', thegun)
  793. muzzle.Range = 1211111
  794. muzzle.Color = Color3.new(0, 81, 255)
  795. game:service'Debris':AddItem(muzzle, .05)
  796. local shell = pa:clone()
  797. shell:ClearAllChildren()
  798. shell.Anchored = false
  799. shell.CFrame = thegun.Parent.ShellCaseSpawner.CFrame
  800. shell.Size = Vector3.new(.2,.5,.2)
  801. shell.Parent = workspace
  802. shell.Material = 'Neon'
  803. shell.BrickColor = BrickColor.new('Cyan')
  804. shell.CanCollide = true
  805. game:service'Debris':AddItem(shell, 5)
  806. local bulletpos = thegun.Position
  807. local bulletvelocity = (mouse.Hit.p - bulletpos).unit*15
  808. local lastbulletpos = thegun.Position
  809. fire:play()
  810. coroutine.wrap(function()
  811. while game:service'RunService'.Stepped:wait() do
  812. lastbulletpos = bulletpos
  813. bulletpos = bulletpos + bulletvelocity
  814. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  815. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  816. if (torso.Position - pa.Position).magnitude > 800 then
  817. pa:Destroy()
  818. break
  819. end
  820. pa.Anchored = true
  821. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  822. if hit then
  823. local damage
  824. local sound = Instance.new('Sound', pa)
  825. sound.SoundId = "rbxassetid://166423137"
  826. sound.Pitch = 1.2+math.random()/3
  827. sound.Volume = 1
  828. sound:play()
  829. pa:Destroy()
  830. if Value == true then
  831. hit:Destroy()
  832. end
  833. game:service'Debris':AddItem(sound,4)
  834. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  835. local hitz, enz = workspace:FindPartOnRay(ray, char)
  836. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  837. if hum then
  838. damage = math.random(40,90)
  839. hum:TakeDamage(damage)
  840. end
  841. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  842. if hum then
  843. damage = math.random(40,90)
  844. hum:TakeDamage(damage)
  845. end
  846. break
  847. end
  848. pa.Anchored = true
  849. pa.Parent = char
  850. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  851. end
  852. end)()
  853.  
  854. if pistol == 1 then
  855. pistol = 2
  856. for i = 1, 4 do
  857. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  858. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  859. lm.C0 = clerp(lm.C0,lscf,speed)
  860. rm.C0 = clerp(rm.C0,rscf,speed)
  861. game:service'RunService'.RenderStepped:wait()
  862. end
  863. elseif pistol == 2 then
  864. for i = 1, 4 do
  865. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  866. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  867. lm.C0 = clerp(lm.C0,lscf,speed)
  868. rm.C0 = clerp(rm.C0,rscf,speed)
  869. game:service'RunService'.RenderStepped:wait()
  870. end
  871. pistol = 1
  872. end
  873. firing = false
  874. end)
  875. end)
  876. tool.Deselected:connect(function()
  877. Equipped = false
  878. rm.Parent = nil
  879. lm.Parent = nil
  880. rs.Parent = torso
  881. ls.Parent = torso
  882. neck.C0 = origneckc0
  883. neck.C1 = origneckc1
  884. lm.C0 = lsc0
  885. rm.C0 = rsc0
  886. gunweld.Part0 = gun.BulletCase
  887. gunweld.Part1 = holsters.HolsterWeldTo
  888. gunweld.C0 = CFrame.new()
  889. gunweld.C1 = CFrame.new()
  890. gunweld2.Part0 = gun2.BulletCase
  891. gunweld2.Part1 = holsters.HolsterWeldTo2
  892. gunweld2.C0 = CFrame.new()
  893. gunweld2.C1 = CFrame.new()
  894. bodygyro.Parent = nil
  895. end)
  896.  
  897. game:service'RunService'.RenderStepped:connect(function()
  898. if Equipped then
  899. if ammo <= 0 then
  900. rel.Visible = true
  901. else
  902. rel.Visible = false
  903. end
  904. if light then
  905. gunlight.Enabled = true
  906. gunlight2.Enabled = true
  907. else
  908. gunlight.Enabled = false
  909. gunlight2.Enabled = false
  910. end
  911. angle = angle + (0.05+math.random()/20)
  912. local rscf = rsc0
  913. local lscf = lsc0
  914. local ncf = neckc0
  915. local rmx,rmy,rmz = rm.C0:toEulerAnglesXYZ()
  916. if rmz >= 1 then
  917. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  918. elseif rmz <= -1 then
  919. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  920. end
  921. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  922. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  923. ncf = neckc0 * CFrame.new(Vector3.new(), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p))
  924. if not firing then
  925. lm.C0 = clerp(lm.C0,lscf,speed)
  926. rm.C0 = clerp(rm.C0,rscf,speed)
  927. end
  928. if not dontclerpneck then
  929. neck.C0 = clerp(neck.C0,ncf,speed)
  930. end
  931. end
  932. if light and not Equipped then
  933. gunlight.Enabled = false
  934. gunlight2.Enabled = false
  935. end
  936. end)
  937.  
  938. chatted = false
  939.  
  940. a = Instance.new("BillboardGui", plr.Character:FindFirstChild("Head"))
  941. a.ExtentsOffset = Vector3.new(1,0,0)
  942. a.Size = UDim2.new(1,0,1,0)
  943. a.AlwaysOnTop = true
  944. a.Enabled = true
  945. b = Instance.new("ImageLabel", a)
  946. b.BackgroundTransparency = 1
  947. b.BorderSizePixel = 0
  948. b.Image = "http://www.roblox.com/asset/?id=243503908"
  949. b.ImageTransparency = 0.1
  950. b.Position = UDim2.new(0.2,0,0.05,0)
  951. b.Size = UDim2.new(5,0,1.2,0)
  952. b.Visible = false
  953. c = Instance.new("TextLabel", b)
  954. c.BackgroundTransparency = 1
  955. c.BorderSizePixel = 0
  956. c.Position = UDim2.new(0.1,0,0)
  957. c.Size = UDim2.new(0.5,0,0.4,0)
  958. c.ZIndex = 2
  959. c.Font = "SourceSans"
  960. c.FontSize = "Size18"
  961. c.Text = plr.Name..":"
  962. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  963. c.TextXAlignment = "Left"
  964. c.TextYAlignment = "Center"
  965. d = Instance.new("TextLabel", b)
  966. d.BackgroundTransparency = 1
  967. d.BorderSizePixel = 0
  968. d.Position = UDim2.new(0.1,0,0.4,0)
  969. d.Size = UDim2.new(0.9,0,0.6,0)
  970. d.ZIndex = 2
  971. d.Font = "SourceSans"
  972. d.FontSize = "Size18"
  973. d.Text = ""
  974. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  975. d.TextXAlignment = "Left"
  976. d.TextYAlignment = "Top"
  977. d.TextWrapped = true
  978.  
  979.  
  980. function message(message)
  981. repeat wait() until chatted == false
  982. chatted = true
  983. b.Visible = true
  984. if string.find(message,"-r") ~=nil then
  985. for i=1,string.len(message),1 do
  986. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  987. d.Text = string.sub(message,1,i)
  988. wait(0.1)
  989. end
  990. elseif string.find(message,"-b") ~=nil then
  991. for i=1,string.len(message),1 do
  992. d.Text = string.sub(string.byte(message),1,i)
  993. wait(0.05)
  994. end
  995. else
  996. for i=1,string.len(message),1 do
  997. d.Text = string.sub(message,1,i)
  998. wait(0.05)
  999. end
  1000. end
  1001. wait(2)
  1002. if string.find(message,"-t") ~=nil then
  1003. b.Visible = true
  1004. else
  1005. b.Visible = false
  1006. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1007. end
  1008. chatted = false
  1009. end
  1010.  
  1011.  
  1012. wait(2.6)
  1013. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Blue Gust Blade!", "Red")
  1014. Player=game:GetService("Players").LocalPlayer
  1015. Character=Player.Character
  1016. PlayerGui=Player.PlayerGui
  1017. Backpack=Player.Backpack
  1018. Torso=Character.Torso
  1019. Head=Character.Head
  1020. Humanoid=Character.Humanoid
  1021. print('Player is Eliagable')
  1022. LeftArm=Character["Left Arm"]
  1023. LeftLeg=Character["Left Leg"]
  1024. RightArm=Character["Right Arm"]
  1025. RightLeg=Character["Right Leg"]
  1026. LS=Torso["Left Shoulder"]
  1027. LH=Torso["Left Hip"]
  1028. RS=Torso["Right Shoulder"]
  1029. RH=Torso["Right Hip"]
  1030. Neck=Torso.Neck
  1031. it=Instance.new
  1032. vt=Vector3.new
  1033. cf=CFrame.new
  1034. euler=CFrame.fromEulerAnglesXYZ
  1035. angles=CFrame.Angles
  1036. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1037. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1038. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1039. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1040. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1041. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1042. RootPart=Character.HumanoidRootPart
  1043. RootJoint=RootPart.RootJoint
  1044. RootCF=euler(-1.57,0,3.14)
  1045. attack=false
  1046. attackdebounce=false
  1047. MMouse=nil
  1048. combo=0
  1049. local Anim="Idle"
  1050. local Effects={}
  1051. equipped=false
  1052. local idle=0
  1053. local hold=false
  1054. local con1=nil
  1055. local con2=nil
  1056. local Mode="Binary"
  1057. local idleanim=0
  1058. local idleanim2=false
  1059. local impulse=1
  1060. local hitfloor,posfloor=nil,nil
  1061. local damcount=0
  1062. local guard=false
  1063. --player
  1064. player=nil
  1065. --save shoulders
  1066. RSH, LSH=nil, nil
  1067. --welds
  1068. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1069. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1070. LH=Torso["Left Hip"]
  1071. RH=Torso["Right Hip"]
  1072. Asset="http://www.roblox.com/asset/?id="
  1073. Health=879000
  1074. Humanoid.MaxHealth=879000
  1075. Humanoid.Health=879000
  1076. coroutine.resume(coroutine.create(function()
  1077. for i=1,20 do
  1078. Humanoid.MaxHealth=879000
  1079. Humanoid.Health=879000
  1080. end
  1081. Humanoid.MaxHealth=879000
  1082. Humanoid.Health=879000
  1083. Humanoid:TakeDamage(0)
  1084. Humanoid.Health=Health
  1085. end))
  1086. Humanoid.Health=Health
  1087.  
  1088. function swait(num)
  1089. if num==0 or num==nil then
  1090. game:service'RunService'.RenderStepped:wait()
  1091. else
  1092. for i=0,num do
  1093. game:service'RunService'.RenderStepped:wait()
  1094. end
  1095. end
  1096. end
  1097.  
  1098. if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
  1099. Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
  1100. end
  1101. if Character:findFirstChild("Demon Blade",true) ~= nil then
  1102. Character:findFirstChild("Demon Blade",true).Parent = nil
  1103. end
  1104. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  1105. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  1106. end
  1107.  
  1108.  
  1109. function NoOutline(Part)
  1110. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1111. end
  1112.  
  1113. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1114. local fp=it("Part")
  1115. fp.formFactor=formfactor
  1116. fp.Parent=parent
  1117. fp.Reflectance=reflectance
  1118. fp.Transparency=transparency
  1119. fp.CanCollide=false
  1120. fp.Locked=true
  1121. fp.BrickColor=brickcolor
  1122. fp.Name=name
  1123. fp.Size=size
  1124. fp.Position=Torso.Position
  1125. NoOutline(fp)
  1126. fp.Material="Granite"
  1127. fp:BreakJoints()
  1128. return fp
  1129. end
  1130.  
  1131. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1132. local mesh=it(Mesh)
  1133. mesh.Parent=part
  1134. if Mesh=="SpecialMesh" then
  1135. mesh.MeshType=meshtype
  1136. mesh.MeshId=meshid
  1137. end
  1138. mesh.Offset=offset
  1139. mesh.Scale=scale
  1140. return mesh
  1141. end
  1142.  
  1143. function weld(parent,part0,part1,c0)
  1144. local weld=it("Weld")
  1145. weld.Parent=parent
  1146. weld.Part0=part0
  1147. weld.Part1=part1
  1148. weld.C0=c0
  1149. return weld
  1150. end
  1151.  
  1152. local fengui=it("GuiMain")
  1153. fengui.Parent=Player.PlayerGui
  1154. fengui.Name="WeaponGUI"
  1155.  
  1156. local Color1=BrickColor.new("Really blue")
  1157. local Color2=BrickColor.new("Black")
  1158. local Colorr3=BrickColor.new("Black")
  1159. local Color4=BrickColor.new("Really blue")
  1160.  
  1161. local model1=Instance.new("Model")
  1162. model1.Parent=Character
  1163. model1.Name="Hades Judgement Blade"
  1164. BSword={}
  1165. BSwordWelds={}
  1166. local model2=Instance.new("Model")
  1167. model2.Parent=nil
  1168. model2.Name="Demon Blade"
  1169. DBlade={}
  1170. DBladeWelds={}
  1171.  
  1172. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  1173. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  1174. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  1175. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  1176. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  1177. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  1178. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  1179. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  1180. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  1181. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  1182. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  1183. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  1184.  
  1185. prtd1=part(3,model2,0,0.4,BrickColor.new("Really blue"),"DPart1",vt())
  1186. prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
  1187. prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
  1188. prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
  1189. prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
  1190. prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
  1191. prtd7=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart7",vt())
  1192. prtd8=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart8",vt())
  1193. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart9",vt())
  1194. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart10",vt())
  1195. prtd11=part(3,model2,0.5,0,BrickColor.new("Really blue"),"DPart11",vt())
  1196. prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
  1197. for _,c in pairs(model2:children()) do
  1198. if c.className=="Part" then
  1199. table.insert(DBlade,c)
  1200. end
  1201. end
  1202. light=it("PointLight")
  1203. light.Brightness=.8
  1204. light.Color=Color3.new(255/255,50/255,0)
  1205. --light.Color=BrickColor.new("Really red")
  1206. light.Range=10
  1207. light.Parent=prtd9
  1208.  
  1209. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  1210. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  1211. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  1212. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  1213. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  1214. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  1215. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  1216. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  1217. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  1218. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  1219. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  1220. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  1221.  
  1222. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  1223. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  1224. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  1225. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  1226. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  1227. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  1228. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  1229. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  1230. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  1231. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  1232. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  1233. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  1234.  
  1235. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  1236. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  1237. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  1238. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  1239. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  1240. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  1241. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  1242. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  1243. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  1244. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  1245. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  1246. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  1247.  
  1248. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  1249. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  1250. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  1251. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  1252. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  1253. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  1254. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  1255. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  1256. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  1257. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  1258. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  1259. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  1260. for _,c in pairs(prtd1:children()) do
  1261. if c.className=="Weld" then
  1262. table.insert(DBladeWelds,c)
  1263. print(c)
  1264. end
  1265. end
  1266.  
  1267. for i=-.9,.9,0.2 do
  1268. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  1269. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  1270. wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
  1271. end
  1272.  
  1273. local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  1274. local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  1275.  
  1276. if (script.Parent.className~="HopperBin") then
  1277. Tool=Instance.new("HopperBin")
  1278. Tool.Parent=Backpack
  1279. Tool.Name="Hades Judgement Blade"
  1280. script.Parent=Tool
  1281. end
  1282. Bin=script.Parent
  1283. --Bin=Tool
  1284.  
  1285. local bodvel=Instance.new("BodyVelocity")
  1286. bodvel.Name="FixerVel"
  1287. local bg=Instance.new("BodyGyro")
  1288. bg.Name="FixerGyro"
  1289.  
  1290. so = function(id,par,vol,pit)
  1291. coroutine.resume(coroutine.create(function()
  1292. local sou = Instance.new("Sound",par or workspace)
  1293. sou.Parent=par
  1294. sou.Volume=vol
  1295. sou.Pitch=pit or 1
  1296. sou.SoundId=id
  1297. swait()
  1298. sou:Play()
  1299. game:GetService("Debris"):AddItem(sou,6)
  1300. end))
  1301. end
  1302.  
  1303. function clerp(a,b,t)
  1304. local qa = {QuaternionFromCFrame(a)}
  1305. local qb = {QuaternionFromCFrame(b)}
  1306. local ax, ay, az = a.x, a.y, a.z
  1307. local bx, by, bz = b.x, b.y, b.z
  1308. local _t = 1-t
  1309. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1310. end
  1311.  
  1312. function QuaternionFromCFrame(cf)
  1313. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1314. local trace = m00 + m11 + m22
  1315. if trace > 0 then
  1316. local s = math.sqrt(1 + trace)
  1317. local recip = 0.5/s
  1318. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1319. else
  1320. local i = 0
  1321. if m11 > m00 then
  1322. i = 1
  1323. end
  1324. if m22 > (i == 0 and m00 or m11) then
  1325. i = 2
  1326. end
  1327. if i == 0 then
  1328. local s = math.sqrt(m00-m11-m22+1)
  1329. local recip = 0.5/s
  1330. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1331. elseif i == 1 then
  1332. local s = math.sqrt(m11-m22-m00+1)
  1333. local recip = 0.5/s
  1334. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1335. elseif i == 2 then
  1336. local s = math.sqrt(m22-m00-m11+1)
  1337. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1338. end
  1339. end
  1340. end
  1341.  
  1342. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1343. local xs, ys, zs = x + x, y + y, z + z
  1344. local wx, wy, wz = w*xs, w*ys, w*zs
  1345. local xx = x*xs
  1346. local xy = x*ys
  1347. local xz = x*zs
  1348. local yy = y*ys
  1349. local yz = y*zs
  1350. local zz = z*zs
  1351. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1352. end
  1353.  
  1354. function QuaternionSlerp(a, b, t)
  1355. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1356. local startInterp, finishInterp;
  1357. if cosTheta >= 0.0001 then
  1358. if (1 - cosTheta) > 0.0001 then
  1359. local theta = math.acos(cosTheta)
  1360. local invSinTheta = 1/math.sin(theta)
  1361. startInterp = math.sin((1-t)*theta)*invSinTheta
  1362. finishInterp = math.sin(t*theta)*invSinTheta
  1363. else
  1364. startInterp = 1-t
  1365. finishInterp = t
  1366. end
  1367. else
  1368. if (1+cosTheta) > 0.0001 then
  1369. local theta = math.acos(-cosTheta)
  1370. local invSinTheta = 1/math.sin(theta)
  1371. startInterp = math.sin((t-1)*theta)*invSinTheta
  1372. finishInterp = math.sin(t*theta)*invSinTheta
  1373. else
  1374. startInterp = t-1
  1375. finishInterp = t
  1376. end
  1377. end
  1378. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1379. end
  1380.  
  1381. function hideanim()
  1382. equipped=false
  1383. attack=true
  1384. if Mode=="Binary" then
  1385. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1386. for i=0,1,0.1 do
  1387. swait()
  1388. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1390. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1391. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1392. end
  1393. wld1.Part1=Torso
  1394. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1395. for i=0,1,0.2 do
  1396. swait()
  1397. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  1398. end
  1399. for i=0,1,0.1 do
  1400. swait()
  1401. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  1403. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1404. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1405. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1406. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1407. end
  1408. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  1409. else
  1410. for i=0,1,0.1 do
  1411. swait()
  1412. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1413. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1414. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  1415. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1416. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1417. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1418. end
  1419. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  1420. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  1421. for i=0,1,0.015 do
  1422. swait()
  1423. for i=1,3 do
  1424. if math.random(1,5)==1 then
  1425. MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1426. else
  1427. MagicBlock(BrickColor.new("Really blue"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1428. end
  1429. end
  1430. end
  1431. model2.Parent=nil
  1432. for i=0,1,0.1 do
  1433. swait()
  1434. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  1436. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1437. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1438. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1439. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1440. end
  1441. end
  1442. Torso.Neck.C0=necko
  1443. Torso.Neck.C1=necko2
  1444. RootJoint.C0=RootCF
  1445. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  1446. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1447. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  1448. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1449. RH.C0=RHC0
  1450. RH.C1=RHC1
  1451. LH.C0=LHC0
  1452. LH.C1=LHC1
  1453. Mode="Binary"
  1454. attack=false
  1455. end
  1456.  
  1457. function equipanim()
  1458. equipped=true
  1459. attack=true
  1460. for i=0,1,0.2 do
  1461. swait()
  1462. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1463. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  1464. end
  1465. for i=0,1,0.1 do
  1466. swait()
  1467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  1468. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1470. end
  1471. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  1472. wld1.Part1=RightArm
  1473. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  1474. for i=0,1,0.1 do
  1475. swait()
  1476. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1477. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  1478. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  1479. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1480. end
  1481. for i=0,1,0.1 do
  1482. swait()
  1483. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  1485. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  1486. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  1487. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  1488. end
  1489. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  1490. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  1491. Torso.Neck.C0=necko*euler(0,0,0.5)
  1492. RootJoint.C0=RootCF*euler(0,0,-0.5)
  1493. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  1494. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1495. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  1496. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1497. attack=false
  1498. end
  1499.  
  1500. function Stomp()
  1501. Humanoid.WalkSpeed=0
  1502. Torso.Velocity=RootPart.CFrame.lookVector*0
  1503. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  1504. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  1505. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  1506. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  1507. Dam=math.random(5,10)
  1508. Humanoid.Health=Humanoid.Health-Dam
  1509. MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
  1510. --[[for i=0,1,0.2 do
  1511. swait()
  1512. if Mode=="Binary" then
  1513. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  1514. end
  1515. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  1516. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  1517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  1518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  1519. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  1520. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  1521. end
  1522. for i=0,1,0.1 do
  1523. swait()
  1524. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  1525. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  1526. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  1527. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  1528. end]]
  1529. swait(10)
  1530. Humanoid.WalkSpeed=16
  1531. end
  1532.  
  1533. function attackone()
  1534. attack=true
  1535. for i=0,1,0.1 do
  1536. swait()
  1537. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  1538. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1539. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1540. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  1541. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  1542. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1543. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1544. end
  1545. hitbox1.Parent=model1
  1546. hitbox1.Size=vt(1,5,1)
  1547. hitbox1.Transparency=1
  1548. hitbox1.CFrame=prt10.CFrame
  1549. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1550. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1551. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  1552. blcf=nil
  1553. scfr=nil
  1554. for i=0,1,0.25 do
  1555. swait()
  1556. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1557. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1558. local h = 5
  1559. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1560. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1561. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1562. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1563. scfr = blcf
  1564. elseif not scfr then
  1565. scfr = blcf
  1566. end
  1567. hitbox1.CFrame=prt10.CFrame
  1568. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  1569. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  1570. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  1571. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  1572. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  1573. end
  1574. for i=0,1,0.1 do
  1575. swait()
  1576. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1577. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1578. local h = 5
  1579. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1580. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1581. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1582. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1583. scfr = blcf
  1584. elseif not scfr then
  1585. scfr = blcf
  1586. end
  1587. hitbox1.CFrame=prt10.CFrame
  1588. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  1589. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  1590. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  1591. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  1592. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  1593. end
  1594. con1:disconnect()
  1595. hitbox1.Parent=nil
  1596. attack=false
  1597. end
  1598.  
  1599. function attacktwo()
  1600. attack=true
  1601. for i=0,1,0.1 do
  1602. swait()
  1603. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1604. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  1605. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  1606. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1607. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  1608. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1609. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1610. end
  1611. hitbox1.Parent=model1
  1612. hitbox1.Size=vt(1,5,1)
  1613. hitbox1.Transparency=1
  1614. hitbox1.CFrame=prt10.CFrame
  1615. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1616. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1617. blcf=nil
  1618. scfr=nil
  1619. for i=0,1,0.1 do
  1620. swait()
  1621. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1622. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1623. local h = 5
  1624. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1625. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1626. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1627. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1628. scfr = blcf
  1629. elseif not scfr then
  1630. scfr = blcf
  1631. end
  1632. hitbox1.CFrame=prt10.CFrame
  1633. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  1634. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1635. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1636. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  1637. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  1638. end
  1639. con1:disconnect()
  1640. hitbox1.Parent=nil
  1641. attack=false
  1642. end
  1643.  
  1644. function attackthree()
  1645. attack=true
  1646. for i=0,1,0.1 do
  1647. swait()
  1648. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  1649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1650. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1651. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  1652. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  1653. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1654. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1655. end
  1656. hitbox1.Parent=model1
  1657. hitbox1.Size=vt(1,5,1)
  1658. hitbox1.Transparency=1
  1659. hitbox1.CFrame=prt10.CFrame
  1660. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1661. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  1662. blcf=nil
  1663. scfr=nil
  1664. for i=0,1,0.25 do
  1665. swait()
  1666. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1667. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1668. local h = 5
  1669. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1670. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1671. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1672. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1673. scfr = blcf
  1674. elseif not scfr then
  1675. scfr = blcf
  1676. end
  1677. hitbox1.CFrame=prt10.CFrame
  1678. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  1679. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  1680. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  1681. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  1682. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  1683. end
  1684. for i=0,1,0.2 do
  1685. swait()
  1686. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1687. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1688. local h = 5
  1689. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1690. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1691. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1692. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1693. scfr = blcf
  1694. elseif not scfr then
  1695. scfr = blcf
  1696. end
  1697. hitbox1.CFrame=prt10.CFrame
  1698. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  1699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  1700. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  1701. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  1702. end
  1703. con1:disconnect()
  1704. hitbox1.Parent=nil
  1705. attack=false
  1706. end
  1707.  
  1708. function SpinSlash()
  1709. attack=true
  1710. for i=0,1,0.1 do
  1711. swait()
  1712. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  1713. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  1714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  1715. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  1716. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  1717. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  1718. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  1719. end
  1720. hitbox1.Parent=model1
  1721. hitbox1.Size=vt(1,5,1)
  1722. hitbox1.Transparency=1
  1723. hitbox1.CFrame=prt10.CFrame
  1724. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
  1725. blcf=nil
  1726. scfr=nil
  1727. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  1728. repeat
  1729. hitbox1.Parent=model1
  1730. hitbox1.Size=vt(1,5,1)
  1731. hitbox1.Transparency=1
  1732. hitbox1.CFrame=prt10.CFrame
  1733. for i=0,1,0.15 do
  1734. swait()
  1735. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1736. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1737. local h = 5
  1738. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1739. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1740. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1741. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1742. scfr = blcf
  1743. elseif not scfr then
  1744. scfr = blcf
  1745. end
  1746. hitbox1.CFrame=prt10.CFrame
  1747. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  1748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  1749. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  1750. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  1751. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  1752. RH.C0=clerp(RH.C0,RHC0,.3)
  1753. LH.C0=clerp(LH.C0,LHC0,.3)
  1754. end
  1755. for i=0,1,0.05 do
  1756. swait()
  1757. if i>=0.45 and i<=0.5 then
  1758. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  1759. end
  1760. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1761. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1762. local h = 5
  1763. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1764. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1765. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1766. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1767. scfr = blcf
  1768. elseif not scfr then
  1769. scfr = blcf
  1770. end
  1771. hitbox1.CFrame=prt10.CFrame
  1772. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  1773. end
  1774. until hold==false
  1775. con1:disconnect()
  1776. hitbox1.Parent=nil
  1777. attack=false
  1778. end
  1779.  
  1780. function BinarySwing()
  1781. attack=true
  1782. for i=0,1,0.1 do
  1783. swait()
  1784. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  1786. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  1787. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  1788. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  1789. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  1790. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  1791. end
  1792. Humanoid.Jump=true
  1793. bodvol=Instance.new("BodyVelocity")
  1794. bodvol.Parent=RootPart
  1795. bodvol.velocity=vt(0,1,0)*100
  1796. bodvol.P=5000
  1797. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1798. --Torso.Velocity=vt(0,1,0)*100
  1799. hitbox1.Parent=model1
  1800. hitbox1.Size=vt(1,5,1)
  1801. hitbox1.Transparency=1
  1802. hitbox1.CFrame=prt10.CFrame
  1803. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
  1804. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1805. blcf=nil
  1806. scfr=nil
  1807. for i=0,1,0.1 do
  1808. swait()
  1809. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1810. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1811. local h = 5
  1812. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1813. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1814. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1815. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1816. scfr = blcf
  1817. elseif not scfr then
  1818. scfr = blcf
  1819. end
  1820. hitbox1.CFrame=prt10.CFrame
  1821. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  1822. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  1823. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1824. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  1825. RH.C0=clerp(RH.C0,RHC0,.3)
  1826. LH.C0=clerp(LH.C0,LHC0,.3)
  1827. end
  1828. con1:disconnect()
  1829. hitbox1.Parent=nil
  1830. bodvol.Parent=nil
  1831. attack=false
  1832. end
  1833.  
  1834. function BinaryImpulse()
  1835. attack=true
  1836. if impulse==1 then
  1837. impulse=2
  1838. Humanoid.Jump=true
  1839. for i=0,1,0.2 do
  1840. swait()
  1841. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1843. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  1844. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1845. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1846. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1847. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1848. end
  1849. blcf=nil
  1850. scfr=nil
  1851. hitbox1.Parent=model1
  1852. hitbox1.Size=vt(1,5,1)
  1853. hitbox1.Transparency=1
  1854. hitbox1.CFrame=prt10.CFrame
  1855. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
  1856. for i=1,3 do
  1857. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  1858. for i=0,1,0.1 do
  1859. swait()
  1860. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1861. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1862. local h = 5
  1863. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1864. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1865. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1866. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1867. scfr = blcf
  1868. elseif not scfr then
  1869. scfr = blcf
  1870. end
  1871. hitbox1.CFrame=prt10.CFrame
  1872. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1873. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1874. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  1875. end
  1876. end
  1877. con1:disconnect()
  1878. hitbox1.Parent=nil
  1879. elseif impulse==2 then
  1880. impulse=3
  1881. Humanoid.Jump=true
  1882. for i=0,1,0.2 do
  1883. swait()
  1884. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1886. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  1887. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1888. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1889. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1890. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1891. end
  1892. blcf=nil
  1893. scfr=nil
  1894. hitbox1.Parent=model1
  1895. hitbox1.Size=vt(1,5,1)
  1896. hitbox1.Transparency=1
  1897. hitbox1.CFrame=prt10.CFrame
  1898. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
  1899. for i=1,3 do
  1900. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  1901. for i=0,1,0.1 do
  1902. swait()
  1903. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1904. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1905. local h = 5
  1906. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1907. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1908. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1909. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1910. scfr = blcf
  1911. elseif not scfr then
  1912. scfr = blcf
  1913. end
  1914. hitbox1.CFrame=prt10.CFrame
  1915. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1916. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1917. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  1918. end
  1919. end
  1920. con1:disconnect()
  1921. hitbox1.Parent=nil
  1922. elseif impulse==3 then
  1923. impulse=1
  1924. for i=0,1,0.2 do
  1925. swait()
  1926. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  1927. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  1928. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1929. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  1930. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  1931. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1932. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1933. end
  1934. Humanoid.Jump=true
  1935. blcf=nil
  1936. scfr=nil
  1937. hitbox1.Parent=model1
  1938. hitbox1.Size=vt(1,5,1)
  1939. hitbox1.Transparency=1
  1940. hitbox1.CFrame=prt10.CFrame
  1941. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
  1942. for i=1,3 do
  1943. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  1944. for i=0,1,0.1 do
  1945. swait()
  1946. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1947. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1948. local h = 5
  1949. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1950. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1951. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1952. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1953. scfr = blcf
  1954. elseif not scfr then
  1955. scfr = blcf
  1956. end
  1957. hitbox1.CFrame=prt10.CFrame
  1958. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  1959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  1960. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  1961. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  1962. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  1963. end
  1964. end
  1965. con1:disconnect()
  1966. hitbox1.Parent=nil
  1967. end
  1968. attack=false
  1969. end
  1970.  
  1971. function Bash()
  1972. attack=true
  1973. for i=0,1,0.1 do
  1974. swait()
  1975. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1976. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1977. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1978. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1979. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1980. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1981. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1982. end
  1983. Torso.Velocity=RootPart.CFrame.lookVector*200
  1984. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1985. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1986. hit=nil
  1987. for i=1,20 do
  1988. if hit==nil then
  1989. swait()
  1990. end
  1991. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1992. end
  1993. Torso.Velocity=RootPart.CFrame.lookVector*0
  1994. Humanoid.WalkSpeed=0
  1995. for i=0,1,0.1 do
  1996. swait()
  1997. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1998. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1999. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  2000. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  2001. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  2002. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  2003. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  2004. end
  2005. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  2006. blcf=nil
  2007. scfr=nil
  2008. for i=0,1,0.2 do
  2009. swait()
  2010. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  2011. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  2012. local h = 5
  2013. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2014. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2015. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2016. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2017. scfr = blcf
  2018. elseif not scfr then
  2019. scfr = blcf
  2020. end
  2021. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  2022. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  2023. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  2024. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  2025. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  2026. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  2027. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  2028. end
  2029. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2030. if hit~=nil then
  2031. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  2032. ref.Anchored=true
  2033. ref.CFrame=cf(pos)
  2034. game:GetService("Debris"):AddItem(ref,3)
  2035. for i=1,10 do
  2036. Col=hit.BrickColor
  2037. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2038. groundpart.Anchored=true
  2039. groundpart.Material=hit.Material
  2040. groundpart.CanCollide=true
  2041. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2042. game:GetService("Debris"):AddItem(groundpart,5)
  2043. end
  2044. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  2045. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  2046. MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
  2047. end
  2048. swait(50)
  2049. Humanoid.WalkSpeed=16
  2050. attack=false
  2051. end
  2052.  
  2053. function UnleashTheDemon()
  2054. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Now you're in for a show, you'll be sent to the abyss when i'm done!", "Green")
  2055. wait(2.6)
  2056. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
  2057. attack=true
  2058. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  2059. for i=0,1,0.1 do
  2060. swait()
  2061. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  2062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  2063. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  2064. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  2065. RH.C0=clerp(RH.C0,RHC0,.4)
  2066. LH.C0=clerp(LH.C0,LHC0,.4)
  2067. end
  2068. wld1.Part1=Torso
  2069. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  2070. for i=0,1,0.1 do
  2071. swait()
  2072. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2073. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  2074. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  2075. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  2076. end
  2077. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  2078. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  2079. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  2080. num=0
  2081. for i=0,1,0.01 do
  2082. swait()
  2083. if num>=10 then
  2084. num=0
  2085. MagicWave(BrickColor.new("Really Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  2086. end
  2087. for i=1,2 do
  2088. if math.random(1,5)==1 then
  2089. MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2090. else
  2091. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2092. end
  2093. end
  2094. num=num+1
  2095. end
  2096. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  2097. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  2098. for i=1,4 do
  2099. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  2100. end
  2101. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  2102. Mode="Demon"
  2103. model2.Parent=Character
  2104. for i=1,#DBlade do
  2105. DBlade[i].Parent=model2
  2106. DBladeWelds[i].Parent=DBlade[1]
  2107. end
  2108. for i=0,1,0.1 do
  2109. swait()
  2110. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  2111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2112. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  2113. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  2114. end
  2115. swait(50)
  2116. attack=false
  2117. end
  2118.  
  2119. function Demonattackone()
  2120. attack=true
  2121. --[[
  2122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  2123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2124. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  2125. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  2126. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  2127. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  2128. ]]
  2129. for i=0,1,0.1 do
  2130. swait()
  2131. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  2132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  2133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  2134. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  2135. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  2136. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  2137. end
  2138. hitbox2.Parent=model2
  2139. hitbox2.Size=vt(1,6,1)
  2140. hitbox2.Transparency=1
  2141. hitbox2.CFrame=prtd7.CFrame
  2142. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2143. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  2144. blcf=nil
  2145. scfr=nil
  2146. for i=0,1,0.08 do
  2147. swait()
  2148. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2149. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2150. local h = 5
  2151. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2152. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2153. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2154. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2155. scfr = blcf
  2156. elseif not scfr then
  2157. scfr = blcf
  2158. end
  2159. hitbox2.CFrame=prtd7.CFrame
  2160. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  2161. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  2162. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  2163. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2164. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  2165. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  2166. end
  2167. con1:disconnect()
  2168. hitbox2.Parent=nil
  2169. attack=false
  2170. end
  2171.  
  2172. function Demonattacktwo()
  2173. attack=true
  2174. for i=0,1,0.1 do
  2175. swait()
  2176. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  2177. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  2178. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  2179. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2180. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  2181. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  2182. end
  2183. hitbox2.Parent=model2
  2184. hitbox2.Size=vt(1,6,1)
  2185. hitbox2.Transparency=1
  2186. hitbox2.CFrame=prtd7.CFrame
  2187. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2188. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  2189. blcf=nil
  2190. scfr=nil
  2191. for i=0,1,0.1 do
  2192. swait()
  2193. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2194. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2195. local h = 5
  2196. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2197. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2198. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2199. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2200. scfr = blcf
  2201. elseif not scfr then
  2202. scfr = blcf
  2203. end
  2204. hitbox2.CFrame=prtd7.CFrame
  2205. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  2206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  2207. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  2208. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2209. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  2210. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  2211. end
  2212. con1:disconnect()
  2213. hitbox2.Parent=nil
  2214. attack=false
  2215. end
  2216.  
  2217. function Demonattackthree()
  2218. attack=true
  2219. for i=0,1,0.1 do
  2220. swait()
  2221. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  2222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2223. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  2224. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  2225. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  2226. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  2227. end
  2228. Humanoid.WalkSpeed=0
  2229. hitbox2.Parent=model2
  2230. hitbox2.Size=vt(1,6,1)
  2231. hitbox2.Transparency=1
  2232. hitbox2.CFrame=prtd7.CFrame
  2233. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2234. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  2235. blcf=nil
  2236. scfr=nil
  2237. for i=0,1,0.15 do
  2238. swait()
  2239. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2240. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2241. local h = 5
  2242. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2243. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2244. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2245. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2246. scfr = blcf
  2247. elseif not scfr then
  2248. scfr = blcf
  2249. end
  2250. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  2251. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  2252. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  2253. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  2254. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  2255. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  2256. if i==0.6 then
  2257. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2258. if hit~=nil then
  2259. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  2260. ref.Anchored=true
  2261. ref.CFrame=cf(pos)
  2262. game:GetService("Debris"):AddItem(ref,3)
  2263. for i=1,5 do
  2264. Col=hit.BrickColor
  2265. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2266. groundpart.Anchored=true
  2267. groundpart.Material=hit.Material
  2268. groundpart.CanCollide=true
  2269. groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2270. game:GetService("Debris"):AddItem(groundpart,3)
  2271. end
  2272. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  2273. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  2274. MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
  2275. end
  2276. end
  2277. end
  2278. con1:disconnect()
  2279. hitbox2.Parent=nil
  2280. swait(10)
  2281. Humanoid.WalkSpeed=16
  2282. attack=false
  2283. end
  2284.  
  2285. function LetItBuild()
  2286. attack=true
  2287. for i=0,1,0.1 do
  2288. swait()
  2289. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  2290. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  2291. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  2292. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2293. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2294. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  2295. end
  2296. local num=0
  2297. local magik=0
  2298. local num2=0
  2299. while holdx==true do
  2300. swait()
  2301. if magik<25 then
  2302. if num>=10 then
  2303. Humanoid:TakeDamage(0)
  2304. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  2305. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  2306. Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
  2307. MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
  2308. MagicBlood(BrickColor.new("Really red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2309. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  2310. magik=magik+1
  2311. num=0
  2312. end
  2313. end
  2314. num=num+1
  2315. num2=num2+magik
  2316. if num2>=50 then
  2317. MagicBlood(BrickColor.new("Really Really black"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  2318. num2=0
  2319. end
  2320. --MagicBlock(BrickColor.new("Really red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
  2321. end
  2322. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  2323. blcf=nil
  2324. scfr=nil
  2325. hitbox2.Parent=model2
  2326. hitbox2.Size=vt(1,6,1)
  2327. hitbox2.Transparency=1
  2328. hitbox2.CFrame=prtd7.CFrame
  2329. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
  2330. for i=1,3 do
  2331. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  2332. for i=0,1,0.1 do
  2333. swait()
  2334. hitbox2.CFrame=prtd7.CFrame
  2335. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2336. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2337. local h = 5
  2338. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2339. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2340. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2341. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2342. scfr = blcf
  2343. elseif not scfr then
  2344. scfr = blcf
  2345. end
  2346. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  2347. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  2348. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2349. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2350. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  2351. end
  2352. end
  2353. con1:disconnect()
  2354. hitbox2.Parent=nil
  2355. attack=false
  2356. end
  2357.  
  2358. function YourMoveCreep()
  2359. attack=true
  2360. local pers=nil
  2361. for i=0,1,0.1 do
  2362. swait()
  2363. cost=Humanoid.Health-0
  2364. Humanoid:TakeDamage(0)
  2365. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  2366. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  2367. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  2368. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  2369. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  2370. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  2371. end
  2372. local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
  2373. blockprt.Anchored=true
  2374. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2375. conbl=blockprt.Touched:connect(function(hit)
  2376. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  2377. hit=hit.Parent.Parent.Torso
  2378. end
  2379. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  2380. pers=hit
  2381. print("HIT")
  2382. guard=false
  2383. end
  2384. end)
  2385. num=0
  2386. while guard==true do
  2387. swait()
  2388. if num>10 then
  2389. num=0
  2390. MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  2391. MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  2392. end
  2393. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2394. num=num+1
  2395. end
  2396. conbl:disconnect()
  2397. blockprt.Parent=nil
  2398. print(pers)
  2399. if pers~=nil then
  2400. for i=0,1,0.1 do
  2401. swait()
  2402. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  2403. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  2404. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  2405. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2406. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  2407. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  2408. end
  2409. swait(200)
  2410. end
  2411. attack=false
  2412. end
  2413.  
  2414. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  2415. for _,c in pairs(workspace:children()) do
  2416. local hum=c:findFirstChild("Humanoid")
  2417. if hum~=nil then
  2418. local head=c:findFirstChild("Torso")
  2419. if head~=nil then
  2420. local targ=head.Position-Part.Position
  2421. local mag=targ.magnitude
  2422. if mag<=magni and c.Name~=Player.Name then
  2423. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  2424. end
  2425. end
  2426. end
  2427. end
  2428. end
  2429.  
  2430. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2431. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2432. end
  2433.  
  2434. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2435. LastPoint=Point
  2436. function effect(Color,Ref,LP,P1,returnn)
  2437. local effectsmsh=Instance.new("CylinderMesh")
  2438. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2439. effectsmsh.Name="Mesh"
  2440. local effectsg=Instance.new("Part")
  2441. effectsg.formFactor=3
  2442. effectsg.CanCollide=false
  2443. effectsg.Name="Eff"
  2444. effectsg.Locked=true
  2445. effectsg.Anchored=true
  2446. effectsg.Size=Vector3.new(0.5,1,0.5)
  2447. effectsg.Parent=workspace
  2448. effectsmsh.Parent=effectsg
  2449. effectsg.BrickColor=BrickColor.new(Color)
  2450. effectsg.Reflectance=Ref
  2451. local point1=P1
  2452. local mg=(LP.p - point1.p).magnitude
  2453. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2454. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2455. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2456. game:GetService("Debris"):AddItem(effectsg,2)
  2457. if returnn then return effectsg end
  2458. coroutine.resume(coroutine.create(function(Part,Mesh)
  2459. if not returnn then
  2460. for i=0,1,0.05 do
  2461. wait()
  2462. Part.Transparency=1*i
  2463. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  2464. end
  2465. Part.Parent=nil
  2466. end
  2467. end),effectsg,effectsmsh)
  2468. end
  2469.  
  2470. local function CFrameFromTopBack(at, top, back)
  2471. local right = top:Cross(back)
  2472. return CFrame.new(at.x, at.y, at.z,
  2473. right.x, top.x, back.x,
  2474. right.y, top.y, back.y,
  2475. right.z, top.z, back.z)
  2476. end
  2477.  
  2478. function Triangle(a, b, c)
  2479. local edg1 = (c-a):Dot((b-a).unit)
  2480. local edg2 = (a-b):Dot((c-b).unit)
  2481. local edg3 = (b-c):Dot((a-c).unit)
  2482. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2483. a, b, c = a, b, c
  2484. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2485. a, b, c = b, c, a
  2486. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2487. a, b, c = c, a, b
  2488. else
  2489. assert(false, "unreachable")
  2490. end
  2491.  
  2492. local len1 = (c-a):Dot((b-a).unit)
  2493. local len2 = (b-a).magnitude - len1
  2494. local width = (a + (b-a).unit*len1 - c).magnitude
  2495.  
  2496. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2497.  
  2498. local list = {}
  2499.  
  2500. if len2 > 0.01 then
  2501. end
  2502. return unpack(list)
  2503. end
  2504. --[[
  2505. Things for effects
  2506. put the variables in one table
  2507. like effect={brick,interval,i}
  2508. ]]
  2509. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2510. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2511. prt.Anchored=true
  2512. prt.CFrame=cframe
  2513. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2514. game:GetService("Debris"):AddItem(prt,5)
  2515. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  2516. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  2517. for i=0,1,delay do
  2518. wait()
  2519. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2520. Part.Transparency=i
  2521. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2522. end
  2523. Part.Parent=nil
  2524. end),prt,msh)]]
  2525. end
  2526.  
  2527. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2528. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2529. prt.Anchored=true
  2530. prt.CFrame=cframe
  2531. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2532. game:GetService("Debris"):AddItem(prt,5)
  2533. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2534. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2535. local wld=nil
  2536. for i=0,1,delay do
  2537. wait()
  2538. Part.CFrame=Part.CFrame
  2539. Part.Transparency=i
  2540. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2541. end
  2542. Part.Parent=nil
  2543. end),prt,msh)]]
  2544. end
  2545.  
  2546. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2547. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2548. prt.Anchored=true
  2549. prt.CFrame=cframe
  2550. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2551. game:GetService("Debris"):AddItem(prt,5)
  2552. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2553. end
  2554.  
  2555. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2556. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2557. prt.Anchored=true
  2558. prt.CFrame=cframe
  2559. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  2560. game:GetService("Debris"):AddItem(prt,5)
  2561. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2562. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2563. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2564. for i=0,1,delay do
  2565. wait()
  2566. Part.CFrame=Part.CFrame
  2567. Part.Transparency=i
  2568. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2569. end
  2570. Part.Parent=nil
  2571. end),prt,msh)]]
  2572. end
  2573.  
  2574. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2575. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2576. prt.Anchored=true
  2577. prt.CFrame=cframe
  2578. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2579. game:GetService("Debris"):AddItem(prt,5)
  2580. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2581. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2582. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2583. for i=0,1,delay do
  2584. wait()
  2585. Part.CFrame=Part.CFrame
  2586. Part.Transparency=i
  2587. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2588. end
  2589. Part.Parent=nil
  2590. end),prt,msh)]]
  2591. end
  2592.  
  2593. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2594. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2595. prt.Anchored=true
  2596. prt.CFrame=cframe
  2597. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2598. game:GetService("Debris"):AddItem(prt,5)
  2599. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  2600. end
  2601.  
  2602. function ElecEffect(cff,x,y,z)
  2603. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  2604. prt.Anchored=true
  2605. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2606. prt.CFrame=cf(prt.Position)
  2607. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2608. game:GetService("Debris"):AddItem(prt,2)
  2609. xval=math.random()/2
  2610. yval=math.random()/2
  2611. zval=math.random()/2
  2612. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2613. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  2614. end
  2615.  
  2616. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2617. --[[p0=pos1
  2618. p1=pos2
  2619. tym=times
  2620. ofs=offset
  2621. col=color
  2622. th=size
  2623. tra=transparency
  2624. last=lastingtime]]
  2625. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2626. for i=1,tym do
  2627. 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)
  2628. 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)])
  2629. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2630. if tym == i then
  2631. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2632. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2633. else
  2634. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2635. end
  2636. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  2637. end
  2638. end
  2639.  
  2640. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2641. if hit.Parent==nil then
  2642. return
  2643. end
  2644. h=hit.Parent:FindFirstChild("Humanoid")
  2645. for _,v in pairs(hit.Parent:children()) do
  2646. if v:IsA("Humanoid") then
  2647. h=v
  2648. end
  2649. end
  2650. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2651. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2652. end
  2653. if hit.Parent.className=="Hat" then
  2654. hit=hit.Parent.Parent:findFirstChild("Head")
  2655. end
  2656. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  2657. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2658. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2659. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2660. return
  2661. end]]
  2662. -- hs(hit,1.2)
  2663. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  2664. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  2665. c=Instance.new("ObjectValue")
  2666. c.Name="creator"
  2667. c.Value=game:service("Players").LocalPlayer
  2668. c.Parent=h
  2669. game:GetService("Debris"):AddItem(c,.5)
  2670. Damage=math.random(minim,maxim)
  2671. if Mode=="Demon" then
  2672. Damage=Damage+damcount
  2673. end
  2674. -- h:TakeDamage()
  2675. blocked=false
  2676. block=hit.Parent:findFirstChild("Block")
  2677. if block~=nil then
  2678. print(block.className)
  2679. if block.className=="NumberValue" then
  2680. if block.Value>0 then
  2681. blocked=true
  2682. if decreaseblock==nil then
  2683. block.Value=block.Value-1
  2684. end
  2685. end
  2686. end
  2687. if block.className=="IntValue" then
  2688. if block.Value>0 then
  2689. blocked=true
  2690. if decreaseblock~=nil then
  2691. block.Value=block.Value-1
  2692. end
  2693. end
  2694. end
  2695. end
  2696. if blocked==false then
  2697. -- h:TakeDamage(Damage)
  2698. h.Health=h.Health-Damage
  2699. else
  2700. h.Health=h.Health-(Damage/0)
  2701. end
  2702. if Type=="Knockdown" then
  2703. hum=hit.Parent.Humanoid
  2704. hum.PlatformStand=true
  2705. coroutine.resume(coroutine.create(function(HHumanoid)
  2706. swait(1)
  2707. HHumanoid.PlatformStand=false
  2708. end),hum)
  2709. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2710. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2711. local bodvol=Instance.new("BodyVelocity")
  2712. bodvol.velocity=angle*knockback
  2713. bodvol.P=5000
  2714. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2715. bodvol.Parent=hit
  2716. rl=Instance.new("BodyAngularVelocity")
  2717. rl.P=3000
  2718. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2719. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2720. rl.Parent=hit
  2721. game:GetService("Debris"):AddItem(bodvol,.5)
  2722. game:GetService("Debris"):AddItem(rl,.5)
  2723. elseif Type=="Normal" then
  2724. vp=Instance.new("BodyVelocity")
  2725. vp.P=500
  2726. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2727. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2728. if KnockbackType==1 then
  2729. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  2730. elseif KnockbackType==2 then
  2731. vp.velocity=Property.CFrame.lookVector*knockback
  2732. end
  2733. if knockback>-100 then
  2734. vp.Parent=hit.Parent.Torso
  2735. end
  2736. game:GetService("Debris"):AddItem(vp,.5)
  2737. elseif Type=="Lifesteal" then
  2738. for i=1,5 do
  2739. MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2740. end
  2741. vp=Instance.new("BodyVelocity")
  2742. vp.P=500
  2743. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2744. if KnockbackType==1 then
  2745. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  2746. elseif KnockbackType==2 then
  2747. vp.velocity=Property.CFrame.lookVector*knockback
  2748. end
  2749. if knockback>-250 then
  2750. vp.Parent=hit.Parent.Torso
  2751. end
  2752. game:GetService("Debris"):AddItem(vp,.5)
  2753. Heal=math.ceil(Damage/25100)
  2754. Humanoid.Health=Humanoid.Health+Heal
  2755. elseif Type=="Up" then
  2756. local bodyVelocity=Instance.new("BodyVelocity")
  2757. bodyVelocity.velocity=vt(0,30,0)
  2758. bodyVelocity.P=5000
  2759. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2760. bodyVelocity.Parent=hit
  2761. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2762. rl=Instance.new("BodyAngularVelocity")
  2763. rl.P=3000
  2764. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2765. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2766. rl.Parent=hit
  2767. game:GetService("Debris"):AddItem(rl,.5)
  2768. elseif Type=="Snare" then
  2769. bp=Instance.new("BodyPosition")
  2770. bp.P=2000
  2771. bp.D=100
  2772. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2773. bp.position=hit.Parent.Torso.Position
  2774. bp.Parent=hit.Parent.Torso
  2775. game:GetService("Debris"):AddItem(bp,1)
  2776. elseif Type=="Charge" then
  2777. Charge=Charge+1
  2778. coroutine.resume(coroutine.create(function(Part)
  2779. swait(30)
  2780. for i=1,5 do
  2781. swait(5)
  2782. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  2783. MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  2784. newdam=math.random(1,5)
  2785. if blocked==false then
  2786. h:TakeDamage()
  2787. else
  2788. h:TakeDamage(newdam/0)
  2789. end
  2790. end
  2791. end),hit)
  2792. end
  2793. debounce=Instance.new("BoolValue")
  2794. debounce.Name="DebounceHit"
  2795. debounce.Parent=hit.Parent
  2796. debounce.Value=true
  2797. game:GetService("Debris"):AddItem(debounce,Delay)
  2798. c=Instance.new("ObjectValue")
  2799. c.Name="creator"
  2800. c.Value=Player
  2801. c.Parent=h
  2802. game:GetService("Debris"):AddItem(c,.5)
  2803. CRIT=false
  2804. hitDeb=true
  2805. AttackPos=6
  2806. end
  2807. end
  2808.  
  2809. showDamage=function(Char,Dealt,du,Color)
  2810. m=Instance.new("Model")
  2811. m.Name=tostring(Dealt)
  2812. h=Instance.new("Humanoid")
  2813. h.Health=0
  2814. h.MaxHealth=0
  2815. h.Parent=m
  2816. c=Instance.new("Part")
  2817. c.Transparency=1
  2818. c.BrickColor=Color
  2819. c.Name="Head"
  2820. c.TopSurface=0
  2821. c.BottomSurface=0
  2822. c.formFactor="Plate"
  2823. c.Size=Vector3.new(1,.4,1)
  2824. ms=Instance.new("CylinderMesh")
  2825. ms.Scale=Vector3.new(.8,.8,.8)
  2826. if CRIT==true then
  2827. ms.Scale=Vector3.new(1,1.25,1)
  2828. end
  2829. ms.Parent=c
  2830. c.Reflectance=0
  2831. Instance.new("BodyGyro").Parent=c
  2832. c.Parent=m
  2833. if Char:findFirstChild("Head")~=nil then
  2834. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2835. elseif Char.Parent:findFirstChild("Head")~=nil then
  2836. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2837. end
  2838. f=Instance.new("BodyPosition")
  2839. f.P=2000
  2840. f.D=100
  2841. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2842. f.position=c.Position+Vector3.new(0,3,0)
  2843. f.Parent=c
  2844. game:GetService("Debris"):AddItem(m,.5+du)
  2845. c.CanCollide=false
  2846. m.Parent=workspace
  2847. c.CanCollide=false
  2848. end
  2849.  
  2850. combo=0
  2851. function ob1d(mouse)
  2852. hold=true
  2853. if attack==true or equipped==false then return end
  2854. if Mode=="Binary" then
  2855. idle=0
  2856. if Anim=="Run" then
  2857. SpinSlash()
  2858. else
  2859. if combo==0 then
  2860. combo=1
  2861. attackone()
  2862. elseif combo==1 then
  2863. combo=2
  2864. attacktwo()
  2865. elseif combo==2 then
  2866. combo=0
  2867. attackthree()
  2868. end
  2869. end
  2870. else
  2871. if combo==0 then
  2872. combo=1
  2873. Demonattackone()
  2874. elseif combo==1 then
  2875. combo=2
  2876. Demonattacktwo()
  2877. elseif combo==2 then
  2878. combo=0
  2879. Demonattackthree()
  2880. end
  2881. end
  2882. coroutine.resume(coroutine.create(function()
  2883. for i=1,20 do
  2884. if attack==false then
  2885. swait()
  2886. end
  2887. end
  2888. if attack==false then
  2889. combo=0
  2890. --equipanim()
  2891. end
  2892. end))
  2893. end
  2894.  
  2895. function ob1u(mouse)
  2896. hold = false
  2897. end
  2898.  
  2899. buttonhold = false
  2900.  
  2901. eul=0
  2902. holdx=false
  2903. equipped=false
  2904. function key(key)
  2905. if key=="c" then
  2906. if guard==true then
  2907. guard=false
  2908. else
  2909. guard=true
  2910. end
  2911. end
  2912. if key=="x" then
  2913. holdx=true
  2914. end
  2915. if attack==true then return end
  2916. if key=="f" then
  2917. if equipped==false then
  2918. equipped=true
  2919. RSH=ch.Torso["Right Shoulder"]
  2920. LSH=ch.Torso["Left Shoulder"]
  2921. --
  2922. RSH.Parent=nil
  2923. LSH.Parent=nil
  2924. --
  2925. RW.Name="Right Shoulder"
  2926. RW.Part0=ch.Torso
  2927. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2928. RW.C1=cf(0, 0.5, 0)
  2929. RW.Part1=ch["Right Arm"]
  2930. RW.Parent=ch.Torso
  2931. --
  2932. LW.Name="Left Shoulder"
  2933. LW.Part0=ch.Torso
  2934. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2935. LW.C1=cf(0, 0.5, 0)
  2936. LW.Part1=ch["Left Arm"]
  2937. LW.Parent=ch.Torso
  2938. --
  2939. equipanim()
  2940. else
  2941. equipped=false
  2942. hideanim()
  2943. swait(0)
  2944. RW.Parent=nil
  2945. LW.Parent=nil
  2946. RSH.Parent=player.Character.Torso
  2947. LSH.Parent=player.Character.Torso
  2948. end
  2949. end
  2950. if equipped==false then return end
  2951. if Mode=="Binary" then
  2952. if key=="q" then
  2953. idle=500
  2954. end
  2955. if key=="z" and hitfloor~=nil then
  2956. BinarySwing()
  2957. end
  2958. if key=="x" then
  2959. BinaryImpulse()
  2960. end
  2961. if key=="c" then
  2962. Bash()
  2963. end
  2964. if key=="v" then
  2965. UnleashTheDemon()
  2966. end
  2967. end
  2968. if Mode=="Demon" then
  2969. if key=="x" then
  2970. LetItBuild()
  2971. end
  2972. if key=="c" then
  2973. YourMoveCreep()
  2974. end
  2975. end
  2976. if key=="0" then
  2977. Humanoid.WalkSpeed=(180)
  2978. end
  2979. end
  2980.  
  2981. function key2(key)
  2982. if key=="0" then
  2983. Humanoid.WalkSpeed=16
  2984. end
  2985. if key=="x" then
  2986. holdx=false
  2987. end
  2988. end
  2989.  
  2990. function s(mouse)
  2991. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2992. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2993. mouse.KeyDown:connect(key)
  2994. mouse.KeyUp:connect(key2)
  2995.  
  2996. player=Player
  2997. ch=Character
  2998. MMouse=mouse
  2999. end
  3000.  
  3001. function ds(mouse)
  3002. end
  3003.  
  3004. Bin.Selected:connect(s)
  3005. Bin.Deselected:connect(ds)
  3006. print("Fixer the Demon Mercenary loaded.")
  3007.  
  3008. local thenum=0
  3009. while true do
  3010. swait()
  3011. if Mode=="Demon" then
  3012. if thenum>=5 then
  3013. ElecEffect(prtd7.CFrame,2,4,2)
  3014. thenum=0
  3015. end
  3016. thenum=thenum+1
  3017. for _,c in pairs(Character:children()) do
  3018. for _,v in pairs(c:children()) do
  3019. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  3020. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  3021. v.Parent=nil
  3022. end
  3023. end
  3024. end
  3025. end
  3026. end
  3027. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3028. local velderp=RootPart.Velocity.y
  3029. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3030. if equipped==true then
  3031. if Anim=="Idle" and attack==false and Mode=="Binary" then
  3032. idle=idle+1
  3033. else
  3034. idle=0
  3035. end
  3036. if idleanim>=0.3 then
  3037. idleanim2=true
  3038. elseif idleanim<=0 then
  3039. idleanim2=false
  3040. end
  3041. if idleanim2==false then
  3042. if Anim=="Walk" then
  3043. idleanim=idleanim+0.005
  3044. elseif Anim=="Idle" then
  3045. idleanim=idleanim+0.003
  3046. end
  3047. else
  3048. if Anim=="Walk" then
  3049. idleanim=idleanim-0.005
  3050. elseif Anim=="Idle" then
  3051. idleanim=idleanim-0.003
  3052. end
  3053. end
  3054. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3055. Anim="Jump"
  3056. if attack==false and Mode=="Binary" then
  3057. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3058. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  3059. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3061. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3062. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  3063. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  3064. end
  3065. if attack==false and Mode=="Demon" then
  3066. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3067. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3068. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  3069. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  3070. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  3071. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  3072. end
  3073. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3074. Anim="Fall"
  3075. if attack==false and Mode=="Binary" then
  3076. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  3078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3079. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  3080. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3081. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3082. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3083. end
  3084. if attack==false and Mode=="Demon" then
  3085. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  3086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  3087. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  3088. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  3089. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  3090. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  3091. end
  3092. elseif torvel<1 and hitfloor~=nil then
  3093. if Anim=="Fall" then
  3094. if velderp<=-70 then
  3095. coroutine.resume(coroutine.create(function()
  3096. Stomp()
  3097. end))
  3098. end
  3099. end
  3100. Anim="Idle"
  3101. if idle<=500 then
  3102. if attack==false and Mode=="Binary" then
  3103. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  3104. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  3105. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  3106. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  3107. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  3108. RH.C0=clerp(RH.C0,RHC0,.2)
  3109. LH.C0=clerp(LH.C0,LHC0,.2)
  3110. end
  3111. if attack==false and Mode=="Demon" then
  3112. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  3113. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  3114. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  3115. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  3116. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  3117. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  3118. end
  3119. else
  3120. if attack==false and Mode=="Binary" then
  3121. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  3122. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  3123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  3124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  3125. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  3126. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  3127. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  3128. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  3129. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  3130. end
  3131. end
  3132. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3133. if Anim=="Fall" then
  3134. if velderp<=-70 then
  3135. coroutine.resume(coroutine.create(function()
  3136. Stomp()
  3137. end))
  3138. end
  3139. end
  3140. Anim="Walk"
  3141. if attack==false and Mode=="Binary" then
  3142. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  3143. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3144. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3145. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3146. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  3147. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  3148. RH.C0=clerp(RH.C0,RHC0,.3)
  3149. LH.C0=clerp(LH.C0,LHC0,.3)
  3150. end
  3151. if attack==false and Mode=="Demon" then
  3152. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3153. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3154. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  3155. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  3156. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  3157. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  3158. end
  3159. elseif torvel>=22 and hitfloor~=nil then
  3160. if Anim=="Fall" then
  3161. if velderp<=-70 then
  3162. coroutine.resume(coroutine.create(function()
  3163. Stomp()
  3164. end))
  3165. end
  3166. end
  3167. Anim="Run"
  3168. if attack==false and Mode=="Binary" then
  3169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  3170. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  3171. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  3172. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  3173. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  3174. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  3175. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  3176. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  3177. end
  3178. if attack==false and Mode=="Demon" then
  3179. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  3180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  3181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  3182. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  3183. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  3184. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  3185. end
  3186. end
  3187. end
  3188. if #Effects>0 then
  3189. --table.insert(Effects,{prt,"Block1",delay})
  3190. for e=1,#Effects do
  3191. if Effects[e]~=nil then
  3192. --for j=1,#Effects[e] do
  3193. local Thing=Effects[e]
  3194. if Thing~=nil then
  3195. local Part=Thing[1]
  3196. local Mode=Thing[2]
  3197. local Delay=Thing[3]
  3198. local IncX=Thing[4]
  3199. local IncY=Thing[5]
  3200. local IncZ=Thing[6]
  3201. if Thing[1].Transparency<=1 then
  3202. if Thing[2]=="Block1" then
  3203. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3204. Mesh=Thing[1].Mesh
  3205. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3206. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3207. elseif Thing[2]=="Cylinder" then
  3208. Mesh=Thing[1].Mesh
  3209. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3210. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3211. elseif Thing[2]=="Blood" then
  3212. Mesh=Thing[1].Mesh
  3213. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3214. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3215. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3216. elseif Thing[2]=="Elec" then
  3217. Mesh=Thing[1].Mesh
  3218. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3219. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3220. elseif Thing[2]=="Disappear" then
  3221. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3222. end
  3223. else
  3224. Part.Parent=nil
  3225. table.remove(Effects,e)
  3226. end
  3227. end
  3228. --end
  3229. end
  3230. end
  3231. end
  3232. end
  3233.  
  3234.  
  3235. plr.Chatted:connect(message)
  3236.  
  3237.  
  3238. --[pastebin url: http://pastebin.com/raw/vJmtAYPe]]--
  3239.  
  3240. function clerp(c1,c2,al)
  3241. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3242. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  3243. for i,v in pairs(com1) do
  3244. com1[i] = v+(com2[i]-v)*al
  3245. end
  3246. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  3247. end
  3248.  
  3249. ff = Instance.new("ForceField")
  3250. Value = Instance.new("BoolValue", char)
  3251. gui = Instance.new("BillboardGui", head)
  3252. fra = Instance.new("TextLabel", gui)
  3253. plr = game:service'Players'.LocalPlayer
  3254. plrgui = plr:findFirstChild'PlayerGui'
  3255. plrmouse = plr:GetMouse()
  3256. char = plr.Character
  3257. humanoid = char:findFirstChild("Humanoid")
  3258. torso = char:findFirstChild("Torso")
  3259. head = char.Head
  3260. humanoid.Health = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3261. humanoid.WalkSpeed = 25
  3262. ra = char:findFirstChild("Right Arm")
  3263. la = char:findFirstChild("Left Arm")
  3264. rl = char:findFirstChild("Right Leg")
  3265. ll = char:findFirstChild("Left Leg")
  3266. rs = torso:findFirstChild("Right Shoulder")
  3267. ls = torso:findFirstChild("Left Shoulder")
  3268. rh = torso:findFirstChild("Right Hip")
  3269. lh = torso:findFirstChild("Left Hip")
  3270. neck = torso:findFirstChild("Neck")
  3271. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  3272. rootpart = char:findFirstChild("HumanoidRootPart")
  3273. camera = workspace.CurrentCamera
  3274. anim = char:findFirstChild("Animate")
  3275.  
  3276.  
  3277. local rm = Instance.new("Weld")
  3278. rm.C0 = CFrame.new(1.5, 0.5, 0)
  3279. rm.C1 = CFrame.new(0, 0.5, 0)
  3280. rm.Part0 = torso
  3281. rm.Part1 = ra
  3282. rm.Name = 'Right Shoulder'
  3283.  
  3284. local lm = Instance.new("Weld")
  3285. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  3286. lm.C1 = CFrame.new(0, 0.5, 0)
  3287. lm.Part0 = torso
  3288. lm.Part1 = la
  3289. lm.Name = 'Left Shoulder'
  3290.  
  3291. local tool = Instance.new('HopperBin', plr.Backpack)
  3292. tool.Name = 'Dual Blue Gusters'
  3293.  
  3294. function scan(parent)
  3295. local parts,last = {}
  3296. for _,v in pairs(parent:GetChildren()) do
  3297. if (v:IsA("BasePart")) then
  3298. v.Anchored = true
  3299. if (last) then
  3300. local w = Instance.new("Weld")
  3301. w.Name = ("%s_Weld"):format(v.Name)
  3302. w.Part0,w.Part1 = last,v
  3303. w.C0 = last.CFrame:inverse()
  3304. w.C1 = v.CFrame:inverse()
  3305. w.Parent = last
  3306. end
  3307. last = v
  3308. table.insert(parts,v)
  3309. end
  3310. scan(v)
  3311. end
  3312. for _,v in pairs(parts) do
  3313. v.Anchored = false
  3314. v.Locked = true
  3315. v.CanCollide = false
  3316. end
  3317. end
  3318.  
  3319. --1-Torso
  3320. holsters=Instance.new("Model")
  3321. holsters.Name="Torso"
  3322. holsters.Parent=char
  3323. --2-HolsterWeldTo2
  3324. obj2=Instance.new("Part")
  3325. obj2.CFrame=CFrame.new(Vector3.new(14.8519955,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3326. obj2.FormFactor=Enum.FormFactor.Custom
  3327. obj2.LeftSurface=10
  3328. obj2.Transparency=1
  3329. obj2.TopSurface=10
  3330. obj2.RightSurface=10
  3331. obj2.Material="SmoothPlastic"
  3332. obj2.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  3333. obj2.FrontSurface=10
  3334. obj2.BottomSurface=10
  3335. obj2.BackSurface=10
  3336. obj2.BrickColor=BrickColor.new("Really blue")
  3337. obj2.Name="HolsterWeldTo2"
  3338. obj2.Parent=holsters
  3339. --3-Mesh
  3340. obj3=Instance.new("BlockMesh")
  3341. obj3.Scale=Vector3.new(0.999499977,1,1)
  3342. obj3.Parent=obj2
  3343. --4-Belt
  3344. obj4=Instance.new("Part")
  3345. obj4.CFrame=CFrame.new(Vector3.new(13.6000061,1.49000156,35.8999977)) * CFrame.Angles(-1.4901162970204e-008,0,-0)
  3346. obj4.FormFactor=Enum.FormFactor.Custom
  3347. obj4.LeftSurface=10
  3348. obj4.TopSurface=10
  3349. obj4.RightSurface=10
  3350. obj4.Material="SmoothPlastic"
  3351. obj4.Size=Vector3.new(2,0.200000003,1)
  3352. obj4.FrontSurface=10
  3353. obj4.BottomSurface=10
  3354. obj4.BackSurface=10
  3355. obj4.BrickColor=BrickColor.new("Really blue")
  3356. obj4.Name="Belt"
  3357. obj4.Parent=holsters
  3358. --5-Mesh
  3359. obj5=Instance.new("BlockMesh")
  3360. obj5.Scale=Vector3.new(1.10000002,1,1.10000002)
  3361. obj5.Parent=obj4
  3362. --6-Hold2
  3363. obj6=Instance.new("Part")
  3364. obj6.CFrame=CFrame.new(Vector3.new(14.8000011,1.0950017,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  3365. obj6.FormFactor=Enum.FormFactor.Custom
  3366. obj6.LeftSurface=10
  3367. obj6.TopSurface=10
  3368. obj6.RightSurface=10
  3369. obj6.Material="SmoothPlastic"
  3370. obj6.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  3371. obj6.FrontSurface=10
  3372. obj6.BottomSurface=10
  3373. obj6.BackSurface=10
  3374. obj6.BrickColor=BrickColor.new("Really blue")
  3375. obj6.Name="Hold2"
  3376. obj6.Parent=holsters
  3377. --7-TorsoWeld
  3378. obj7=Instance.new("Part")
  3379. obj7.CFrame=CFrame.new(Vector3.new(13.6000061,1.99000168,35.8999939)) * CFrame.Angles(-0,0,-0)
  3380. obj7.FormFactor=Enum.FormFactor.Custom
  3381. obj7.LeftSurface=10
  3382. obj7.Transparency=1
  3383. obj7.TopSurface=10
  3384. obj7.RightSurface=10
  3385. obj7.Size=Vector3.new(2,2,1)
  3386. obj7.FrontSurface=10
  3387. obj7.BottomSurface=10
  3388. obj7.BackSurface=10
  3389. obj7.BrickColor=BrickColor.new("Bright blue")
  3390. obj7.Name="TorsoWeld"
  3391. obj7.Parent=holsters
  3392. --8-HolsterWeldTo
  3393. obj8=Instance.new("Part")
  3394. obj8.CFrame=CFrame.new(Vector3.new(12.342,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3395. obj8.FormFactor=Enum.FormFactor.Custom
  3396. obj8.LeftSurface=10
  3397. obj8.Transparency=1
  3398. obj8.TopSurface=10
  3399. obj8.RightSurface=10
  3400. obj8.Material="SmoothPlastic"
  3401. obj8.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  3402. obj8.FrontSurface=10
  3403. obj8.BottomSurface=10
  3404. obj8.BackSurface=10
  3405. obj8.BrickColor=BrickColor.new("Really blue")
  3406. obj8.Name="HolsterWeldTo"
  3407. obj8.Parent=holsters
  3408. --9-Mesh
  3409. obj9=Instance.new("BlockMesh")
  3410. obj9.Scale=Vector3.new(0.999499977,1,1)
  3411. obj9.Parent=obj8
  3412. --10-Hold
  3413. obj10=Instance.new("Part")
  3414. obj10.CFrame=CFrame.new(Vector3.new(12.4000053,1.09500158,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  3415. obj10.FormFactor=Enum.FormFactor.Custom
  3416. obj10.LeftSurface=10
  3417. obj10.TopSurface=10
  3418. obj10.RightSurface=10
  3419. obj10.Material="SmoothPlastic"
  3420. obj10.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  3421. obj10.FrontSurface=10
  3422. obj10.BottomSurface=10
  3423. obj10.BackSurface=10
  3424. obj10.BrickColor=BrickColor.new("Really blue")
  3425. obj10.Name="Hold"
  3426. obj10.Parent=holsters
  3427. holsters:MakeJoints()
  3428. scan(holsters)
  3429.  
  3430. --1-M1911
  3431. gun=Instance.new("Model")
  3432. gun.Name="Blue Guster"
  3433. gun.Parent=char
  3434. --2-Handle
  3435. obj2=Instance.new("Part")
  3436. obj2.CFrame=CFrame.new(Vector3.new(12.3420238,1.86332655,36.3927727)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  3437. obj2.FormFactor=Enum.FormFactor.Custom
  3438. obj2.LeftSurface=10
  3439. obj2.TopSurface=10
  3440. obj2.RightSurface=10
  3441. obj2.Material=Enum.Material.Neon
  3442. obj2.Size=Vector3.new(0.200000003,0.99999994,0.400000036)
  3443. obj2.FrontSurface=10
  3444. obj2.BottomSurface=10
  3445. obj2.BackSurface=10
  3446. obj2.BrickColor=BrickColor.new("Really black")
  3447. obj2.Name="Handle"
  3448. obj2.Parent=gun
  3449. --3-Decor
  3450. obj3=Instance.new("Part")
  3451. obj3.CFrame=CFrame.new(Vector3.new(12.3420143,2.28510284,35.9773712)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  3452. obj3.FormFactor=Enum.FormFactor.Custom
  3453. obj3.LeftSurface=10
  3454. obj3.TopSurface=10
  3455. obj3.RightSurface=10
  3456. obj3.Material="SmoothPlastic"
  3457. obj3.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3458. obj3.FrontSurface=10
  3459. obj3.BottomSurface=10
  3460. obj3.BackSurface=10
  3461. obj3.BrickColor=BrickColor.new("Really blue")
  3462. obj3.Name="Decor"
  3463. obj3.Parent=gun
  3464. --4-Mesh
  3465. obj4=Instance.new("BlockMesh")
  3466. obj4.Offset=Vector3.new(0,0.00999999978,0.0399999991)
  3467. obj4.Scale=Vector3.new(0.699999988,0.200000003,0.800000012)
  3468. obj4.Parent=obj3
  3469. --5-Decor
  3470. obj5=Instance.new("Part")
  3471. obj5.CFrame=CFrame.new(Vector3.new(12.3420143,1.46716928,35.8617401)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3472. obj5.FormFactor=Enum.FormFactor.Custom
  3473. obj5.LeftSurface=10
  3474. obj5.TopSurface=10
  3475. obj5.RightSurface=10
  3476. obj5.Material="SmoothPlastic"
  3477. obj5.Size=Vector3.new(0.200000003,0.400000006,0.200000003)
  3478. obj5.FrontSurface=10
  3479. obj5.BottomSurface=10
  3480. obj5.BackSurface=10
  3481. obj5.BrickColor=BrickColor.new("Really blue")
  3482. obj5.Name="Decor"
  3483. obj5.Parent=gun
  3484. --6-Mesh
  3485. obj6=Instance.new("BlockMesh")
  3486. obj6.Scale=Vector3.new(0.600000024,1,0.200000003)
  3487. obj6.Parent=obj5
  3488. --7-Decor
  3489. obj7=Instance.new("Part")
  3490. obj7.CFrame=CFrame.new(Vector3.new(12.3420124,1.55429673,36.0928192)) * CFrame.Angles(0.45686540007591,-1.1175870895386e-008,3.141592502594)
  3491. obj7.FormFactor=Enum.FormFactor.Custom
  3492. obj7.LeftSurface=10
  3493. obj7.TopSurface=10
  3494. obj7.RightSurface=10
  3495. obj7.Material="SmoothPlastic"
  3496. obj7.Size=Vector3.new(0.200000003,0.310000002,0.200000003)
  3497. obj7.FrontSurface=10
  3498. obj7.BottomSurface=10
  3499. obj7.BackSurface=10
  3500. obj7.BrickColor=BrickColor.new("Really blue")
  3501. obj7.Name="Decor"
  3502. obj7.Parent=gun
  3503. --8-Mesh
  3504. obj8=Instance.new("BlockMesh")
  3505. obj8.Scale=Vector3.new(0.600000024,1,0.200000003)
  3506. obj8.Parent=obj7
  3507. --9-Decor
  3508. obj9=Instance.new("Part")
  3509. obj9.CFrame=CFrame.new(Vector3.new(12.3420258,2.21372294,35.8965569)) * CFrame.Angles(0.76370096206665,-1.4901161193848e-008,-3.1415927410126)
  3510. obj9.FormFactor=Enum.FormFactor.Custom
  3511. obj9.LeftSurface=10
  3512. obj9.TopSurface=10
  3513. obj9.RightSurface=10
  3514. obj9.Material="SmoothPlastic"
  3515. obj9.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3516. obj9.FrontSurface=10
  3517. obj9.BottomSurface=10
  3518. obj9.BackSurface=10
  3519. obj9.BrickColor=BrickColor.new("Really blue")
  3520. obj9.Name="Decor"
  3521. obj9.Parent=gun
  3522. --10-Mesh
  3523. obj10=Instance.new("BlockMesh")
  3524. obj10.Scale=Vector3.new(0.400000006,0.200000003,1)
  3525. obj10.Parent=obj9
  3526. --11-Decor
  3527. obj11=Instance.new("Part")
  3528. obj11.CFrame=CFrame.new(Vector3.new(12.3420229,1.8633275,36.2927704)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  3529. obj11.FormFactor=Enum.FormFactor.Custom
  3530. obj11.LeftSurface=10
  3531. obj11.TopSurface=10
  3532. obj11.RightSurface=10
  3533. obj11.Material="SmoothPlastic"
  3534. obj11.Size=Vector3.new(0.200000003,1.20000005,0.400000036)
  3535. obj11.FrontSurface=10
  3536. obj11.BottomSurface=10
  3537. obj11.BackSurface=10
  3538. obj11.BrickColor=BrickColor.new("Really blue")
  3539. obj11.Name="Decor"
  3540. obj11.Parent=gun
  3541. --12-Mesh
  3542. obj12=Instance.new("BlockMesh")
  3543. obj12.Offset=Vector3.new(0,-0.0700000003,0)
  3544. obj12.Scale=Vector3.new(0.995000005,0.949999988,1.20000005)
  3545. obj12.Parent=obj11
  3546. --13-Decor
  3547. obj13=Instance.new("Part")
  3548. obj13.CFrame=CFrame.new(Vector3.new(12.3420258,2.30202365,35.8373909)) * CFrame.Angles(1.756756901741,-1.0430812835693e-007,3.1415927410126)
  3549. obj13.FormFactor=Enum.FormFactor.Custom
  3550. obj13.LeftSurface=10
  3551. obj13.TopSurface=10
  3552. obj13.RightSurface=10
  3553. obj13.Material="SmoothPlastic"
  3554. obj13.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3555. obj13.FrontSurface=10
  3556. obj13.BottomSurface=10
  3557. obj13.BackSurface=10
  3558. obj13.BrickColor=BrickColor.new("Really blue")
  3559. obj13.Name="Decor"
  3560. obj13.Parent=gun
  3561. --14-Mesh
  3562. obj14=Instance.new("BlockMesh")
  3563. obj14.Scale=Vector3.new(0.400000006,0.200000003,0.400000006)
  3564. obj14.Parent=obj13
  3565. --15-BulletCase
  3566. obj15=Instance.new("Part")
  3567. obj15.CFrame=CFrame.new(Vector3.new(12.3420229,1.44165683,35.6482697)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3568. obj15.FormFactor=Enum.FormFactor.Custom
  3569. obj15.LeftSurface=10
  3570. obj15.TopSurface=10
  3571. obj15.RightSurface=10
  3572. obj15.Material="SmoothPlastic"
  3573. obj15.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  3574. obj15.FrontSurface=10
  3575. obj15.BottomSurface=10
  3576. obj15.BackSurface=10
  3577. obj15.BrickColor=BrickColor.new("Really blue")
  3578. obj15.Name="BulletCase"
  3579. obj15.Parent=gun
  3580. --16-Mesh
  3581. obj16=Instance.new("BlockMesh")
  3582. obj16.Scale=Vector3.new(0.999499977,1,1)
  3583. obj16.Parent=obj15
  3584. --17-Flashlight
  3585. obj17=Instance.new("Part")
  3586. obj17.CFrame=CFrame.new(Vector3.new(12.3420115,0.729269207,35.601902)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3587. obj17.FormFactor=Enum.FormFactor.Custom
  3588. obj17.LeftSurface=10
  3589. obj17.TopSurface=10
  3590. obj17.RightSurface=10
  3591. obj17.Material="SmoothPlastic"
  3592. obj17.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3593. obj17.FrontSurface=10
  3594. obj17.BottomSurface=10
  3595. obj17.BackSurface=10
  3596. obj17.BrickColor=BrickColor.new("Pastel yellow")
  3597. obj17.Name="Flashlight"
  3598. obj17.Parent=gun
  3599. --18-Mesh
  3600. obj18=Instance.new("CylinderMesh")
  3601. obj18.Offset=Vector3.new(0,0,0.0500000007)
  3602. obj18.Scale=Vector3.new(0.5,1.01999998,0.5)
  3603. obj18.Parent=obj17
  3604. --19-Decor
  3605. obj19=Instance.new("Part")
  3606. obj19.CFrame=CFrame.new(Vector3.new(12.3420143,2.1178081,35.8290215)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  3607. obj19.FormFactor=Enum.FormFactor.Custom
  3608. obj19.LeftSurface=10
  3609. obj19.TopSurface=10
  3610. obj19.RightSurface=10
  3611. obj19.Material="SmoothPlastic"
  3612. obj19.Size=Vector3.new(0.200000003,0.400000036,0.200000003)
  3613. obj19.FrontSurface=10
  3614. obj19.BottomSurface=10
  3615. obj19.BackSurface=10
  3616. obj19.BrickColor=BrickColor.new("Really black")
  3617. obj19.Name="Decor"
  3618. obj19.Parent=gun
  3619. --20-Mesh
  3620. obj20=Instance.new("BlockMesh")
  3621. obj20.Scale=Vector3.new(0.5,0.5,1.10000002)
  3622. obj20.Parent=obj19
  3623. --21-Decor
  3624. obj21=Instance.new("Part")
  3625. obj21.CFrame=CFrame.new(Vector3.new(12.2895117,2.05304575,35.6843338)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  3626. obj21.FormFactor=Enum.FormFactor.Custom
  3627. obj21.LeftSurface=10
  3628. obj21.TopSurface=10
  3629. obj21.RightSurface=10
  3630. obj21.Material="SmoothPlastic"
  3631. obj21.Size=Vector3.new(0.399999976,0.200000003,0.200000003)
  3632. obj21.FrontSurface=10
  3633. obj21.BottomSurface=10
  3634. obj21.BackSurface=10
  3635. obj21.BrickColor=BrickColor.new("Really blue")
  3636. obj21.Name="Decor"
  3637. obj21.Parent=gun
  3638. --22-Mesh
  3639. obj22=Instance.new("SpecialMesh")
  3640. obj22.MeshType=Enum.MeshType.Wedge
  3641. obj22.Scale=Vector3.new(1,0.25,0.50999999)
  3642. obj22.Parent=obj21
  3643. --23-Decor
  3644. obj23=Instance.new("Part")
  3645. obj23.CFrame=CFrame.new(Vector3.new(12.3420172,1.41577363,35.744442)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3646. obj23.FormFactor=Enum.FormFactor.Custom
  3647. obj23.LeftSurface=10
  3648. obj23.TopSurface=10
  3649. obj23.RightSurface=10
  3650. obj23.Material="SmoothPlastic"
  3651. obj23.Size=Vector3.new(0.200000003,1.60000002,0.200000003)
  3652. obj23.FrontSurface=10
  3653. obj23.BottomSurface=10
  3654. obj23.BackSurface=10
  3655. obj23.BrickColor=BrickColor.new("Really blue")
  3656. obj23.Name="Decor"
  3657. obj23.Parent=gun
  3658. --24-Mesh
  3659. obj24=Instance.new("CylinderMesh")
  3660. obj24.Parent=obj23
  3661. --25-ShellCaseSpawner
  3662. obj25=Instance.new("Part")
  3663. obj25.CFrame=CFrame.new(Vector3.new(12.3420172,1.75731552,35.6289024)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3664. obj25.FormFactor=Enum.FormFactor.Custom
  3665. obj25.LeftSurface=10
  3666. obj25.TopSurface=10
  3667. obj25.RightSurface=10
  3668. obj25.Material="SmoothPlastic"
  3669. obj25.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3670. obj25.FrontSurface=10
  3671. obj25.BottomSurface=10
  3672. obj25.BackSurface=10
  3673. obj25.Name="ShellCaseSpawner"
  3674. obj25.Parent=gun
  3675. --26-Mesh
  3676. obj26=Instance.new("CylinderMesh")
  3677. obj26.Offset=Vector3.new(0.0149999997,0,-0.0350000001)
  3678. obj26.Scale=Vector3.new(0.75,1,0.75)
  3679. obj26.Parent=obj25
  3680. --27-Decor
  3681. obj27=Instance.new("Part")
  3682. obj27.CFrame=CFrame.new(Vector3.new(12.3420115,0.765501678,35.4666672)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3683. obj27.FormFactor=Enum.FormFactor.Custom
  3684. obj27.LeftSurface=10
  3685. obj27.TopSurface=10
  3686. obj27.RightSurface=10
  3687. obj27.Material="SmoothPlastic"
  3688. obj27.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3689. obj27.FrontSurface=10
  3690. obj27.BottomSurface=10
  3691. obj27.BackSurface=10
  3692. obj27.BrickColor=BrickColor.new("Really black")
  3693. obj27.Name="Decor"
  3694. obj27.Parent=gun
  3695. --28-Mesh
  3696. obj28=Instance.new("CylinderMesh")
  3697. obj28.Offset=Vector3.new(0,0,0.0500000007)
  3698. obj28.Scale=Vector3.new(0.5,1.01999998,0.5)
  3699. obj28.Parent=obj27
  3700. --29-Decor
  3701. obj29=Instance.new("Part")
  3702. obj29.CFrame=CFrame.new(Vector3.new(12.3920164,1.4734931,35.5290413)) * CFrame.Angles(-1.3089969158173,-1.5701057910919,-0)
  3703. obj29.FormFactor=Enum.FormFactor.Custom
  3704. obj29.LeftSurface=10
  3705. obj29.TopSurface=10
  3706. obj29.RightSurface=10
  3707. obj29.Material="SmoothPlastic"
  3708. obj29.Size=Vector3.new(1.60000002,0.200000003,0.200000003)
  3709. obj29.FrontSurface=10
  3710. obj29.BottomSurface=10
  3711. obj29.BackSurface=10
  3712. obj29.BrickColor=BrickColor.new("Really blue")
  3713. obj29.Name="Decor"
  3714. obj29.Parent=gun
  3715. --30-Mesh
  3716. obj30=Instance.new("SpecialMesh")
  3717. obj30.MeshType=Enum.MeshType.Wedge
  3718. obj30.Scale=Vector3.new(1,0.25,0.5)
  3719. obj30.Parent=obj29
  3720. --31-Decor
  3721. obj31=Instance.new("Part")
  3722. obj31.CFrame=CFrame.new(Vector3.new(12.2895117,1.18371284,35.4513969)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  3723. obj31.FormFactor=Enum.FormFactor.Custom
  3724. obj31.LeftSurface=10
  3725. obj31.TopSurface=10
  3726. obj31.RightSurface=10
  3727. obj31.Material="SmoothPlastic"
  3728. obj31.Size=Vector3.new(1,0.200000003,0.200000003)
  3729. obj31.FrontSurface=10
  3730. obj31.BottomSurface=10
  3731. obj31.BackSurface=10
  3732. obj31.BrickColor=BrickColor.new("Really blue")
  3733. obj31.Name="Decor"
  3734. obj31.Parent=gun
  3735. --32-Mesh
  3736. obj32=Instance.new("SpecialMesh")
  3737. obj32.MeshType=Enum.MeshType.Wedge
  3738. obj32.Scale=Vector3.new(1,0.25,0.50999999)
  3739. obj32.Parent=obj31
  3740. gun:MakeJoints()
  3741. scan(gun)
  3742.  
  3743. local gun2 = gun:clone()
  3744. gun2.Parent = char
  3745.  
  3746. local torsoweld = Instance.new('Weld', char)
  3747. torsoweld.Part0 = torso
  3748. torsoweld.Part1 = holsters.TorsoWeld
  3749. torsoweld.C1 = CFrame.Angles(0,math.pi,0)
  3750.  
  3751. local gunweld = Instance.new('Weld', char)
  3752. gunweld.Part0 = gun.BulletCase
  3753. gunweld.Part1 = holsters.HolsterWeldTo
  3754.  
  3755. local gunweld2 = Instance.new('Weld', char)
  3756. gunweld2.Part0 = gun2.BulletCase
  3757. gunweld2.Part1 = holsters.HolsterWeldTo2
  3758.  
  3759. local bodygyro = Instance.new('BodyGyro')
  3760. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  3761. bodygyro.P = 15000
  3762.  
  3763. local rsc0 = rm.C0
  3764. local lsc0 = lm.C0
  3765. local angle = 0
  3766. local anglespeed = .5
  3767. local speed = .3
  3768. local side = 0
  3769. local Equipped = false
  3770. local origneckc0 = neck.C0
  3771. local origneckc1 = neck.C1
  3772. local neckc0 = CFrame.new(0, 1, 0)
  3773. local firing = false
  3774. local pistol = 1
  3775. local light = false
  3776.  
  3777. local gunlight = Instance.new('SpotLight', gun.Flashlight)
  3778. gunlight.Range = 40
  3779. gunlight.Angle = 60
  3780. gunlight.Face = 'Bottom'
  3781. gunlight.Shadows = true
  3782. gunlight.Enabled = false
  3783.  
  3784. local gunlight2 = gunlight:clone()
  3785. gunlight2.Parent = gun2.Flashlight
  3786.  
  3787. local fire = Instance.new('Sound', head)
  3788. fire.SoundId = "rbxassetid://260433746"
  3789. fire.Volume = 18000000
  3790.  
  3791. local song = Instance.new('Sound', head)
  3792. song.SoundId = "rbxassetid://142653441"
  3793. song.Volume = 10000000
  3794. song.Looped = true
  3795.  
  3796. local song2 = Instance.new('Sound', head)
  3797. song2.SoundId = "rbxassetid://382893859"
  3798. song2.Volume = 1000000
  3799. song2.Looped = true
  3800.  
  3801. local reload = Instance.new('Sound', head)
  3802. reload.SoundId = "rbxassetid://266022905"
  3803. reload.Volume = 180000
  3804.  
  3805. local ammo = 40
  3806. local scrgui = Instance.new('ScreenGui', plrgui)
  3807. scrgui.Name = 'DualGunsGui'
  3808.  
  3809. local ammonution = Instance.new('TextLabel', scrgui)
  3810. ammonution.Size = UDim2.new(0,150,0,50)
  3811. ammonution.Position = UDim2.new(1, -250, 1, -70)
  3812. ammonution.BackgroundTransparency = 1
  3813. ammonution.TextColor3 = Color3.new(1,1,1)
  3814. ammonution.TextStrokeTransparency = .1
  3815. ammonution.Text = ('| '):rep(ammo)
  3816. ammonution.TextXAlignment = 'Right'
  3817. ammonution.ZIndex = 2
  3818. ammonution.FontSize = 'Size18'
  3819.  
  3820. local ammonution2 = Instance.new('TextLabel', scrgui)
  3821. ammonution2.Size = UDim2.new(0,150,0,50)
  3822. ammonution2.Position = UDim2.new(1, -250, 1, -70)
  3823. ammonution2.BackgroundTransparency = 1
  3824. ammonution2.TextColor3 = Color3.new(.5,.5,.5)
  3825. ammonution2.TextStrokeTransparency = .1
  3826. ammonution2.TextXAlignment = 'Right'
  3827. ammonution2.Text = ('| '):rep(ammo)
  3828. ammonution2.FontSize = 'Size18'
  3829.  
  3830. local rel = Instance.new('TextButton', scrgui)
  3831. rel.Size = UDim2.new(0,500,0,250)
  3832. rel.Position = UDim2.new(.5, -250, .8, -250)
  3833. rel.BackgroundTransparency = 1
  3834. rel.TextColor3 = Color3.new(.7,0,0)
  3835. rel.Visible = false
  3836. rel.Text = 'Reload (r)'
  3837. rel.FontSize = 'Size24'
  3838.  
  3839. rel.MouseButton1Down:connect(function()
  3840. if ammo >= 40 or firing then return end
  3841. dontclerpneck = true
  3842. firing = true
  3843. local dropammo = gun.Handle:clone()
  3844. dropammo:ClearAllChildren()
  3845. dropammo.CanCollide = true
  3846. dropammo.BrickColor = BrickColor.Black()
  3847. dropammo.Parent = workspace
  3848. dropammo.CFrame = gun.Handle.CFrame
  3849. local dropammo2 = dropammo:clone()
  3850. dropammo2.Parent = workspace
  3851. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  3852. game:service'Debris':AddItem(dropammo,15)
  3853. game:service'Debris':AddItem(dropammo2,15)
  3854. wait(.5)
  3855. reload:play()
  3856. for i = 1, 65 do
  3857. firing = true
  3858. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3859. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  3860. lm.C0 = clerp(lm.C0,lscf,speed)
  3861. rm.C0 = clerp(rm.C0,rscf,speed)
  3862. game:service'RunService'.RenderStepped:wait()
  3863. end
  3864. reload:play()
  3865. for i = 1, 65 do
  3866. firing = true
  3867. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  3868. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3869. lm.C0 = clerp(lm.C0,lscf,speed)
  3870. rm.C0 = clerp(rm.C0,rscf,speed)
  3871. game:service'RunService'.RenderStepped:wait()
  3872. end
  3873. dontclerpneck = false
  3874. firing = false
  3875. ammo = 26
  3876. ammonution.Text = ('| '):rep(ammo)
  3877. end)
  3878. tool.Selected:connect(function(mouse)
  3879. Equipped = true
  3880. bodygyro.Parent = torso
  3881. bodygyro.cframe = torso.CFrame
  3882. rs.Parent = nil
  3883. ls.Parent = nil
  3884. rm.Parent = torso
  3885. lm.Parent = torso
  3886. neck.C0 = CFrame.new(0, 1, 0)
  3887. neck.C1 = CFrame.new(0, -0.5, 0)
  3888. gunweld.Part0 = gun.Handle
  3889. gunweld2.Part0 = gun2.Handle
  3890. gunweld.Part1 = ra
  3891. gunweld2.Part1 = la
  3892. gunweld.C1 = CFrame.new(0, -.8, 0)
  3893. gunweld.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  3894. gunweld2.C1 = CFrame.new(0, -.8, 0)
  3895. gunweld2.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  3896. mouse.KeyDown:connect(function(k)
  3897. if k == "r" then
  3898. if ammo >= 40 or firing then return end
  3899. dontclerpneck = true
  3900. firing = true
  3901. local dropammo = gun.Handle:clone()
  3902. dropammo:ClearAllChildren()
  3903. dropammo.CanCollide = true
  3904. dropammo.BrickColor = BrickColor.Black()
  3905. dropammo.Parent = workspace
  3906. dropammo.CFrame = gun.Handle.CFrame
  3907. local dropammo2 = dropammo:clone()
  3908. dropammo2.Parent = workspace
  3909. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  3910. game:service'Debris':AddItem(dropammo,15)
  3911. game:service'Debris':AddItem(dropammo2,15)
  3912. wait(.5)
  3913. reload:play()
  3914. for i = 1, 65 do
  3915. firing = true
  3916. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3917. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  3918. lm.C0 = clerp(lm.C0,lscf,speed)
  3919. rm.C0 = clerp(rm.C0,rscf,speed)
  3920. game:service'RunService'.RenderStepped:wait()
  3921. end
  3922. reload:play()
  3923. for i = 1, 65 do
  3924. firing = true
  3925. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  3926. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3927. lm.C0 = clerp(lm.C0,lscf,speed)
  3928. rm.C0 = clerp(rm.C0,rscf,speed)
  3929. game:service'RunService'.RenderStepped:wait()
  3930. end
  3931. dontclerpneck = false
  3932. firing = false
  3933. ammo = 40
  3934. ammonution.Text = ('| '):rep(ammo)
  3935. end
  3936. if k == "f" then
  3937. game:GetService("Chat"):Chat(plr.Character.Head, "Boss Mode!", Enum.ChatColor.Red)
  3938. song:Play()
  3939. char.Head.face.Texture = "http://www.roblox.com/asset/?id=397016154"
  3940. else
  3941. if k == "g" then
  3942. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  3943. song:Stop()
  3944. char.Head.face.Texture = "http://www.roblox.com/asset/?id=13079565"
  3945. else
  3946. if k == "h" then
  3947. game:GetService("Chat"):Chat(plr.Character.Head, "Evil Mode!", Enum.ChatColor.Red)
  3948. song2:Play()
  3949. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152629683"
  3950. else
  3951. if k == "j" then
  3952. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  3953. song2:Stop()
  3954. char.Head.face.Texture = "http://www.roblox.com/asset/?id=13079565"
  3955. else
  3956. if k == "k" then
  3957. humanoid.WalkSpeed = 60
  3958. else
  3959. if k == "l" then
  3960. humanoid.WalkSpeed = 25
  3961. else
  3962. if k == "p" then
  3963. game:GetService("Chat"):Chat(plr.Character.Head, "Human Mode!", Enum.ChatColor.Green)
  3964. plr.Character.Humanoid.Health = (10000000000000000)
  3965. plr.Character.Humanoid.MaxHealth = (10000000000000000)
  3966. else
  3967. if k == "u" then
  3968. game:GetService("Chat"):Chat(plr.Character.Head, "Demi God Mode!", Enum.ChatColor.Red)
  3969. plr.Character.Humanoid.Health = (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  3970. plr.Character.Humanoid.MaxHealth = (1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  3971. else
  3972. if k == "q" then
  3973. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Enabled", Enum.ChatColor.Red)
  3974. Value = true
  3975. else
  3976. if k == "e" then
  3977. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Disabled", Enum.ChatColor.Green)
  3978. Value = false
  3979. else
  3980. if k == "b" then
  3981. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Enabled!", Enum.ChatColor.Blue)
  3982. ff:Clone().Parent = char
  3983. else
  3984. if k == "v" then
  3985. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Disabled!", Enum.ChatColor.Blue)
  3986. char.ForceField:Destroy()
  3987. end
  3988. end
  3989. end
  3990. end
  3991. end
  3992. end
  3993. end
  3994. end
  3995. end
  3996. end
  3997. end
  3998. end
  3999. end)
  4000. mouse.Button1Down:connect(function()
  4001. if ammo <= 0 then
  4002. local sound = Instance.new('Sound', head)
  4003. sound.SoundId = "rbxassetid://260433746"
  4004. sound.Volume = 2
  4005. sound:play()
  4006. game:service'Debris':AddItem(sound,1)
  4007. end
  4008. if firing or ammo <= 0 then return end
  4009. ammo = ammo - 1
  4010. ammonution.Text = ('| '):rep(ammo)
  4011. firing = true
  4012. local pa = Instance.new('Part')
  4013. pa.CanCollide = false
  4014. pa.Anchored = true
  4015. pa.Locked = true
  4016. pa.FormFactor = 'Custom'
  4017. pa.Material = 'Neon'
  4018. pa.BrickColor = BrickColor.new('Cyan')
  4019. pa.Size = Vector3.new(.2,3,.2)
  4020. Instance.new('BlockMesh', pa).Scale = Vector3.new(.2,3,.2)
  4021. local thegun
  4022. if pistol == 1 then
  4023. thegun = gun.BulletCase
  4024. elseif pistol == 2 then
  4025. thegun = gun2.BulletCase
  4026. end
  4027. local muzzle = Instance.new('PointLight', thegun)
  4028. muzzle.Range = 1211111
  4029. muzzle.Color = Color3.new(0, 81, 255)
  4030. game:service'Debris':AddItem(muzzle, .05)
  4031. local shell = pa:clone()
  4032. shell:ClearAllChildren()
  4033. shell.Anchored = false
  4034. shell.CFrame = thegun.Parent.ShellCaseSpawner.CFrame
  4035. shell.Size = Vector3.new(.2,.5,.2)
  4036. shell.Parent = workspace
  4037. shell.Material = 'Neon'
  4038. shell.BrickColor = BrickColor.new('Cyan')
  4039. shell.CanCollide = true
  4040. game:service'Debris':AddItem(shell, 5)
  4041. local bulletpos = thegun.Position
  4042. local bulletvelocity = (mouse.Hit.p - bulletpos).unit*15
  4043. local lastbulletpos = thegun.Position
  4044. fire:play()
  4045. coroutine.wrap(function()
  4046. while game:service'RunService'.Stepped:wait() do
  4047. lastbulletpos = bulletpos
  4048. bulletpos = bulletpos + bulletvelocity
  4049. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  4050. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  4051. if (torso.Position - pa.Position).magnitude > 800 then
  4052. pa:Destroy()
  4053. break
  4054. end
  4055. pa.Anchored = true
  4056. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  4057. if hit then
  4058. local damage
  4059. local sound = Instance.new('Sound', pa)
  4060. sound.SoundId = "rbxassetid://166423137"
  4061. sound.Pitch = 1.2+math.random()/3
  4062. sound.Volume = 1
  4063. sound:play()
  4064. pa:Destroy()
  4065. if Value == true then
  4066. hit:Destroy()
  4067. end
  4068. game:service'Debris':AddItem(sound,4)
  4069. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  4070. local hitz, enz = workspace:FindPartOnRay(ray, char)
  4071. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  4072. if hum then
  4073. damage = math.random(40,90)
  4074. hum:TakeDamage(damage)
  4075. end
  4076. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  4077. if hum then
  4078. damage = math.random(40,90)
  4079. hum:TakeDamage(damage)
  4080. end
  4081. break
  4082. end
  4083. pa.Anchored = true
  4084. pa.Parent = char
  4085. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  4086. end
  4087. end)()
  4088.  
  4089. if pistol == 1 then
  4090. pistol = 2
  4091. for i = 1, 4 do
  4092. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  4093. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  4094. lm.C0 = clerp(lm.C0,lscf,speed)
  4095. rm.C0 = clerp(rm.C0,rscf,speed)
  4096. game:service'RunService'.RenderStepped:wait()
  4097. end
  4098. elseif pistol == 2 then
  4099. for i = 1, 4 do
  4100. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  4101. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  4102. lm.C0 = clerp(lm.C0,lscf,speed)
  4103. rm.C0 = clerp(rm.C0,rscf,speed)
  4104. game:service'RunService'.RenderStepped:wait()
  4105. end
  4106. pistol = 1
  4107. end
  4108. firing = false
  4109. end)
  4110. end)
  4111. tool.Deselected:connect(function()
  4112. Equipped = false
  4113. rm.Parent = nil
  4114. lm.Parent = nil
  4115. rs.Parent = torso
  4116. ls.Parent = torso
  4117. neck.C0 = origneckc0
  4118. neck.C1 = origneckc1
  4119. lm.C0 = lsc0
  4120. rm.C0 = rsc0
  4121. gunweld.Part0 = gun.BulletCase
  4122. gunweld.Part1 = holsters.HolsterWeldTo
  4123. gunweld.C0 = CFrame.new()
  4124. gunweld.C1 = CFrame.new()
  4125. gunweld2.Part0 = gun2.BulletCase
  4126. gunweld2.Part1 = holsters.HolsterWeldTo2
  4127. gunweld2.C0 = CFrame.new()
  4128. gunweld2.C1 = CFrame.new()
  4129. bodygyro.Parent = nil
  4130. end)
  4131.  
  4132. game:service'RunService'.RenderStepped:connect(function()
  4133. if Equipped then
  4134. if ammo <= 0 then
  4135. rel.Visible = true
  4136. else
  4137. rel.Visible = false
  4138. end
  4139. if light then
  4140. gunlight.Enabled = true
  4141. gunlight2.Enabled = true
  4142. else
  4143. gunlight.Enabled = false
  4144. gunlight2.Enabled = false
  4145. end
  4146. angle = angle + (0.05+math.random()/20)
  4147. local rscf = rsc0
  4148. local lscf = lsc0
  4149. local ncf = neckc0
  4150. local rmx,rmy,rmz = rm.C0:toEulerAnglesXYZ()
  4151. if rmz >= 1 then
  4152. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  4153. elseif rmz <= -1 then
  4154. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  4155. end
  4156. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  4157. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  4158. ncf = neckc0 * CFrame.new(Vector3.new(), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p))
  4159. if not firing then
  4160. lm.C0 = clerp(lm.C0,lscf,speed)
  4161. rm.C0 = clerp(rm.C0,rscf,speed)
  4162. end
  4163. if not dontclerpneck then
  4164. neck.C0 = clerp(neck.C0,ncf,speed)
  4165. end
  4166. end
  4167. if light and not Equipped then
  4168. gunlight.Enabled = false
  4169. gunlight2.Enabled = false
  4170. end
  4171. end)
  4172.  
  4173.  
  4174. wait(2.6)
  4175. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Blue Gust Blade!", "Red")
  4176. Player=game:GetService("Players").LocalPlayer
  4177. Character=Player.Character
  4178. PlayerGui=Player.PlayerGui
  4179. Backpack=Player.Backpack
  4180. Torso=Character.Torso
  4181. Head=Character.Head
  4182. Humanoid=Character.Humanoid
  4183. print('Player is Eliagable')
  4184. LeftArm=Character["Left Arm"]
  4185. LeftLeg=Character["Left Leg"]
  4186. RightArm=Character["Right Arm"]
  4187. RightLeg=Character["Right Leg"]
  4188. LS=Torso["Left Shoulder"]
  4189. LH=Torso["Left Hip"]
  4190. RS=Torso["Right Shoulder"]
  4191. RH=Torso["Right Hip"]
  4192. Neck=Torso.Neck
  4193. it=Instance.new
  4194. vt=Vector3.new
  4195. cf=CFrame.new
  4196. euler=CFrame.fromEulerAnglesXYZ
  4197. angles=CFrame.Angles
  4198. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4199. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4200. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  4201. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  4202. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  4203. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  4204. RootPart=Character.HumanoidRootPart
  4205. RootJoint=RootPart.RootJoint
  4206. RootCF=euler(-1.57,0,3.14)
  4207. attack=false
  4208. attackdebounce=false
  4209. MMouse=nil
  4210. combo=0
  4211. local Anim="Idle"
  4212. local Effects={}
  4213. equipped=false
  4214. local idle=0
  4215. local hold=false
  4216. local con1=nil
  4217. local con2=nil
  4218. local Mode="Binary"
  4219. local idleanim=0
  4220. local idleanim2=false
  4221. local impulse=1
  4222. local hitfloor,posfloor=nil,nil
  4223. local damcount=0
  4224. local guard=false
  4225. --player
  4226. player=nil
  4227. --save shoulders
  4228. RSH, LSH=nil, nil
  4229. --welds
  4230. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  4231. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  4232. LH=Torso["Left Hip"]
  4233. RH=Torso["Right Hip"]
  4234. Asset="http://www.roblox.com/asset/?id="
  4235. Health=879000
  4236. Humanoid.MaxHealth=879000
  4237. Humanoid.Health=879000
  4238. coroutine.resume(coroutine.create(function()
  4239. for i=1,20 do
  4240. Humanoid.MaxHealth=879000
  4241. Humanoid.Health=879000
  4242. end
  4243. Humanoid.MaxHealth=879000
  4244. Humanoid.Health=879000
  4245. Humanoid:TakeDamage(0)
  4246. Humanoid.Health=Health
  4247. end))
  4248. Humanoid.Health=Health
  4249.  
  4250. function swait(num)
  4251. if num==0 or num==nil then
  4252. game:service'RunService'.RenderStepped:wait()
  4253. else
  4254. for i=0,num do
  4255. game:service'RunService'.RenderStepped:wait()
  4256. end
  4257. end
  4258. end
  4259.  
  4260. if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
  4261. Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
  4262. end
  4263. if Character:findFirstChild("Demon Blade",true) ~= nil then
  4264. Character:findFirstChild("Demon Blade",true).Parent = nil
  4265. end
  4266. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  4267. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  4268. end
  4269.  
  4270.  
  4271. function NoOutline(Part)
  4272. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  4273. end
  4274.  
  4275. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  4276. local fp=it("Part")
  4277. fp.formFactor=formfactor
  4278. fp.Parent=parent
  4279. fp.Reflectance=reflectance
  4280. fp.Transparency=transparency
  4281. fp.CanCollide=false
  4282. fp.Locked=true
  4283. fp.BrickColor=brickcolor
  4284. fp.Name=name
  4285. fp.Size=size
  4286. fp.Position=Torso.Position
  4287. NoOutline(fp)
  4288. fp.Material="Granite"
  4289. fp:BreakJoints()
  4290. return fp
  4291. end
  4292.  
  4293. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4294. local mesh=it(Mesh)
  4295. mesh.Parent=part
  4296. if Mesh=="SpecialMesh" then
  4297. mesh.MeshType=meshtype
  4298. mesh.MeshId=meshid
  4299. end
  4300. mesh.Offset=offset
  4301. mesh.Scale=scale
  4302. return mesh
  4303. end
  4304.  
  4305. function weld(parent,part0,part1,c0)
  4306. local weld=it("Weld")
  4307. weld.Parent=parent
  4308. weld.Part0=part0
  4309. weld.Part1=part1
  4310. weld.C0=c0
  4311. return weld
  4312. end
  4313.  
  4314. local fengui=it("GuiMain")
  4315. fengui.Parent=Player.PlayerGui
  4316. fengui.Name="WeaponGUI"
  4317.  
  4318. local Color1=BrickColor.new("Really blue")
  4319. local Color2=BrickColor.new("Black")
  4320. local Colorr3=BrickColor.new("Black")
  4321. local Color4=BrickColor.new("Really blue")
  4322.  
  4323. local model1=Instance.new("Model")
  4324. model1.Parent=Character
  4325. model1.Name="Hades Judgement Blade"
  4326. BSword={}
  4327. BSwordWelds={}
  4328. local model2=Instance.new("Model")
  4329. model2.Parent=nil
  4330. model2.Name="Demon Blade"
  4331. DBlade={}
  4332. DBladeWelds={}
  4333.  
  4334. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  4335. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  4336. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  4337. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  4338. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  4339. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  4340. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  4341. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  4342. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  4343. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  4344. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  4345. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  4346.  
  4347. prtd1=part(3,model2,0,0.4,BrickColor.new("Really blue"),"DPart1",vt())
  4348. prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
  4349. prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
  4350. prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
  4351. prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
  4352. prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
  4353. prtd7=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart7",vt())
  4354. prtd8=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart8",vt())
  4355. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart9",vt())
  4356. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart10",vt())
  4357. prtd11=part(3,model2,0.5,0,BrickColor.new("Really blue"),"DPart11",vt())
  4358. prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
  4359. for _,c in pairs(model2:children()) do
  4360. if c.className=="Part" then
  4361. table.insert(DBlade,c)
  4362. end
  4363. end
  4364. light=it("PointLight")
  4365. light.Brightness=.8
  4366. light.Color=Color3.new(255/255,50/255,0)
  4367. --light.Color=BrickColor.new("Really red")
  4368. light.Range=10
  4369. light.Parent=prtd9
  4370.  
  4371. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  4372. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  4373. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  4374. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  4375. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  4376. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  4377. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  4378. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  4379. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  4380. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  4381. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  4382. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  4383.  
  4384. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  4385. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  4386. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  4387. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  4388. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  4389. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  4390. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  4391. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  4392. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  4393. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  4394. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  4395. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  4396.  
  4397. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  4398. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  4399. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  4400. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  4401. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  4402. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  4403. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  4404. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  4405. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  4406. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  4407. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  4408. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  4409.  
  4410. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  4411. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  4412. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  4413. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  4414. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  4415. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  4416. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  4417. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  4418. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  4419. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  4420. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  4421. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  4422. for _,c in pairs(prtd1:children()) do
  4423. if c.className=="Weld" then
  4424. table.insert(DBladeWelds,c)
  4425. print(c)
  4426. end
  4427. end
  4428.  
  4429. for i=-.9,.9,0.2 do
  4430. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  4431. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  4432. wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
  4433. end
  4434.  
  4435. local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  4436. local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  4437.  
  4438. if (script.Parent.className~="HopperBin") then
  4439. Tool=Instance.new("HopperBin")
  4440. Tool.Parent=Backpack
  4441. Tool.Name="Hades Judgement Blade"
  4442. script.Parent=Tool
  4443. end
  4444. Bin=script.Parent
  4445. --Bin=Tool
  4446.  
  4447. local bodvel=Instance.new("BodyVelocity")
  4448. bodvel.Name="FixerVel"
  4449. local bg=Instance.new("BodyGyro")
  4450. bg.Name="FixerGyro"
  4451.  
  4452. so = function(id,par,vol,pit)
  4453. coroutine.resume(coroutine.create(function()
  4454. local sou = Instance.new("Sound",par or workspace)
  4455. sou.Parent=par
  4456. sou.Volume=vol
  4457. sou.Pitch=pit or 1
  4458. sou.SoundId=id
  4459. swait()
  4460. sou:Play()
  4461. game:GetService("Debris"):AddItem(sou,6)
  4462. end))
  4463. end
  4464.  
  4465. function clerp(a,b,t)
  4466. local qa = {QuaternionFromCFrame(a)}
  4467. local qb = {QuaternionFromCFrame(b)}
  4468. local ax, ay, az = a.x, a.y, a.z
  4469. local bx, by, bz = b.x, b.y, b.z
  4470. local _t = 1-t
  4471. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4472. end
  4473.  
  4474. function QuaternionFromCFrame(cf)
  4475. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4476. local trace = m00 + m11 + m22
  4477. if trace > 0 then
  4478. local s = math.sqrt(1 + trace)
  4479. local recip = 0.5/s
  4480. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4481. else
  4482. local i = 0
  4483. if m11 > m00 then
  4484. i = 1
  4485. end
  4486. if m22 > (i == 0 and m00 or m11) then
  4487. i = 2
  4488. end
  4489. if i == 0 then
  4490. local s = math.sqrt(m00-m11-m22+1)
  4491. local recip = 0.5/s
  4492. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4493. elseif i == 1 then
  4494. local s = math.sqrt(m11-m22-m00+1)
  4495. local recip = 0.5/s
  4496. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4497. elseif i == 2 then
  4498. local s = math.sqrt(m22-m00-m11+1)
  4499. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4500. end
  4501. end
  4502. end
  4503.  
  4504. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4505. local xs, ys, zs = x + x, y + y, z + z
  4506. local wx, wy, wz = w*xs, w*ys, w*zs
  4507. local xx = x*xs
  4508. local xy = x*ys
  4509. local xz = x*zs
  4510. local yy = y*ys
  4511. local yz = y*zs
  4512. local zz = z*zs
  4513. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  4514. end
  4515.  
  4516. function QuaternionSlerp(a, b, t)
  4517. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4518. local startInterp, finishInterp;
  4519. if cosTheta >= 0.0001 then
  4520. if (1 - cosTheta) > 0.0001 then
  4521. local theta = math.acos(cosTheta)
  4522. local invSinTheta = 1/math.sin(theta)
  4523. startInterp = math.sin((1-t)*theta)*invSinTheta
  4524. finishInterp = math.sin(t*theta)*invSinTheta
  4525. else
  4526. startInterp = 1-t
  4527. finishInterp = t
  4528. end
  4529. else
  4530. if (1+cosTheta) > 0.0001 then
  4531. local theta = math.acos(-cosTheta)
  4532. local invSinTheta = 1/math.sin(theta)
  4533. startInterp = math.sin((t-1)*theta)*invSinTheta
  4534. finishInterp = math.sin(t*theta)*invSinTheta
  4535. else
  4536. startInterp = t-1
  4537. finishInterp = t
  4538. end
  4539. end
  4540. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  4541. end
  4542.  
  4543. function hideanim()
  4544. equipped=false
  4545. attack=true
  4546. if Mode=="Binary" then
  4547. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  4548. for i=0,1,0.1 do
  4549. swait()
  4550. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  4551. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4552. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4553. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  4554. end
  4555. wld1.Part1=Torso
  4556. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  4557. for i=0,1,0.2 do
  4558. swait()
  4559. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  4560. end
  4561. for i=0,1,0.1 do
  4562. swait()
  4563. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  4564. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  4565. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  4566. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  4567. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4568. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4569. end
  4570. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  4571. else
  4572. for i=0,1,0.1 do
  4573. swait()
  4574. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  4575. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  4576. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  4577. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  4578. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  4579. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  4580. end
  4581. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  4582. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  4583. for i=0,1,0.015 do
  4584. swait()
  4585. for i=1,3 do
  4586. if math.random(1,5)==1 then
  4587. MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  4588. else
  4589. MagicBlock(BrickColor.new("Really blue"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  4590. end
  4591. end
  4592. end
  4593. model2.Parent=nil
  4594. for i=0,1,0.1 do
  4595. swait()
  4596. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  4597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  4598. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  4599. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  4600. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4601. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4602. end
  4603. end
  4604. Torso.Neck.C0=necko
  4605. Torso.Neck.C1=necko2
  4606. RootJoint.C0=RootCF
  4607. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  4608. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  4609. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  4610. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  4611. RH.C0=RHC0
  4612. RH.C1=RHC1
  4613. LH.C0=LHC0
  4614. LH.C1=LHC1
  4615. Mode="Binary"
  4616. attack=false
  4617. end
  4618.  
  4619. function equipanim()
  4620. equipped=true
  4621. attack=true
  4622. for i=0,1,0.2 do
  4623. swait()
  4624. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4625. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  4626. end
  4627. for i=0,1,0.1 do
  4628. swait()
  4629. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  4630. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4631. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  4632. end
  4633. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  4634. wld1.Part1=RightArm
  4635. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  4636. for i=0,1,0.1 do
  4637. swait()
  4638. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4639. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  4640. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  4641. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  4642. end
  4643. for i=0,1,0.1 do
  4644. swait()
  4645. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4646. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  4647. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  4648. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  4649. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  4650. end
  4651. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  4652. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  4653. Torso.Neck.C0=necko*euler(0,0,0.5)
  4654. RootJoint.C0=RootCF*euler(0,0,-0.5)
  4655. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  4656. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  4657. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  4658. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  4659. attack=false
  4660. end
  4661.  
  4662. function Stomp()
  4663. Humanoid.WalkSpeed=0
  4664. Torso.Velocity=RootPart.CFrame.lookVector*0
  4665. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  4666. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  4667. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  4668. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  4669. Dam=math.random(5,10)
  4670. Humanoid.Health=Humanoid.Health-Dam
  4671. MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
  4672. --[[for i=0,1,0.2 do
  4673. swait()
  4674. if Mode=="Binary" then
  4675. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  4676. end
  4677. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  4678. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  4679. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  4680. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  4681. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  4682. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  4683. end
  4684. for i=0,1,0.1 do
  4685. swait()
  4686. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  4687. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  4688. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  4689. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  4690. end]]
  4691. swait(10)
  4692. Humanoid.WalkSpeed=16
  4693. end
  4694.  
  4695. function attackone()
  4696. attack=true
  4697. for i=0,1,0.1 do
  4698. swait()
  4699. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  4700. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  4701. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  4702. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  4703. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  4704. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4705. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4706. end
  4707. hitbox1.Parent=model1
  4708. hitbox1.Size=vt(1,5,1)
  4709. hitbox1.Transparency=1
  4710. hitbox1.CFrame=prt10.CFrame
  4711. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4712. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4713. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  4714. blcf=nil
  4715. scfr=nil
  4716. for i=0,1,0.25 do
  4717. swait()
  4718. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4719. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4720. local h = 5
  4721. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4722. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4723. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4724. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4725. scfr = blcf
  4726. elseif not scfr then
  4727. scfr = blcf
  4728. end
  4729. hitbox1.CFrame=prt10.CFrame
  4730. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  4731. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  4732. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  4733. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  4734. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  4735. end
  4736. for i=0,1,0.1 do
  4737. swait()
  4738. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4739. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4740. local h = 5
  4741. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4742. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4743. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4744. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4745. scfr = blcf
  4746. elseif not scfr then
  4747. scfr = blcf
  4748. end
  4749. hitbox1.CFrame=prt10.CFrame
  4750. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  4751. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  4752. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  4753. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  4754. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  4755. end
  4756. con1:disconnect()
  4757. hitbox1.Parent=nil
  4758. attack=false
  4759. end
  4760.  
  4761. function attacktwo()
  4762. attack=true
  4763. for i=0,1,0.1 do
  4764. swait()
  4765. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4766. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  4767. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  4768. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  4769. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  4770. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4771. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4772. end
  4773. hitbox1.Parent=model1
  4774. hitbox1.Size=vt(1,5,1)
  4775. hitbox1.Transparency=1
  4776. hitbox1.CFrame=prt10.CFrame
  4777. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4778. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  4779. blcf=nil
  4780. scfr=nil
  4781. for i=0,1,0.1 do
  4782. swait()
  4783. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4784. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4785. local h = 5
  4786. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4787. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4788. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4789. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4790. scfr = blcf
  4791. elseif not scfr then
  4792. scfr = blcf
  4793. end
  4794. hitbox1.CFrame=prt10.CFrame
  4795. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  4796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  4797. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  4798. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  4799. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  4800. end
  4801. con1:disconnect()
  4802. hitbox1.Parent=nil
  4803. attack=false
  4804. end
  4805.  
  4806. function attackthree()
  4807. attack=true
  4808. for i=0,1,0.1 do
  4809. swait()
  4810. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  4811. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  4812. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  4813. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  4814. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  4815. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4816. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4817. end
  4818. hitbox1.Parent=model1
  4819. hitbox1.Size=vt(1,5,1)
  4820. hitbox1.Transparency=1
  4821. hitbox1.CFrame=prt10.CFrame
  4822. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4823. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  4824. blcf=nil
  4825. scfr=nil
  4826. for i=0,1,0.25 do
  4827. swait()
  4828. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4829. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4830. local h = 5
  4831. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4832. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4833. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4834. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4835. scfr = blcf
  4836. elseif not scfr then
  4837. scfr = blcf
  4838. end
  4839. hitbox1.CFrame=prt10.CFrame
  4840. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  4841. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  4842. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  4843. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  4844. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  4845. end
  4846. for i=0,1,0.2 do
  4847. swait()
  4848. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4849. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4850. local h = 5
  4851. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4852. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4853. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4854. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4855. scfr = blcf
  4856. elseif not scfr then
  4857. scfr = blcf
  4858. end
  4859. hitbox1.CFrame=prt10.CFrame
  4860. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  4861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  4862. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  4863. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  4864. end
  4865. con1:disconnect()
  4866. hitbox1.Parent=nil
  4867. attack=false
  4868. end
  4869.  
  4870. function SpinSlash()
  4871. attack=true
  4872. for i=0,1,0.1 do
  4873. swait()
  4874. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  4875. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  4876. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  4877. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  4878. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  4879. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  4880. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  4881. end
  4882. hitbox1.Parent=model1
  4883. hitbox1.Size=vt(1,5,1)
  4884. hitbox1.Transparency=1
  4885. hitbox1.CFrame=prt10.CFrame
  4886. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
  4887. blcf=nil
  4888. scfr=nil
  4889. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  4890. repeat
  4891. hitbox1.Parent=model1
  4892. hitbox1.Size=vt(1,5,1)
  4893. hitbox1.Transparency=1
  4894. hitbox1.CFrame=prt10.CFrame
  4895. for i=0,1,0.15 do
  4896. swait()
  4897. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4898. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4899. local h = 5
  4900. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4901. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4902. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4903. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4904. scfr = blcf
  4905. elseif not scfr then
  4906. scfr = blcf
  4907. end
  4908. hitbox1.CFrame=prt10.CFrame
  4909. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  4910. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  4911. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  4912. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  4913. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  4914. RH.C0=clerp(RH.C0,RHC0,.3)
  4915. LH.C0=clerp(LH.C0,LHC0,.3)
  4916. end
  4917. for i=0,1,0.05 do
  4918. swait()
  4919. if i>=0.45 and i<=0.5 then
  4920. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  4921. end
  4922. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4923. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4924. local h = 5
  4925. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4926. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4927. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4928. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4929. scfr = blcf
  4930. elseif not scfr then
  4931. scfr = blcf
  4932. end
  4933. hitbox1.CFrame=prt10.CFrame
  4934. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  4935. end
  4936. until hold==false
  4937. con1:disconnect()
  4938. hitbox1.Parent=nil
  4939. attack=false
  4940. end
  4941.  
  4942. function BinarySwing()
  4943. attack=true
  4944. for i=0,1,0.1 do
  4945. swait()
  4946. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4947. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  4948. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  4949. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  4950. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  4951. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  4952. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  4953. end
  4954. Humanoid.Jump=true
  4955. bodvol=Instance.new("BodyVelocity")
  4956. bodvol.Parent=RootPart
  4957. bodvol.velocity=vt(0,1,0)*100
  4958. bodvol.P=5000
  4959. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  4960. --Torso.Velocity=vt(0,1,0)*100
  4961. hitbox1.Parent=model1
  4962. hitbox1.Size=vt(1,5,1)
  4963. hitbox1.Transparency=1
  4964. hitbox1.CFrame=prt10.CFrame
  4965. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
  4966. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  4967. blcf=nil
  4968. scfr=nil
  4969. for i=0,1,0.1 do
  4970. swait()
  4971. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4972. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4973. local h = 5
  4974. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  4975. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4976. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  4977. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4978. scfr = blcf
  4979. elseif not scfr then
  4980. scfr = blcf
  4981. end
  4982. hitbox1.CFrame=prt10.CFrame
  4983. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  4984. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  4985. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  4986. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  4987. RH.C0=clerp(RH.C0,RHC0,.3)
  4988. LH.C0=clerp(LH.C0,LHC0,.3)
  4989. end
  4990. con1:disconnect()
  4991. hitbox1.Parent=nil
  4992. bodvol.Parent=nil
  4993. attack=false
  4994. end
  4995.  
  4996. function BinaryImpulse()
  4997. attack=true
  4998. if impulse==1 then
  4999. impulse=2
  5000. Humanoid.Jump=true
  5001. for i=0,1,0.2 do
  5002. swait()
  5003. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  5004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  5005. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  5006. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  5007. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  5008. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  5009. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  5010. end
  5011. blcf=nil
  5012. scfr=nil
  5013. hitbox1.Parent=model1
  5014. hitbox1.Size=vt(1,5,1)
  5015. hitbox1.Transparency=1
  5016. hitbox1.CFrame=prt10.CFrame
  5017. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
  5018. for i=1,3 do
  5019. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  5020. for i=0,1,0.1 do
  5021. swait()
  5022. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5023. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5024. local h = 5
  5025. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5026. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5027. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5028. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5029. scfr = blcf
  5030. elseif not scfr then
  5031. scfr = blcf
  5032. end
  5033. hitbox1.CFrame=prt10.CFrame
  5034. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  5035. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  5036. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  5037. end
  5038. end
  5039. con1:disconnect()
  5040. hitbox1.Parent=nil
  5041. elseif impulse==2 then
  5042. impulse=3
  5043. Humanoid.Jump=true
  5044. for i=0,1,0.2 do
  5045. swait()
  5046. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  5047. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  5048. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  5049. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  5050. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  5051. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  5052. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  5053. end
  5054. blcf=nil
  5055. scfr=nil
  5056. hitbox1.Parent=model1
  5057. hitbox1.Size=vt(1,5,1)
  5058. hitbox1.Transparency=1
  5059. hitbox1.CFrame=prt10.CFrame
  5060. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
  5061. for i=1,3 do
  5062. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  5063. for i=0,1,0.1 do
  5064. swait()
  5065. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5066. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5067. local h = 5
  5068. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5069. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5070. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5071. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5072. scfr = blcf
  5073. elseif not scfr then
  5074. scfr = blcf
  5075. end
  5076. hitbox1.CFrame=prt10.CFrame
  5077. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  5078. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  5079. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  5080. end
  5081. end
  5082. con1:disconnect()
  5083. hitbox1.Parent=nil
  5084. elseif impulse==3 then
  5085. impulse=1
  5086. for i=0,1,0.2 do
  5087. swait()
  5088. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  5089. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  5090. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  5091. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  5092. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  5093. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  5094. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  5095. end
  5096. Humanoid.Jump=true
  5097. blcf=nil
  5098. scfr=nil
  5099. hitbox1.Parent=model1
  5100. hitbox1.Size=vt(1,5,1)
  5101. hitbox1.Transparency=1
  5102. hitbox1.CFrame=prt10.CFrame
  5103. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
  5104. for i=1,3 do
  5105. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  5106. for i=0,1,0.1 do
  5107. swait()
  5108. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5109. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5110. local h = 5
  5111. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5112. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5113. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5114. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5115. scfr = blcf
  5116. elseif not scfr then
  5117. scfr = blcf
  5118. end
  5119. hitbox1.CFrame=prt10.CFrame
  5120. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  5121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  5122. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  5123. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  5124. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  5125. end
  5126. end
  5127. con1:disconnect()
  5128. hitbox1.Parent=nil
  5129. end
  5130. attack=false
  5131. end
  5132.  
  5133. function Bash()
  5134. attack=true
  5135. for i=0,1,0.1 do
  5136. swait()
  5137. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  5138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  5139. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  5140. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  5141. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  5142. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  5143. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  5144. end
  5145. Torso.Velocity=RootPart.CFrame.lookVector*200
  5146. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  5147. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  5148. hit=nil
  5149. for i=1,20 do
  5150. if hit==nil then
  5151. swait()
  5152. end
  5153. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  5154. end
  5155. Torso.Velocity=RootPart.CFrame.lookVector*0
  5156. Humanoid.WalkSpeed=0
  5157. for i=0,1,0.1 do
  5158. swait()
  5159. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  5160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  5161. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  5162. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  5163. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  5164. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  5165. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  5166. end
  5167. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  5168. blcf=nil
  5169. scfr=nil
  5170. for i=0,1,0.2 do
  5171. swait()
  5172. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5173. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5174. local h = 5
  5175. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5176. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5177. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5178. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5179. scfr = blcf
  5180. elseif not scfr then
  5181. scfr = blcf
  5182. end
  5183. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  5184. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  5185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  5186. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  5187. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  5188. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  5189. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  5190. end
  5191. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  5192. if hit~=nil then
  5193. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  5194. ref.Anchored=true
  5195. ref.CFrame=cf(pos)
  5196. game:GetService("Debris"):AddItem(ref,3)
  5197. for i=1,10 do
  5198. Col=hit.BrickColor
  5199. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  5200. groundpart.Anchored=true
  5201. groundpart.Material=hit.Material
  5202. groundpart.CanCollide=true
  5203. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5204. game:GetService("Debris"):AddItem(groundpart,5)
  5205. end
  5206. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  5207. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  5208. MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
  5209. end
  5210. swait(50)
  5211. Humanoid.WalkSpeed=16
  5212. attack=false
  5213. end
  5214.  
  5215. function UnleashTheDemon()
  5216. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Now you're in for a show, you'll be sent to the abyss when i'm done!", "Green")
  5217. wait(2.6)
  5218. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
  5219. attack=true
  5220. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  5221. for i=0,1,0.1 do
  5222. swait()
  5223. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  5224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  5225. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  5226. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  5227. RH.C0=clerp(RH.C0,RHC0,.4)
  5228. LH.C0=clerp(LH.C0,LHC0,.4)
  5229. end
  5230. wld1.Part1=Torso
  5231. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  5232. for i=0,1,0.1 do
  5233. swait()
  5234. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  5235. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  5236. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  5237. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  5238. end
  5239. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  5240. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  5241. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  5242. num=0
  5243. for i=0,1,0.01 do
  5244. swait()
  5245. if num>=10 then
  5246. num=0
  5247. MagicWave(BrickColor.new("Really Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  5248. end
  5249. for i=1,2 do
  5250. if math.random(1,5)==1 then
  5251. MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  5252. else
  5253. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  5254. end
  5255. end
  5256. num=num+1
  5257. end
  5258. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  5259. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  5260. for i=1,4 do
  5261. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  5262. end
  5263. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  5264. Mode="Demon"
  5265. model2.Parent=Character
  5266. for i=1,#DBlade do
  5267. DBlade[i].Parent=model2
  5268. DBladeWelds[i].Parent=DBlade[1]
  5269. end
  5270. for i=0,1,0.1 do
  5271. swait()
  5272. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  5273. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  5274. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  5275. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  5276. end
  5277. swait(50)
  5278. attack=false
  5279. end
  5280.  
  5281. function Demonattackone()
  5282. attack=true
  5283. --[[
  5284. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  5285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  5286. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  5287. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  5288. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  5289. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  5290. ]]
  5291. for i=0,1,0.1 do
  5292. swait()
  5293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  5294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  5295. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  5296. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  5297. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  5298. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  5299. end
  5300. hitbox2.Parent=model2
  5301. hitbox2.Size=vt(1,6,1)
  5302. hitbox2.Transparency=1
  5303. hitbox2.CFrame=prtd7.CFrame
  5304. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  5305. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  5306. blcf=nil
  5307. scfr=nil
  5308. for i=0,1,0.08 do
  5309. swait()
  5310. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5311. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5312. local h = 5
  5313. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5314. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5315. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5316. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5317. scfr = blcf
  5318. elseif not scfr then
  5319. scfr = blcf
  5320. end
  5321. hitbox2.CFrame=prtd7.CFrame
  5322. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  5323. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  5324. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  5325. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  5326. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  5327. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  5328. end
  5329. con1:disconnect()
  5330. hitbox2.Parent=nil
  5331. attack=false
  5332. end
  5333.  
  5334. function Demonattacktwo()
  5335. attack=true
  5336. for i=0,1,0.1 do
  5337. swait()
  5338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  5339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  5340. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  5341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  5342. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  5343. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  5344. end
  5345. hitbox2.Parent=model2
  5346. hitbox2.Size=vt(1,6,1)
  5347. hitbox2.Transparency=1
  5348. hitbox2.CFrame=prtd7.CFrame
  5349. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  5350. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  5351. blcf=nil
  5352. scfr=nil
  5353. for i=0,1,0.1 do
  5354. swait()
  5355. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5356. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5357. local h = 5
  5358. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5359. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5360. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5361. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5362. scfr = blcf
  5363. elseif not scfr then
  5364. scfr = blcf
  5365. end
  5366. hitbox2.CFrame=prtd7.CFrame
  5367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  5368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  5369. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  5370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  5371. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  5372. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  5373. end
  5374. con1:disconnect()
  5375. hitbox2.Parent=nil
  5376. attack=false
  5377. end
  5378.  
  5379. function Demonattackthree()
  5380. attack=true
  5381. for i=0,1,0.1 do
  5382. swait()
  5383. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  5384. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  5385. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  5386. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  5387. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  5388. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  5389. end
  5390. Humanoid.WalkSpeed=0
  5391. hitbox2.Parent=model2
  5392. hitbox2.Size=vt(1,6,1)
  5393. hitbox2.Transparency=1
  5394. hitbox2.CFrame=prtd7.CFrame
  5395. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  5396. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  5397. blcf=nil
  5398. scfr=nil
  5399. for i=0,1,0.15 do
  5400. swait()
  5401. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5402. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5403. local h = 5
  5404. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5405. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5406. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5407. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5408. scfr = blcf
  5409. elseif not scfr then
  5410. scfr = blcf
  5411. end
  5412. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  5413. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  5414. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  5415. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  5416. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  5417. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  5418. if i==0.6 then
  5419. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5420. if hit~=nil then
  5421. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  5422. ref.Anchored=true
  5423. ref.CFrame=cf(pos)
  5424. game:GetService("Debris"):AddItem(ref,3)
  5425. for i=1,5 do
  5426. Col=hit.BrickColor
  5427. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  5428. groundpart.Anchored=true
  5429. groundpart.Material=hit.Material
  5430. groundpart.CanCollide=true
  5431. groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5432. game:GetService("Debris"):AddItem(groundpart,3)
  5433. end
  5434. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  5435. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  5436. MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
  5437. end
  5438. end
  5439. end
  5440. con1:disconnect()
  5441. hitbox2.Parent=nil
  5442. swait(10)
  5443. Humanoid.WalkSpeed=16
  5444. attack=false
  5445. end
  5446.  
  5447. function LetItBuild()
  5448. attack=true
  5449. for i=0,1,0.1 do
  5450. swait()
  5451. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  5452. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  5453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  5454. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  5455. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  5456. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  5457. end
  5458. local num=0
  5459. local magik=0
  5460. local num2=0
  5461. while holdx==true do
  5462. swait()
  5463. if magik<25 then
  5464. if num>=10 then
  5465. Humanoid:TakeDamage(0)
  5466. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  5467. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  5468. Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
  5469. MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
  5470. MagicBlood(BrickColor.new("Really red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  5471. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  5472. magik=magik+1
  5473. num=0
  5474. end
  5475. end
  5476. num=num+1
  5477. num2=num2+magik
  5478. if num2>=50 then
  5479. MagicBlood(BrickColor.new("Really Really black"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  5480. num2=0
  5481. end
  5482. --MagicBlock(BrickColor.new("Really red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
  5483. end
  5484. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  5485. blcf=nil
  5486. scfr=nil
  5487. hitbox2.Parent=model2
  5488. hitbox2.Size=vt(1,6,1)
  5489. hitbox2.Transparency=1
  5490. hitbox2.CFrame=prtd7.CFrame
  5491. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
  5492. for i=1,3 do
  5493. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  5494. for i=0,1,0.1 do
  5495. swait()
  5496. hitbox2.CFrame=prtd7.CFrame
  5497. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5498. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5499. local h = 5
  5500. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  5501. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5502. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  5503. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5504. scfr = blcf
  5505. elseif not scfr then
  5506. scfr = blcf
  5507. end
  5508. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  5509. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  5510. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  5511. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  5512. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  5513. end
  5514. end
  5515. con1:disconnect()
  5516. hitbox2.Parent=nil
  5517. attack=false
  5518. end
  5519.  
  5520. function YourMoveCreep()
  5521. attack=true
  5522. local pers=nil
  5523. for i=0,1,0.1 do
  5524. swait()
  5525. cost=Humanoid.Health-0
  5526. Humanoid:TakeDamage(0)
  5527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  5528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  5529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  5530. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  5531. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  5532. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5533. end
  5534. local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
  5535. blockprt.Anchored=true
  5536. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  5537. conbl=blockprt.Touched:connect(function(hit)
  5538. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  5539. hit=hit.Parent.Parent.Torso
  5540. end
  5541. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  5542. pers=hit
  5543. print("HIT")
  5544. guard=false
  5545. end
  5546. end)
  5547. num=0
  5548. while guard==true do
  5549. swait()
  5550. if num>10 then
  5551. num=0
  5552. MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  5553. MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  5554. end
  5555. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  5556. num=num+1
  5557. end
  5558. conbl:disconnect()
  5559. blockprt.Parent=nil
  5560. print(pers)
  5561. if pers~=nil then
  5562. for i=0,1,0.1 do
  5563. swait()
  5564. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  5565. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  5566. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  5567. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  5568. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  5569. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5570. end
  5571. swait(200)
  5572. end
  5573. attack=false
  5574. end
  5575.  
  5576. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  5577. for _,c in pairs(workspace:children()) do
  5578. local hum=c:findFirstChild("Humanoid")
  5579. if hum~=nil then
  5580. local head=c:findFirstChild("Torso")
  5581. if head~=nil then
  5582. local targ=head.Position-Part.Position
  5583. local mag=targ.magnitude
  5584. if mag<=magni and c.Name~=Player.Name then
  5585. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  5586. end
  5587. end
  5588. end
  5589. end
  5590. end
  5591.  
  5592. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  5593. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  5594. end
  5595.  
  5596. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  5597. LastPoint=Point
  5598. function effect(Color,Ref,LP,P1,returnn)
  5599. local effectsmsh=Instance.new("CylinderMesh")
  5600. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  5601. effectsmsh.Name="Mesh"
  5602. local effectsg=Instance.new("Part")
  5603. effectsg.formFactor=3
  5604. effectsg.CanCollide=false
  5605. effectsg.Name="Eff"
  5606. effectsg.Locked=true
  5607. effectsg.Anchored=true
  5608. effectsg.Size=Vector3.new(0.5,1,0.5)
  5609. effectsg.Parent=workspace
  5610. effectsmsh.Parent=effectsg
  5611. effectsg.BrickColor=BrickColor.new(Color)
  5612. effectsg.Reflectance=Ref
  5613. local point1=P1
  5614. local mg=(LP.p - point1.p).magnitude
  5615. effectsg.Size=Vector3.new(0.5,mg,0.5)
  5616. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  5617. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  5618. game:GetService("Debris"):AddItem(effectsg,2)
  5619. if returnn then return effectsg end
  5620. coroutine.resume(coroutine.create(function(Part,Mesh)
  5621. if not returnn then
  5622. for i=0,1,0.05 do
  5623. wait()
  5624. Part.Transparency=1*i
  5625. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  5626. end
  5627. Part.Parent=nil
  5628. end
  5629. end),effectsg,effectsmsh)
  5630. end
  5631.  
  5632. local function CFrameFromTopBack(at, top, back)
  5633. local right = top:Cross(back)
  5634. return CFrame.new(at.x, at.y, at.z,
  5635. right.x, top.x, back.x,
  5636. right.y, top.y, back.y,
  5637. right.z, top.z, back.z)
  5638. end
  5639.  
  5640. function Triangle(a, b, c)
  5641. local edg1 = (c-a):Dot((b-a).unit)
  5642. local edg2 = (a-b):Dot((c-b).unit)
  5643. local edg3 = (b-c):Dot((a-c).unit)
  5644. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  5645. a, b, c = a, b, c
  5646. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  5647. a, b, c = b, c, a
  5648. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  5649. a, b, c = c, a, b
  5650. else
  5651. assert(false, "unreachable")
  5652. end
  5653.  
  5654. local len1 = (c-a):Dot((b-a).unit)
  5655. local len2 = (b-a).magnitude - len1
  5656. local width = (a + (b-a).unit*len1 - c).magnitude
  5657.  
  5658. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  5659.  
  5660. local list = {}
  5661.  
  5662. if len2 > 0.01 then
  5663. end
  5664. return unpack(list)
  5665. end
  5666. --[[
  5667. Things for effects
  5668. put the variables in one table
  5669. like effect={brick,interval,i}
  5670. ]]
  5671. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5672. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5673. prt.Anchored=true
  5674. prt.CFrame=cframe
  5675. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5676. game:GetService("Debris"):AddItem(prt,5)
  5677. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  5678. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  5679. for i=0,1,delay do
  5680. wait()
  5681. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5682. Part.Transparency=i
  5683. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5684. end
  5685. Part.Parent=nil
  5686. end),prt,msh)]]
  5687. end
  5688.  
  5689. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5690. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5691. prt.Anchored=true
  5692. prt.CFrame=cframe
  5693. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5694. game:GetService("Debris"):AddItem(prt,5)
  5695. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5696. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  5697. local wld=nil
  5698. for i=0,1,delay do
  5699. wait()
  5700. Part.CFrame=Part.CFrame
  5701. Part.Transparency=i
  5702. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5703. end
  5704. Part.Parent=nil
  5705. end),prt,msh)]]
  5706. end
  5707.  
  5708. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5709. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5710. prt.Anchored=true
  5711. prt.CFrame=cframe
  5712. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  5713. game:GetService("Debris"):AddItem(prt,5)
  5714. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5715. end
  5716.  
  5717. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5718. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  5719. prt.Anchored=true
  5720. prt.CFrame=cframe
  5721. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  5722. game:GetService("Debris"):AddItem(prt,5)
  5723. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5724. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  5725. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  5726. for i=0,1,delay do
  5727. wait()
  5728. Part.CFrame=Part.CFrame
  5729. Part.Transparency=i
  5730. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5731. end
  5732. Part.Parent=nil
  5733. end),prt,msh)]]
  5734. end
  5735.  
  5736. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5737. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  5738. prt.Anchored=true
  5739. prt.CFrame=cframe
  5740. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5741. game:GetService("Debris"):AddItem(prt,5)
  5742. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5743. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  5744. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  5745. for i=0,1,delay do
  5746. wait()
  5747. Part.CFrame=Part.CFrame
  5748. Part.Transparency=i
  5749. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5750. end
  5751. Part.Parent=nil
  5752. end),prt,msh)]]
  5753. end
  5754.  
  5755. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5756. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5757. prt.Anchored=true
  5758. prt.CFrame=cframe
  5759. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5760. game:GetService("Debris"):AddItem(prt,5)
  5761. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  5762. end
  5763.  
  5764. function ElecEffect(cff,x,y,z)
  5765. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  5766. prt.Anchored=true
  5767. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  5768. prt.CFrame=cf(prt.Position)
  5769. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  5770. game:GetService("Debris"):AddItem(prt,2)
  5771. xval=math.random()/2
  5772. yval=math.random()/2
  5773. zval=math.random()/2
  5774. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  5775. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  5776. end
  5777.  
  5778. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  5779. --[[p0=pos1
  5780. p1=pos2
  5781. tym=times
  5782. ofs=offset
  5783. col=color
  5784. th=size
  5785. tra=transparency
  5786. last=lastingtime]]
  5787. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  5788. for i=1,tym do
  5789. 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)
  5790. 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)])
  5791. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  5792. if tym == i then
  5793. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  5794. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  5795. else
  5796. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  5797. end
  5798. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  5799. end
  5800. end
  5801.  
  5802. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  5803. if hit.Parent==nil then
  5804. return
  5805. end
  5806. h=hit.Parent:FindFirstChild("Humanoid")
  5807. for _,v in pairs(hit.Parent:children()) do
  5808. if v:IsA("Humanoid") then
  5809. h=v
  5810. end
  5811. end
  5812. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  5813. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  5814. end
  5815. if hit.Parent.className=="Hat" then
  5816. hit=hit.Parent.Parent:findFirstChild("Head")
  5817. end
  5818. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  5819. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  5820. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  5821. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  5822. return
  5823. end]]
  5824. -- hs(hit,1.2)
  5825. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  5826. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  5827. c=Instance.new("ObjectValue")
  5828. c.Name="creator"
  5829. c.Value=game:service("Players").LocalPlayer
  5830. c.Parent=h
  5831. game:GetService("Debris"):AddItem(c,.5)
  5832. Damage=math.random(minim,maxim)
  5833. if Mode=="Demon" then
  5834. Damage=Damage+damcount
  5835. end
  5836. -- h:TakeDamage()
  5837. blocked=false
  5838. block=hit.Parent:findFirstChild("Block")
  5839. if block~=nil then
  5840. print(block.className)
  5841. if block.className=="NumberValue" then
  5842. if block.Value>0 then
  5843. blocked=true
  5844. if decreaseblock==nil then
  5845. block.Value=block.Value-1
  5846. end
  5847. end
  5848. end
  5849. if block.className=="IntValue" then
  5850. if block.Value>0 then
  5851. blocked=true
  5852. if decreaseblock~=nil then
  5853. block.Value=block.Value-1
  5854. end
  5855. end
  5856. end
  5857. end
  5858. if blocked==false then
  5859. -- h:TakeDamage(Damage)
  5860. h.Health=h.Health-Damage
  5861. else
  5862. h.Health=h.Health-(Damage/0)
  5863. end
  5864. if Type=="Knockdown" then
  5865. hum=hit.Parent.Humanoid
  5866. hum.PlatformStand=true
  5867. coroutine.resume(coroutine.create(function(HHumanoid)
  5868. swait(1)
  5869. HHumanoid.PlatformStand=false
  5870. end),hum)
  5871. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  5872. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  5873. local bodvol=Instance.new("BodyVelocity")
  5874. bodvol.velocity=angle*knockback
  5875. bodvol.P=5000
  5876. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5877. bodvol.Parent=hit
  5878. rl=Instance.new("BodyAngularVelocity")
  5879. rl.P=3000
  5880. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  5881. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  5882. rl.Parent=hit
  5883. game:GetService("Debris"):AddItem(bodvol,.5)
  5884. game:GetService("Debris"):AddItem(rl,.5)
  5885. elseif Type=="Normal" then
  5886. vp=Instance.new("BodyVelocity")
  5887. vp.P=500
  5888. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  5889. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  5890. if KnockbackType==1 then
  5891. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  5892. elseif KnockbackType==2 then
  5893. vp.velocity=Property.CFrame.lookVector*knockback
  5894. end
  5895. if knockback>-100 then
  5896. vp.Parent=hit.Parent.Torso
  5897. end
  5898. game:GetService("Debris"):AddItem(vp,.5)
  5899. elseif Type=="Lifesteal" then
  5900. for i=1,5 do
  5901. MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  5902. end
  5903. vp=Instance.new("BodyVelocity")
  5904. vp.P=500
  5905. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  5906. if KnockbackType==1 then
  5907. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  5908. elseif KnockbackType==2 then
  5909. vp.velocity=Property.CFrame.lookVector*knockback
  5910. end
  5911. if knockback>-250 then
  5912. vp.Parent=hit.Parent.Torso
  5913. end
  5914. game:GetService("Debris"):AddItem(vp,.5)
  5915. Heal=math.ceil(Damage/25100)
  5916. Humanoid.Health=Humanoid.Health+Heal
  5917. elseif Type=="Up" then
  5918. local bodyVelocity=Instance.new("BodyVelocity")
  5919. bodyVelocity.velocity=vt(0,30,0)
  5920. bodyVelocity.P=5000
  5921. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5922. bodyVelocity.Parent=hit
  5923. game:GetService("Debris"):AddItem(bodyVelocity,1)
  5924. rl=Instance.new("BodyAngularVelocity")
  5925. rl.P=3000
  5926. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  5927. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  5928. rl.Parent=hit
  5929. game:GetService("Debris"):AddItem(rl,.5)
  5930. elseif Type=="Snare" then
  5931. bp=Instance.new("BodyPosition")
  5932. bp.P=2000
  5933. bp.D=100
  5934. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  5935. bp.position=hit.Parent.Torso.Position
  5936. bp.Parent=hit.Parent.Torso
  5937. game:GetService("Debris"):AddItem(bp,1)
  5938. elseif Type=="Charge" then
  5939. Charge=Charge+1
  5940. coroutine.resume(coroutine.create(function(Part)
  5941. swait(30)
  5942. for i=1,5 do
  5943. swait(5)
  5944. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  5945. MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  5946. newdam=math.random(1,5)
  5947. if blocked==false then
  5948. h:TakeDamage()
  5949. else
  5950. h:TakeDamage(newdam/0)
  5951. end
  5952. end
  5953. end),hit)
  5954. end
  5955. debounce=Instance.new("BoolValue")
  5956. debounce.Name="DebounceHit"
  5957. debounce.Parent=hit.Parent
  5958. debounce.Value=true
  5959. game:GetService("Debris"):AddItem(debounce,Delay)
  5960. c=Instance.new("ObjectValue")
  5961. c.Name="creator"
  5962. c.Value=Player
  5963. c.Parent=h
  5964. game:GetService("Debris"):AddItem(c,.5)
  5965. CRIT=false
  5966. hitDeb=true
  5967. AttackPos=6
  5968. end
  5969. end
  5970.  
  5971. showDamage=function(Char,Dealt,du,Color)
  5972. m=Instance.new("Model")
  5973. m.Name=tostring(Dealt)
  5974. h=Instance.new("Humanoid")
  5975. h.Health=0
  5976. h.MaxHealth=0
  5977. h.Parent=m
  5978. c=Instance.new("Part")
  5979. c.Transparency=1
  5980. c.BrickColor=Color
  5981. c.Name="Head"
  5982. c.TopSurface=0
  5983. c.BottomSurface=0
  5984. c.formFactor="Plate"
  5985. c.Size=Vector3.new(1,.4,1)
  5986. ms=Instance.new("CylinderMesh")
  5987. ms.Scale=Vector3.new(.8,.8,.8)
  5988. if CRIT==true then
  5989. ms.Scale=Vector3.new(1,1.25,1)
  5990. end
  5991. ms.Parent=c
  5992. c.Reflectance=0
  5993. Instance.new("BodyGyro").Parent=c
  5994. c.Parent=m
  5995. if Char:findFirstChild("Head")~=nil then
  5996. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  5997. elseif Char.Parent:findFirstChild("Head")~=nil then
  5998. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  5999. end
  6000. f=Instance.new("BodyPosition")
  6001. f.P=2000
  6002. f.D=100
  6003. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6004. f.position=c.Position+Vector3.new(0,3,0)
  6005. f.Parent=c
  6006. game:GetService("Debris"):AddItem(m,.5+du)
  6007. c.CanCollide=false
  6008. m.Parent=workspace
  6009. c.CanCollide=false
  6010. end
  6011.  
  6012. combo=0
  6013. function ob1d(mouse)
  6014. hold=true
  6015. if attack==true or equipped==false then return end
  6016. if Mode=="Binary" then
  6017. idle=0
  6018. if Anim=="Run" then
  6019. SpinSlash()
  6020. else
  6021. if combo==0 then
  6022. combo=1
  6023. attackone()
  6024. elseif combo==1 then
  6025. combo=2
  6026. attacktwo()
  6027. elseif combo==2 then
  6028. combo=0
  6029. attackthree()
  6030. end
  6031. end
  6032. else
  6033. if combo==0 then
  6034. combo=1
  6035. Demonattackone()
  6036. elseif combo==1 then
  6037. combo=2
  6038. Demonattacktwo()
  6039. elseif combo==2 then
  6040. combo=0
  6041. Demonattackthree()
  6042. end
  6043. end
  6044. coroutine.resume(coroutine.create(function()
  6045. for i=1,20 do
  6046. if attack==false then
  6047. swait()
  6048. end
  6049. end
  6050. if attack==false then
  6051. combo=0
  6052. --equipanim()
  6053. end
  6054. end))
  6055. end
  6056.  
  6057. function ob1u(mouse)
  6058. hold = false
  6059. end
  6060.  
  6061. buttonhold = false
  6062.  
  6063. eul=0
  6064. holdx=false
  6065. equipped=false
  6066. function key(key)
  6067. if key=="c" then
  6068. if guard==true then
  6069. guard=false
  6070. else
  6071. guard=true
  6072. end
  6073. end
  6074. if key=="x" then
  6075. holdx=true
  6076. end
  6077. if attack==true then return end
  6078. if key=="f" then
  6079. if equipped==false then
  6080. equipped=true
  6081. RSH=ch.Torso["Right Shoulder"]
  6082. LSH=ch.Torso["Left Shoulder"]
  6083. --
  6084. RSH.Parent=nil
  6085. LSH.Parent=nil
  6086. --
  6087. RW.Name="Right Shoulder"
  6088. RW.Part0=ch.Torso
  6089. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  6090. RW.C1=cf(0, 0.5, 0)
  6091. RW.Part1=ch["Right Arm"]
  6092. RW.Parent=ch.Torso
  6093. --
  6094. LW.Name="Left Shoulder"
  6095. LW.Part0=ch.Torso
  6096. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  6097. LW.C1=cf(0, 0.5, 0)
  6098. LW.Part1=ch["Left Arm"]
  6099. LW.Parent=ch.Torso
  6100. --
  6101. equipanim()
  6102. else
  6103. equipped=false
  6104. hideanim()
  6105. swait(0)
  6106. RW.Parent=nil
  6107. LW.Parent=nil
  6108. RSH.Parent=player.Character.Torso
  6109. LSH.Parent=player.Character.Torso
  6110. end
  6111. end
  6112. if equipped==false then return end
  6113. if Mode=="Binary" then
  6114. if key=="q" then
  6115. idle=500
  6116. end
  6117. if key=="z" and hitfloor~=nil then
  6118. BinarySwing()
  6119. end
  6120. if key=="x" then
  6121. BinaryImpulse()
  6122. end
  6123. if key=="c" then
  6124. Bash()
  6125. end
  6126. if key=="v" then
  6127. UnleashTheDemon()
  6128. end
  6129. end
  6130. if Mode=="Demon" then
  6131. if key=="x" then
  6132. LetItBuild()
  6133. end
  6134. if key=="c" then
  6135. YourMoveCreep()
  6136. end
  6137. end
  6138. if key=="0" then
  6139. Humanoid.WalkSpeed=(180)
  6140. end
  6141. end
  6142.  
  6143. function key2(key)
  6144. if key=="0" then
  6145. Humanoid.WalkSpeed=16
  6146. end
  6147. if key=="x" then
  6148. holdx=false
  6149. end
  6150. end
  6151.  
  6152. function s(mouse)
  6153. mouse.Button1Down:connect(function() ob1d(mouse) end)
  6154. mouse.Button1Up:connect(function() ob1u(mouse) end)
  6155. mouse.KeyDown:connect(key)
  6156. mouse.KeyUp:connect(key2)
  6157.  
  6158. player=Player
  6159. ch=Character
  6160. MMouse=mouse
  6161. end
  6162.  
  6163. function ds(mouse)
  6164. end
  6165.  
  6166. Bin.Selected:connect(s)
  6167. Bin.Deselected:connect(ds)
  6168. print("Fixer the Demon Mercenary loaded.")
  6169.  
  6170. local thenum=0
  6171. while true do
  6172. swait()
  6173. if Mode=="Demon" then
  6174. if thenum>=5 then
  6175. ElecEffect(prtd7.CFrame,2,4,2)
  6176. thenum=0
  6177. end
  6178. thenum=thenum+1
  6179. for _,c in pairs(Character:children()) do
  6180. for _,v in pairs(c:children()) do
  6181. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  6182. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  6183. v.Parent=nil
  6184. end
  6185. end
  6186. end
  6187. end
  6188. end
  6189. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6190. local velderp=RootPart.Velocity.y
  6191. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6192. if equipped==true then
  6193. if Anim=="Idle" and attack==false and Mode=="Binary" then
  6194. idle=idle+1
  6195. else
  6196. idle=0
  6197. end
  6198. if idleanim>=0.3 then
  6199. idleanim2=true
  6200. elseif idleanim<=0 then
  6201. idleanim2=false
  6202. end
  6203. if idleanim2==false then
  6204. if Anim=="Walk" then
  6205. idleanim=idleanim+0.005
  6206. elseif Anim=="Idle" then
  6207. idleanim=idleanim+0.003
  6208. end
  6209. else
  6210. if Anim=="Walk" then
  6211. idleanim=idleanim-0.005
  6212. elseif Anim=="Idle" then
  6213. idleanim=idleanim-0.003
  6214. end
  6215. end
  6216. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6217. Anim="Jump"
  6218. if attack==false and Mode=="Binary" then
  6219. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  6220. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  6221. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  6222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  6223. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  6224. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  6225. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  6226. end
  6227. if attack==false and Mode=="Demon" then
  6228. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  6229. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  6230. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  6231. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  6232. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  6233. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  6234. end
  6235. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6236. Anim="Fall"
  6237. if attack==false and Mode=="Binary" then
  6238. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  6239. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  6240. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  6241. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  6242. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  6243. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  6244. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  6245. end
  6246. if attack==false and Mode=="Demon" then
  6247. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  6248. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  6249. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  6250. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  6251. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  6252. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  6253. end
  6254. elseif torvel<1 and hitfloor~=nil then
  6255. if Anim=="Fall" then
  6256. if velderp<=-70 then
  6257. coroutine.resume(coroutine.create(function()
  6258. Stomp()
  6259. end))
  6260. end
  6261. end
  6262. Anim="Idle"
  6263. if idle<=500 then
  6264. if attack==false and Mode=="Binary" then
  6265. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  6266. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  6267. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  6268. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  6269. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  6270. RH.C0=clerp(RH.C0,RHC0,.2)
  6271. LH.C0=clerp(LH.C0,LHC0,.2)
  6272. end
  6273. if attack==false and Mode=="Demon" then
  6274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  6275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  6276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  6277. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  6278. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  6279. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  6280. end
  6281. else
  6282. if attack==false and Mode=="Binary" then
  6283. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  6284. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  6285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  6286. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  6287. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  6288. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  6289. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  6290. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  6291. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  6292. end
  6293. end
  6294. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  6295. if Anim=="Fall" then
  6296. if velderp<=-70 then
  6297. coroutine.resume(coroutine.create(function()
  6298. Stomp()
  6299. end))
  6300. end
  6301. end
  6302. Anim="Walk"
  6303. if attack==false and Mode=="Binary" then
  6304. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  6305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  6306. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  6307. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  6308. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  6309. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  6310. RH.C0=clerp(RH.C0,RHC0,.3)
  6311. LH.C0=clerp(LH.C0,LHC0,.3)
  6312. end
  6313. if attack==false and Mode=="Demon" then
  6314. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  6315. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  6316. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  6317. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  6318. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  6319. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  6320. end
  6321. elseif torvel>=22 and hitfloor~=nil then
  6322. if Anim=="Fall" then
  6323. if velderp<=-70 then
  6324. coroutine.resume(coroutine.create(function()
  6325. Stomp()
  6326. end))
  6327. end
  6328. end
  6329. Anim="Run"
  6330. if attack==false and Mode=="Binary" then
  6331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  6332. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  6333. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  6334. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  6335. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  6336. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  6337. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  6338. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  6339. end
  6340. if attack==false and Mode=="Demon" then
  6341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  6342. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  6343. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  6344. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  6345. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  6346. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  6347. end
  6348. end
  6349. end
  6350. if #Effects>0 then
  6351. --table.insert(Effects,{prt,"Block1",delay})
  6352. for e=1,#Effects do
  6353. if Effects[e]~=nil then
  6354. --for j=1,#Effects[e] do
  6355. local Thing=Effects[e]
  6356. if Thing~=nil then
  6357. local Part=Thing[1]
  6358. local Mode=Thing[2]
  6359. local Delay=Thing[3]
  6360. local IncX=Thing[4]
  6361. local IncY=Thing[5]
  6362. local IncZ=Thing[6]
  6363. if Thing[1].Transparency<=1 then
  6364. if Thing[2]=="Block1" then
  6365. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  6366. Mesh=Thing[1].Mesh
  6367. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  6368. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6369. elseif Thing[2]=="Cylinder" then
  6370. Mesh=Thing[1].Mesh
  6371. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  6372. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6373. elseif Thing[2]=="Blood" then
  6374. Mesh=Thing[1].Mesh
  6375. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  6376. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  6377. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6378. elseif Thing[2]=="Elec" then
  6379. Mesh=Thing[1].Mesh
  6380. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  6381. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6382. elseif Thing[2]=="Disappear" then
  6383. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6384. end
  6385. else
  6386. Part.Parent=nil
  6387. table.remove(Effects,e)
  6388. end
  6389. end
  6390. --end
  6391. end
  6392. end
  6393. end
  6394. end
  6395.  
  6396. chatted = false
  6397.  
  6398. a = Instance.new("BillboardGui", plr.Character:FindFirstChild("Head"))
  6399. a.ExtentsOffset = Vector3.new(1,0,0)
  6400. a.Size = UDim2.new(1,0,1,0)
  6401. a.AlwaysOnTop = true
  6402. a.Enabled = true
  6403. b = Instance.new("ImageLabel", a)
  6404. b.BackgroundTransparency = 1
  6405. b.BorderSizePixel = 0
  6406. b.Image = "http://www.roblox.com/asset/?id=243503908"
  6407. b.ImageTransparency = 0.1
  6408. b.Position = UDim2.new(0.2,0,0.05,0)
  6409. b.Size = UDim2.new(5,0,1.2,0)
  6410. b.Visible = false
  6411. c = Instance.new("TextLabel", b)
  6412. c.BackgroundTransparency = 1
  6413. c.BorderSizePixel = 0
  6414. c.Position = UDim2.new(0.1,0,0)
  6415. c.Size = UDim2.new(0.5,0,0.4,0)
  6416. c.ZIndex = 2
  6417. c.Font = "SourceSans"
  6418. c.FontSize = "Size18"
  6419. c.Text = plr.Name..":"
  6420. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  6421. c.TextXAlignment = "Left"
  6422. c.TextYAlignment = "Center"
  6423. d = Instance.new("TextLabel", b)
  6424. d.BackgroundTransparency = 1
  6425. d.BorderSizePixel = 0
  6426. d.Position = UDim2.new(0.1,0,0.4,0)
  6427. d.Size = UDim2.new(0.9,0,0.6,0)
  6428. d.ZIndex = 2
  6429. d.Font = "SourceSans"
  6430. d.FontSize = "Size18"
  6431. d.Text = ""
  6432. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  6433. d.TextXAlignment = "Left"
  6434. d.TextYAlignment = "Top"
  6435. d.TextWrapped = true
  6436.  
  6437.  
  6438. function message(message)
  6439. repeat wait() until chatted == false
  6440. chatted = true
  6441. b.Visible = true
  6442. if string.find(message,"-r") ~=nil then
  6443. for i=1,string.len(message),1 do
  6444. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  6445. d.Text = string.sub(message,1,i)
  6446. wait(0.1)
  6447. end
  6448. elseif string.find(message,"-b") ~=nil then
  6449. for i=1,string.len(message),1 do
  6450. d.Text = string.sub(string.byte(message),1,i)
  6451. wait(0.05)
  6452. end
  6453. else
  6454. for i=1,string.len(message),1 do
  6455. d.Text = string.sub(message,1,i)
  6456. wait(0.05)
  6457. end
  6458. end
  6459. wait(2)
  6460. if string.find(message,"-t") ~=nil then
  6461. b.Visible = true
  6462. else
  6463. b.Visible = false
  6464. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  6465. end
  6466. chatted = false
  6467. end
  6468.  
  6469. plr.Chatted:connect(message)
Add Comment
Please, Sign In to add comment