Advertisement
deadropz

Untitled

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