deadropz

Untitled

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