Advertisement
deadropz

Untitled

Jan 20th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 112.86 KB | None | 0 0
  1. --[pastebin url: http://pastebin.com/raw/vJmtAYPe]]--
  2.  
  3. function clerp(c1,c2,al)
  4. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  5. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  6. for i,v in pairs(com1) do
  7. com1[i] = v+(com2[i]-v)*al
  8. end
  9. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  10. end
  11.  
  12. ff = Instance.new("ForceField")
  13. Value = Instance.new("BoolValue", char)
  14. gui = Instance.new("BillboardGui", head)
  15. fra = Instance.new("TextLabel", gui)
  16. plr = game:service'Players'.LocalPlayer
  17. plrgui = plr:findFirstChild'PlayerGui'
  18. plrmouse = plr:GetMouse()
  19. char = plr.Character
  20. humanoid = char:findFirstChild("Humanoid")
  21. torso = char:findFirstChild("Torso")
  22. head = char.Head
  23. humanoid.Health = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  24. humanoid.WalkSpeed = 25
  25. ra = char:findFirstChild("Right Arm")
  26. la = char:findFirstChild("Left Arm")
  27. rl = char:findFirstChild("Right Leg")
  28. ll = char:findFirstChild("Left Leg")
  29. rs = torso:findFirstChild("Right Shoulder")
  30. ls = torso:findFirstChild("Left Shoulder")
  31. rh = torso:findFirstChild("Right Hip")
  32. lh = torso:findFirstChild("Left Hip")
  33. neck = torso:findFirstChild("Neck")
  34. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  35. rootpart = char:findFirstChild("HumanoidRootPart")
  36. camera = workspace.CurrentCamera
  37. anim = char:findFirstChild("Animate")
  38.  
  39.  
  40. local rm = Instance.new("Weld")
  41. rm.C0 = CFrame.new(1.5, 0.5, 0)
  42. rm.C1 = CFrame.new(0, 0.5, 0)
  43. rm.Part0 = torso
  44. rm.Part1 = ra
  45. rm.Name = 'Right Shoulder'
  46.  
  47. local lm = Instance.new("Weld")
  48. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  49. lm.C1 = CFrame.new(0, 0.5, 0)
  50. lm.Part0 = torso
  51. lm.Part1 = la
  52. lm.Name = 'Left Shoulder'
  53.  
  54. local tool = Instance.new('HopperBin', plr.Backpack)
  55. tool.Name = 'Dual Blue Gusters'
  56.  
  57. function scan(parent)
  58. local parts,last = {}
  59. for _,v in pairs(parent:GetChildren()) do
  60. if (v:IsA("BasePart")) then
  61. v.Anchored = true
  62. if (last) then
  63. local w = Instance.new("Weld")
  64. w.Name = ("%s_Weld"):format(v.Name)
  65. w.Part0,w.Part1 = last,v
  66. w.C0 = last.CFrame:inverse()
  67. w.C1 = v.CFrame:inverse()
  68. w.Parent = last
  69. end
  70. last = v
  71. table.insert(parts,v)
  72. end
  73. scan(v)
  74. end
  75. for _,v in pairs(parts) do
  76. v.Anchored = false
  77. v.Locked = true
  78. v.CanCollide = false
  79. end
  80. end
  81.  
  82. --1-Torso
  83. holsters=Instance.new("Model")
  84. holsters.Name="Torso"
  85. holsters.Parent=char
  86. --2-HolsterWeldTo2
  87. obj2=Instance.new("Part")
  88. obj2.CFrame=CFrame.new(Vector3.new(14.8519955,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  89. obj2.FormFactor=Enum.FormFactor.Custom
  90. obj2.LeftSurface=10
  91. obj2.Transparency=1
  92. obj2.TopSurface=10
  93. obj2.RightSurface=10
  94. obj2.Material="SmoothPlastic"
  95. obj2.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  96. obj2.FrontSurface=10
  97. obj2.BottomSurface=10
  98. obj2.BackSurface=10
  99. obj2.BrickColor=BrickColor.new("Really blue")
  100. obj2.Name="HolsterWeldTo2"
  101. obj2.Parent=holsters
  102. --3-Mesh
  103. obj3=Instance.new("BlockMesh")
  104. obj3.Scale=Vector3.new(0.999499977,1,1)
  105. obj3.Parent=obj2
  106. --4-Belt
  107. obj4=Instance.new("Part")
  108. obj4.CFrame=CFrame.new(Vector3.new(13.6000061,1.49000156,35.8999977)) * CFrame.Angles(-1.4901162970204e-008,0,-0)
  109. obj4.FormFactor=Enum.FormFactor.Custom
  110. obj4.LeftSurface=10
  111. obj4.TopSurface=10
  112. obj4.RightSurface=10
  113. obj4.Material="SmoothPlastic"
  114. obj4.Size=Vector3.new(2,0.200000003,1)
  115. obj4.FrontSurface=10
  116. obj4.BottomSurface=10
  117. obj4.BackSurface=10
  118. obj4.BrickColor=BrickColor.new("Really blue")
  119. obj4.Name="Belt"
  120. obj4.Parent=holsters
  121. --5-Mesh
  122. obj5=Instance.new("BlockMesh")
  123. obj5.Scale=Vector3.new(1.10000002,1,1.10000002)
  124. obj5.Parent=obj4
  125. --6-Hold2
  126. obj6=Instance.new("Part")
  127. obj6.CFrame=CFrame.new(Vector3.new(14.8000011,1.0950017,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  128. obj6.FormFactor=Enum.FormFactor.Custom
  129. obj6.LeftSurface=10
  130. obj6.TopSurface=10
  131. obj6.RightSurface=10
  132. obj6.Material="SmoothPlastic"
  133. obj6.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  134. obj6.FrontSurface=10
  135. obj6.BottomSurface=10
  136. obj6.BackSurface=10
  137. obj6.BrickColor=BrickColor.new("Really blue")
  138. obj6.Name="Hold2"
  139. obj6.Parent=holsters
  140. --7-TorsoWeld
  141. obj7=Instance.new("Part")
  142. obj7.CFrame=CFrame.new(Vector3.new(13.6000061,1.99000168,35.8999939)) * CFrame.Angles(-0,0,-0)
  143. obj7.FormFactor=Enum.FormFactor.Custom
  144. obj7.LeftSurface=10
  145. obj7.Transparency=1
  146. obj7.TopSurface=10
  147. obj7.RightSurface=10
  148. obj7.Size=Vector3.new(2,2,1)
  149. obj7.FrontSurface=10
  150. obj7.BottomSurface=10
  151. obj7.BackSurface=10
  152. obj7.BrickColor=BrickColor.new("Bright blue")
  153. obj7.Name="TorsoWeld"
  154. obj7.Parent=holsters
  155. --8-HolsterWeldTo
  156. obj8=Instance.new("Part")
  157. obj8.CFrame=CFrame.new(Vector3.new(12.342,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  158. obj8.FormFactor=Enum.FormFactor.Custom
  159. obj8.LeftSurface=10
  160. obj8.Transparency=1
  161. obj8.TopSurface=10
  162. obj8.RightSurface=10
  163. obj8.Material="SmoothPlastic"
  164. obj8.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  165. obj8.FrontSurface=10
  166. obj8.BottomSurface=10
  167. obj8.BackSurface=10
  168. obj8.BrickColor=BrickColor.new("Really blue")
  169. obj8.Name="HolsterWeldTo"
  170. obj8.Parent=holsters
  171. --9-Mesh
  172. obj9=Instance.new("BlockMesh")
  173. obj9.Scale=Vector3.new(0.999499977,1,1)
  174. obj9.Parent=obj8
  175. --10-Hold
  176. obj10=Instance.new("Part")
  177. obj10.CFrame=CFrame.new(Vector3.new(12.4000053,1.09500158,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  178. obj10.FormFactor=Enum.FormFactor.Custom
  179. obj10.LeftSurface=10
  180. obj10.TopSurface=10
  181. obj10.RightSurface=10
  182. obj10.Material="SmoothPlastic"
  183. obj10.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  184. obj10.FrontSurface=10
  185. obj10.BottomSurface=10
  186. obj10.BackSurface=10
  187. obj10.BrickColor=BrickColor.new("Really blue")
  188. obj10.Name="Hold"
  189. obj10.Parent=holsters
  190. holsters:MakeJoints()
  191. scan(holsters)
  192.  
  193. --1-M1911
  194. gun=Instance.new("Model")
  195. gun.Name="Blue Guster"
  196. gun.Parent=char
  197. --2-Handle
  198. obj2=Instance.new("Part")
  199. obj2.CFrame=CFrame.new(Vector3.new(12.3420238,1.86332655,36.3927727)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  200. obj2.FormFactor=Enum.FormFactor.Custom
  201. obj2.LeftSurface=10
  202. obj2.TopSurface=10
  203. obj2.RightSurface=10
  204. obj2.Material=Enum.Material.Neon
  205. obj2.Size=Vector3.new(0.200000003,0.99999994,0.400000036)
  206. obj2.FrontSurface=10
  207. obj2.BottomSurface=10
  208. obj2.BackSurface=10
  209. obj2.BrickColor=BrickColor.new("Really black")
  210. obj2.Name="Handle"
  211. obj2.Parent=gun
  212. --3-Decor
  213. obj3=Instance.new("Part")
  214. obj3.CFrame=CFrame.new(Vector3.new(12.3420143,2.28510284,35.9773712)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  215. obj3.FormFactor=Enum.FormFactor.Custom
  216. obj3.LeftSurface=10
  217. obj3.TopSurface=10
  218. obj3.RightSurface=10
  219. obj3.Material="SmoothPlastic"
  220. obj3.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  221. obj3.FrontSurface=10
  222. obj3.BottomSurface=10
  223. obj3.BackSurface=10
  224. obj3.BrickColor=BrickColor.new("Really blue")
  225. obj3.Name="Decor"
  226. obj3.Parent=gun
  227. --4-Mesh
  228. obj4=Instance.new("BlockMesh")
  229. obj4.Offset=Vector3.new(0,0.00999999978,0.0399999991)
  230. obj4.Scale=Vector3.new(0.699999988,0.200000003,0.800000012)
  231. obj4.Parent=obj3
  232. --5-Decor
  233. obj5=Instance.new("Part")
  234. obj5.CFrame=CFrame.new(Vector3.new(12.3420143,1.46716928,35.8617401)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  235. obj5.FormFactor=Enum.FormFactor.Custom
  236. obj5.LeftSurface=10
  237. obj5.TopSurface=10
  238. obj5.RightSurface=10
  239. obj5.Material="SmoothPlastic"
  240. obj5.Size=Vector3.new(0.200000003,0.400000006,0.200000003)
  241. obj5.FrontSurface=10
  242. obj5.BottomSurface=10
  243. obj5.BackSurface=10
  244. obj5.BrickColor=BrickColor.new("Really blue")
  245. obj5.Name="Decor"
  246. obj5.Parent=gun
  247. --6-Mesh
  248. obj6=Instance.new("BlockMesh")
  249. obj6.Scale=Vector3.new(0.600000024,1,0.200000003)
  250. obj6.Parent=obj5
  251. --7-Decor
  252. obj7=Instance.new("Part")
  253. obj7.CFrame=CFrame.new(Vector3.new(12.3420124,1.55429673,36.0928192)) * CFrame.Angles(0.45686540007591,-1.1175870895386e-008,3.141592502594)
  254. obj7.FormFactor=Enum.FormFactor.Custom
  255. obj7.LeftSurface=10
  256. obj7.TopSurface=10
  257. obj7.RightSurface=10
  258. obj7.Material="SmoothPlastic"
  259. obj7.Size=Vector3.new(0.200000003,0.310000002,0.200000003)
  260. obj7.FrontSurface=10
  261. obj7.BottomSurface=10
  262. obj7.BackSurface=10
  263. obj7.BrickColor=BrickColor.new("Really blue")
  264. obj7.Name="Decor"
  265. obj7.Parent=gun
  266. --8-Mesh
  267. obj8=Instance.new("BlockMesh")
  268. obj8.Scale=Vector3.new(0.600000024,1,0.200000003)
  269. obj8.Parent=obj7
  270. --9-Decor
  271. obj9=Instance.new("Part")
  272. obj9.CFrame=CFrame.new(Vector3.new(12.3420258,2.21372294,35.8965569)) * CFrame.Angles(0.76370096206665,-1.4901161193848e-008,-3.1415927410126)
  273. obj9.FormFactor=Enum.FormFactor.Custom
  274. obj9.LeftSurface=10
  275. obj9.TopSurface=10
  276. obj9.RightSurface=10
  277. obj9.Material="SmoothPlastic"
  278. obj9.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  279. obj9.FrontSurface=10
  280. obj9.BottomSurface=10
  281. obj9.BackSurface=10
  282. obj9.BrickColor=BrickColor.new("Really blue")
  283. obj9.Name="Decor"
  284. obj9.Parent=gun
  285. --10-Mesh
  286. obj10=Instance.new("BlockMesh")
  287. obj10.Scale=Vector3.new(0.400000006,0.200000003,1)
  288. obj10.Parent=obj9
  289. --11-Decor
  290. obj11=Instance.new("Part")
  291. obj11.CFrame=CFrame.new(Vector3.new(12.3420229,1.8633275,36.2927704)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  292. obj11.FormFactor=Enum.FormFactor.Custom
  293. obj11.LeftSurface=10
  294. obj11.TopSurface=10
  295. obj11.RightSurface=10
  296. obj11.Material="SmoothPlastic"
  297. obj11.Size=Vector3.new(0.200000003,1.20000005,0.400000036)
  298. obj11.FrontSurface=10
  299. obj11.BottomSurface=10
  300. obj11.BackSurface=10
  301. obj11.BrickColor=BrickColor.new("Really blue")
  302. obj11.Name="Decor"
  303. obj11.Parent=gun
  304. --12-Mesh
  305. obj12=Instance.new("BlockMesh")
  306. obj12.Offset=Vector3.new(0,-0.0700000003,0)
  307. obj12.Scale=Vector3.new(0.995000005,0.949999988,1.20000005)
  308. obj12.Parent=obj11
  309. --13-Decor
  310. obj13=Instance.new("Part")
  311. obj13.CFrame=CFrame.new(Vector3.new(12.3420258,2.30202365,35.8373909)) * CFrame.Angles(1.756756901741,-1.0430812835693e-007,3.1415927410126)
  312. obj13.FormFactor=Enum.FormFactor.Custom
  313. obj13.LeftSurface=10
  314. obj13.TopSurface=10
  315. obj13.RightSurface=10
  316. obj13.Material="SmoothPlastic"
  317. obj13.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  318. obj13.FrontSurface=10
  319. obj13.BottomSurface=10
  320. obj13.BackSurface=10
  321. obj13.BrickColor=BrickColor.new("Really blue")
  322. obj13.Name="Decor"
  323. obj13.Parent=gun
  324. --14-Mesh
  325. obj14=Instance.new("BlockMesh")
  326. obj14.Scale=Vector3.new(0.400000006,0.200000003,0.400000006)
  327. obj14.Parent=obj13
  328. --15-BulletCase
  329. obj15=Instance.new("Part")
  330. obj15.CFrame=CFrame.new(Vector3.new(12.3420229,1.44165683,35.6482697)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  331. obj15.FormFactor=Enum.FormFactor.Custom
  332. obj15.LeftSurface=10
  333. obj15.TopSurface=10
  334. obj15.RightSurface=10
  335. obj15.Material="SmoothPlastic"
  336. obj15.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  337. obj15.FrontSurface=10
  338. obj15.BottomSurface=10
  339. obj15.BackSurface=10
  340. obj15.BrickColor=BrickColor.new("Really blue")
  341. obj15.Name="BulletCase"
  342. obj15.Parent=gun
  343. --16-Mesh
  344. obj16=Instance.new("BlockMesh")
  345. obj16.Scale=Vector3.new(0.999499977,1,1)
  346. obj16.Parent=obj15
  347. --17-Flashlight
  348. obj17=Instance.new("Part")
  349. obj17.CFrame=CFrame.new(Vector3.new(12.3420115,0.729269207,35.601902)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  350. obj17.FormFactor=Enum.FormFactor.Custom
  351. obj17.LeftSurface=10
  352. obj17.TopSurface=10
  353. obj17.RightSurface=10
  354. obj17.Material="SmoothPlastic"
  355. obj17.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  356. obj17.FrontSurface=10
  357. obj17.BottomSurface=10
  358. obj17.BackSurface=10
  359. obj17.BrickColor=BrickColor.new("Pastel yellow")
  360. obj17.Name="Flashlight"
  361. obj17.Parent=gun
  362. --18-Mesh
  363. obj18=Instance.new("CylinderMesh")
  364. obj18.Offset=Vector3.new(0,0,0.0500000007)
  365. obj18.Scale=Vector3.new(0.5,1.01999998,0.5)
  366. obj18.Parent=obj17
  367. --19-Decor
  368. obj19=Instance.new("Part")
  369. obj19.CFrame=CFrame.new(Vector3.new(12.3420143,2.1178081,35.8290215)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  370. obj19.FormFactor=Enum.FormFactor.Custom
  371. obj19.LeftSurface=10
  372. obj19.TopSurface=10
  373. obj19.RightSurface=10
  374. obj19.Material="SmoothPlastic"
  375. obj19.Size=Vector3.new(0.200000003,0.400000036,0.200000003)
  376. obj19.FrontSurface=10
  377. obj19.BottomSurface=10
  378. obj19.BackSurface=10
  379. obj19.BrickColor=BrickColor.new("Really black")
  380. obj19.Name="Decor"
  381. obj19.Parent=gun
  382. --20-Mesh
  383. obj20=Instance.new("BlockMesh")
  384. obj20.Scale=Vector3.new(0.5,0.5,1.10000002)
  385. obj20.Parent=obj19
  386. --21-Decor
  387. obj21=Instance.new("Part")
  388. obj21.CFrame=CFrame.new(Vector3.new(12.2895117,2.05304575,35.6843338)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  389. obj21.FormFactor=Enum.FormFactor.Custom
  390. obj21.LeftSurface=10
  391. obj21.TopSurface=10
  392. obj21.RightSurface=10
  393. obj21.Material="SmoothPlastic"
  394. obj21.Size=Vector3.new(0.399999976,0.200000003,0.200000003)
  395. obj21.FrontSurface=10
  396. obj21.BottomSurface=10
  397. obj21.BackSurface=10
  398. obj21.BrickColor=BrickColor.new("Really blue")
  399. obj21.Name="Decor"
  400. obj21.Parent=gun
  401. --22-Mesh
  402. obj22=Instance.new("SpecialMesh")
  403. obj22.MeshType=Enum.MeshType.Wedge
  404. obj22.Scale=Vector3.new(1,0.25,0.50999999)
  405. obj22.Parent=obj21
  406. --23-Decor
  407. obj23=Instance.new("Part")
  408. obj23.CFrame=CFrame.new(Vector3.new(12.3420172,1.41577363,35.744442)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  409. obj23.FormFactor=Enum.FormFactor.Custom
  410. obj23.LeftSurface=10
  411. obj23.TopSurface=10
  412. obj23.RightSurface=10
  413. obj23.Material="SmoothPlastic"
  414. obj23.Size=Vector3.new(0.200000003,1.60000002,0.200000003)
  415. obj23.FrontSurface=10
  416. obj23.BottomSurface=10
  417. obj23.BackSurface=10
  418. obj23.BrickColor=BrickColor.new("Really blue")
  419. obj23.Name="Decor"
  420. obj23.Parent=gun
  421. --24-Mesh
  422. obj24=Instance.new("CylinderMesh")
  423. obj24.Parent=obj23
  424. --25-ShellCaseSpawner
  425. obj25=Instance.new("Part")
  426. obj25.CFrame=CFrame.new(Vector3.new(12.3420172,1.75731552,35.6289024)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  427. obj25.FormFactor=Enum.FormFactor.Custom
  428. obj25.LeftSurface=10
  429. obj25.TopSurface=10
  430. obj25.RightSurface=10
  431. obj25.Material="SmoothPlastic"
  432. obj25.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  433. obj25.FrontSurface=10
  434. obj25.BottomSurface=10
  435. obj25.BackSurface=10
  436. obj25.Name="ShellCaseSpawner"
  437. obj25.Parent=gun
  438. --26-Mesh
  439. obj26=Instance.new("CylinderMesh")
  440. obj26.Offset=Vector3.new(0.0149999997,0,-0.0350000001)
  441. obj26.Scale=Vector3.new(0.75,1,0.75)
  442. obj26.Parent=obj25
  443. --27-Decor
  444. obj27=Instance.new("Part")
  445. obj27.CFrame=CFrame.new(Vector3.new(12.3420115,0.765501678,35.4666672)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  446. obj27.FormFactor=Enum.FormFactor.Custom
  447. obj27.LeftSurface=10
  448. obj27.TopSurface=10
  449. obj27.RightSurface=10
  450. obj27.Material="SmoothPlastic"
  451. obj27.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  452. obj27.FrontSurface=10
  453. obj27.BottomSurface=10
  454. obj27.BackSurface=10
  455. obj27.BrickColor=BrickColor.new("Really black")
  456. obj27.Name="Decor"
  457. obj27.Parent=gun
  458. --28-Mesh
  459. obj28=Instance.new("CylinderMesh")
  460. obj28.Offset=Vector3.new(0,0,0.0500000007)
  461. obj28.Scale=Vector3.new(0.5,1.01999998,0.5)
  462. obj28.Parent=obj27
  463. --29-Decor
  464. obj29=Instance.new("Part")
  465. obj29.CFrame=CFrame.new(Vector3.new(12.3920164,1.4734931,35.5290413)) * CFrame.Angles(-1.3089969158173,-1.5701057910919,-0)
  466. obj29.FormFactor=Enum.FormFactor.Custom
  467. obj29.LeftSurface=10
  468. obj29.TopSurface=10
  469. obj29.RightSurface=10
  470. obj29.Material="SmoothPlastic"
  471. obj29.Size=Vector3.new(1.60000002,0.200000003,0.200000003)
  472. obj29.FrontSurface=10
  473. obj29.BottomSurface=10
  474. obj29.BackSurface=10
  475. obj29.BrickColor=BrickColor.new("Really blue")
  476. obj29.Name="Decor"
  477. obj29.Parent=gun
  478. --30-Mesh
  479. obj30=Instance.new("SpecialMesh")
  480. obj30.MeshType=Enum.MeshType.Wedge
  481. obj30.Scale=Vector3.new(1,0.25,0.5)
  482. obj30.Parent=obj29
  483. --31-Decor
  484. obj31=Instance.new("Part")
  485. obj31.CFrame=CFrame.new(Vector3.new(12.2895117,1.18371284,35.4513969)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  486. obj31.FormFactor=Enum.FormFactor.Custom
  487. obj31.LeftSurface=10
  488. obj31.TopSurface=10
  489. obj31.RightSurface=10
  490. obj31.Material="SmoothPlastic"
  491. obj31.Size=Vector3.new(1,0.200000003,0.200000003)
  492. obj31.FrontSurface=10
  493. obj31.BottomSurface=10
  494. obj31.BackSurface=10
  495. obj31.BrickColor=BrickColor.new("Really blue")
  496. obj31.Name="Decor"
  497. obj31.Parent=gun
  498. --32-Mesh
  499. obj32=Instance.new("SpecialMesh")
  500. obj32.MeshType=Enum.MeshType.Wedge
  501. obj32.Scale=Vector3.new(1,0.25,0.50999999)
  502. obj32.Parent=obj31
  503. gun:MakeJoints()
  504. scan(gun)
  505.  
  506. local gun2 = gun:clone()
  507. gun2.Parent = char
  508.  
  509. local torsoweld = Instance.new('Weld', char)
  510. torsoweld.Part0 = torso
  511. torsoweld.Part1 = holsters.TorsoWeld
  512. torsoweld.C1 = CFrame.Angles(0,math.pi,0)
  513.  
  514. local gunweld = Instance.new('Weld', char)
  515. gunweld.Part0 = gun.BulletCase
  516. gunweld.Part1 = holsters.HolsterWeldTo
  517.  
  518. local gunweld2 = Instance.new('Weld', char)
  519. gunweld2.Part0 = gun2.BulletCase
  520. gunweld2.Part1 = holsters.HolsterWeldTo2
  521.  
  522. local bodygyro = Instance.new('BodyGyro')
  523. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  524. bodygyro.P = 15000
  525.  
  526. local rsc0 = rm.C0
  527. local lsc0 = lm.C0
  528. local angle = 0
  529. local anglespeed = .5
  530. local speed = .3
  531. local side = 0
  532. local Equipped = false
  533. local origneckc0 = neck.C0
  534. local origneckc1 = neck.C1
  535. local neckc0 = CFrame.new(0, 1, 0)
  536. local firing = false
  537. local pistol = 1
  538. local light = false
  539.  
  540. local gunlight = Instance.new('SpotLight', gun.Flashlight)
  541. gunlight.Range = 40
  542. gunlight.Angle = 60
  543. gunlight.Face = 'Bottom'
  544. gunlight.Shadows = true
  545. gunlight.Enabled = false
  546.  
  547. local gunlight2 = gunlight:clone()
  548. gunlight2.Parent = gun2.Flashlight
  549.  
  550. local fire = Instance.new('Sound', head)
  551. fire.SoundId = "rbxassetid://260433746"
  552. fire.Volume = 18000000
  553.  
  554. local song = Instance.new('Sound', head)
  555. song.SoundId = "rbxassetid://142653441"
  556. song.Volume = 10000000
  557. song.Looped = true
  558.  
  559. local song2 = Instance.new('Sound', head)
  560. song2.SoundId = "rbxassetid://408386283"
  561. song2.Volume = 1000000
  562. song2.Looped = true
  563.  
  564. local reload = Instance.new('Sound', head)
  565. reload.SoundId = "rbxassetid://266022905"
  566. reload.Volume = 180000
  567.  
  568. local ammo = 40
  569. local scrgui = Instance.new('ScreenGui', plrgui)
  570. scrgui.Name = 'DualGunsGui'
  571.  
  572. local ammonution = Instance.new('TextLabel', scrgui)
  573. ammonution.Size = UDim2.new(0,150,0,50)
  574. ammonution.Position = UDim2.new(1, -250, 1, -70)
  575. ammonution.BackgroundTransparency = 1
  576. ammonution.TextColor3 = Color3.new(1,1,1)
  577. ammonution.TextStrokeTransparency = .1
  578. ammonution.Text = ('| '):rep(ammo)
  579. ammonution.TextXAlignment = 'Right'
  580. ammonution.ZIndex = 2
  581. ammonution.FontSize = 'Size18'
  582.  
  583. local ammonution2 = Instance.new('TextLabel', scrgui)
  584. ammonution2.Size = UDim2.new(0,150,0,50)
  585. ammonution2.Position = UDim2.new(1, -250, 1, -70)
  586. ammonution2.BackgroundTransparency = 1
  587. ammonution2.TextColor3 = Color3.new(.5,.5,.5)
  588. ammonution2.TextStrokeTransparency = .1
  589. ammonution2.TextXAlignment = 'Right'
  590. ammonution2.Text = ('| '):rep(ammo)
  591. ammonution2.FontSize = 'Size18'
  592.  
  593. local rel = Instance.new('TextButton', scrgui)
  594. rel.Size = UDim2.new(0,500,0,250)
  595. rel.Position = UDim2.new(.5, -250, .8, -250)
  596. rel.BackgroundTransparency = 1
  597. rel.TextColor3 = Color3.new(.7,0,0)
  598. rel.Visible = false
  599. rel.Text = 'Reload (r)'
  600. rel.FontSize = 'Size24'
  601.  
  602. rel.MouseButton1Down:connect(function()
  603. if ammo >= 40 or firing then return end
  604. dontclerpneck = true
  605. firing = true
  606. local dropammo = gun.Handle:clone()
  607. dropammo:ClearAllChildren()
  608. dropammo.CanCollide = true
  609. dropammo.BrickColor = BrickColor.Black()
  610. dropammo.Parent = workspace
  611. dropammo.CFrame = gun.Handle.CFrame
  612. local dropammo2 = dropammo:clone()
  613. dropammo2.Parent = workspace
  614. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  615. game:service'Debris':AddItem(dropammo,15)
  616. game:service'Debris':AddItem(dropammo2,15)
  617. wait(.5)
  618. reload:play()
  619. for i = 1, 65 do
  620. firing = true
  621. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  622. 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)
  623. lm.C0 = clerp(lm.C0,lscf,speed)
  624. rm.C0 = clerp(rm.C0,rscf,speed)
  625. game:service'RunService'.RenderStepped:wait()
  626. end
  627. reload:play()
  628. for i = 1, 65 do
  629. firing = true
  630. 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)
  631. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  632. lm.C0 = clerp(lm.C0,lscf,speed)
  633. rm.C0 = clerp(rm.C0,rscf,speed)
  634. game:service'RunService'.RenderStepped:wait()
  635. end
  636. dontclerpneck = false
  637. firing = false
  638. ammo = 26
  639. ammonution.Text = ('| '):rep(ammo)
  640. end)
  641. tool.Selected:connect(function(mouse)
  642. Equipped = true
  643. bodygyro.Parent = torso
  644. bodygyro.cframe = torso.CFrame
  645. rs.Parent = nil
  646. ls.Parent = nil
  647. rm.Parent = torso
  648. lm.Parent = torso
  649. neck.C0 = CFrame.new(0, 1, 0)
  650. neck.C1 = CFrame.new(0, -0.5, 0)
  651. gunweld.Part0 = gun.Handle
  652. gunweld2.Part0 = gun2.Handle
  653. gunweld.Part1 = ra
  654. gunweld2.Part1 = la
  655. gunweld.C1 = CFrame.new(0, -.8, 0)
  656. gunweld.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  657. gunweld2.C1 = CFrame.new(0, -.8, 0)
  658. gunweld2.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  659. mouse.KeyDown:connect(function(k)
  660. if k == "r" then
  661. if ammo >= 40 or firing then return end
  662. dontclerpneck = true
  663. firing = true
  664. local dropammo = gun.Handle:clone()
  665. dropammo:ClearAllChildren()
  666. dropammo.CanCollide = true
  667. dropammo.BrickColor = BrickColor.Black()
  668. dropammo.Parent = workspace
  669. dropammo.CFrame = gun.Handle.CFrame
  670. local dropammo2 = dropammo:clone()
  671. dropammo2.Parent = workspace
  672. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  673. game:service'Debris':AddItem(dropammo,15)
  674. game:service'Debris':AddItem(dropammo2,15)
  675. wait(.5)
  676. reload:play()
  677. for i = 1, 65 do
  678. firing = true
  679. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  680. 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)
  681. lm.C0 = clerp(lm.C0,lscf,speed)
  682. rm.C0 = clerp(rm.C0,rscf,speed)
  683. game:service'RunService'.RenderStepped:wait()
  684. end
  685. reload:play()
  686. for i = 1, 65 do
  687. firing = true
  688. 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)
  689. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  690. lm.C0 = clerp(lm.C0,lscf,speed)
  691. rm.C0 = clerp(rm.C0,rscf,speed)
  692. game:service'RunService'.RenderStepped:wait()
  693. end
  694. dontclerpneck = false
  695. firing = false
  696. ammo = 40
  697. ammonution.Text = ('| '):rep(ammo)
  698. end
  699. if k == "f" then
  700. game:GetService("Chat"):Chat(plr.Character.Head, "Boss Mode!", Enum.ChatColor.Red)
  701. song:Play()
  702. char.Head.face.Texture = "http://www.roblox.com/asset/?id=397016154"
  703. else
  704. if k == "g" then
  705. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  706. song:Stop()
  707. char.Head.face.Texture = "http://www.roblox.com/asset/?id=479899397"
  708. else
  709. if k == "h" then
  710. game:GetService("Chat"):Chat(plr.Character.Head, "Evil Mode!", Enum.ChatColor.Red)
  711. song2:Play()
  712. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152629683"
  713. else
  714. if k == "j" then
  715. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  716. song2:Stop()
  717. char.Head.face.Texture = "http://www.roblox.com/asset/?id=479899397"
  718. else
  719. if k == "k" then
  720. humanoid.WalkSpeed = 60
  721. else
  722. if k == "l" then
  723. humanoid.WalkSpeed = 25
  724. else
  725. if k == "p" then
  726. game:GetService("Chat"):Chat(plr.Character.Head, "Human Mode!", Enum.ChatColor.Green)
  727. plr.Character.Humanoid.Health = (10000000000000000)
  728. plr.Character.Humanoid.MaxHealth = (10000000000000000)
  729. else
  730. if k == "u" then
  731. game:GetService("Chat"):Chat(plr.Character.Head, "Demi God Mode!", Enum.ChatColor.Red)
  732. plr.Character.Humanoid.Health = (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  733. plr.Character.Humanoid.MaxHealth = (1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  734. else
  735. if k == "q" then
  736. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Enabled", Enum.ChatColor.Red)
  737. Value = true
  738. else
  739. if k == "e" then
  740. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Disabled", Enum.ChatColor.Green)
  741. Value = false
  742. else
  743. if k == "b" then
  744. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Enabled!", Enum.ChatColor.Blue)
  745. ff:Clone().Parent = char
  746. else
  747. if k == "v" then
  748. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Disabled!", Enum.ChatColor.Blue)
  749. char.ForceField:Destroy()
  750. end
  751. end
  752. end
  753. end
  754. end
  755. end
  756. end
  757. end
  758. end
  759. end
  760. end
  761. end
  762. end)
  763. mouse.Button1Down:connect(function()
  764. if ammo <= 0 then
  765. local sound = Instance.new('Sound', head)
  766. sound.SoundId = "rbxassetid://260433746"
  767. sound.Volume = 2
  768. sound:play()
  769. game:service'Debris':AddItem(sound,1)
  770. end
  771. if firing or ammo <= 0 then return end
  772. ammo = ammo - 1
  773. ammonution.Text = ('| '):rep(ammo)
  774. firing = true
  775. local pa = Instance.new('Part')
  776. pa.CanCollide = false
  777. pa.Anchored = true
  778. pa.Locked = true
  779. pa.FormFactor = 'Custom'
  780. pa.Material = 'Neon'
  781. pa.BrickColor = BrickColor.new('Cyan')
  782. pa.Size = Vector3.new(.2,3,.2)
  783. Instance.new('BlockMesh', pa).Scale = Vector3.new(.2,3,.2)
  784. local thegun
  785. if pistol == 1 then
  786. thegun = gun.BulletCase
  787. elseif pistol == 2 then
  788. thegun = gun2.BulletCase
  789. end
  790. local muzzle = Instance.new('PointLight', thegun)
  791. muzzle.Range = 1211111
  792. muzzle.Color = Color3.new(0, 81, 255)
  793. game:service'Debris':AddItem(muzzle, .05)
  794. local shell = pa:clone()
  795. shell:ClearAllChildren()
  796. shell.Anchored = false
  797. shell.CFrame = thegun.Parent.ShellCaseSpawner.CFrame
  798. shell.Size = Vector3.new(.2,.5,.2)
  799. shell.Parent = workspace
  800. shell.Material = 'Neon'
  801. shell.BrickColor = BrickColor.new('Cyan')
  802. shell.CanCollide = true
  803. game:service'Debris':AddItem(shell, 5)
  804. local bulletpos = thegun.Position
  805. local bulletvelocity = (mouse.Hit.p - bulletpos).unit*15
  806. local lastbulletpos = thegun.Position
  807. fire:play()
  808. coroutine.wrap(function()
  809. while game:service'RunService'.Stepped:wait() do
  810. lastbulletpos = bulletpos
  811. bulletpos = bulletpos + bulletvelocity
  812. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  813. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  814. if (torso.Position - pa.Position).magnitude > 800 then
  815. pa:Destroy()
  816. break
  817. end
  818. pa.Anchored = true
  819. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  820. if hit then
  821. local damage
  822. local sound = Instance.new('Sound', pa)
  823. sound.SoundId = "rbxassetid://166423137"
  824. sound.Pitch = 1.2+math.random()/3
  825. sound.Volume = 1
  826. sound:play()
  827. pa:Destroy()
  828. if Value == true then
  829. hit:Destroy()
  830. end
  831. game:service'Debris':AddItem(sound,4)
  832. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  833. local hitz, enz = workspace:FindPartOnRay(ray, char)
  834. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  835. if hum then
  836. damage = math.random(40,90)
  837. hum:TakeDamage(damage)
  838. end
  839. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  840. if hum then
  841. damage = math.random(40,90)
  842. hum:TakeDamage(damage)
  843. end
  844. break
  845. end
  846. pa.Anchored = true
  847. pa.Parent = char
  848. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  849. end
  850. end)()
  851.  
  852. if pistol == 1 then
  853. pistol = 2
  854. for i = 1, 4 do
  855. 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)
  856. 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)
  857. lm.C0 = clerp(lm.C0,lscf,speed)
  858. rm.C0 = clerp(rm.C0,rscf,speed)
  859. game:service'RunService'.RenderStepped:wait()
  860. end
  861. elseif pistol == 2 then
  862. for i = 1, 4 do
  863. 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)
  864. 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)
  865. lm.C0 = clerp(lm.C0,lscf,speed)
  866. rm.C0 = clerp(rm.C0,rscf,speed)
  867. game:service'RunService'.RenderStepped:wait()
  868. end
  869. pistol = 1
  870. end
  871. firing = false
  872. end)
  873. end)
  874. tool.Deselected:connect(function()
  875. Equipped = false
  876. rm.Parent = nil
  877. lm.Parent = nil
  878. rs.Parent = torso
  879. ls.Parent = torso
  880. neck.C0 = origneckc0
  881. neck.C1 = origneckc1
  882. lm.C0 = lsc0
  883. rm.C0 = rsc0
  884. gunweld.Part0 = gun.BulletCase
  885. gunweld.Part1 = holsters.HolsterWeldTo
  886. gunweld.C0 = CFrame.new()
  887. gunweld.C1 = CFrame.new()
  888. gunweld2.Part0 = gun2.BulletCase
  889. gunweld2.Part1 = holsters.HolsterWeldTo2
  890. gunweld2.C0 = CFrame.new()
  891. gunweld2.C1 = CFrame.new()
  892. bodygyro.Parent = nil
  893. end)
  894.  
  895. game:service'RunService'.RenderStepped:connect(function()
  896. if Equipped then
  897. if ammo <= 0 then
  898. rel.Visible = true
  899. else
  900. rel.Visible = false
  901. end
  902. if light then
  903. gunlight.Enabled = true
  904. gunlight2.Enabled = true
  905. else
  906. gunlight.Enabled = false
  907. gunlight2.Enabled = false
  908. end
  909. angle = angle + (0.05+math.random()/20)
  910. local rscf = rsc0
  911. local lscf = lsc0
  912. local ncf = neckc0
  913. local rmx,rmy,rmz = rm.C0:toEulerAnglesXYZ()
  914. if rmz >= 1 then
  915. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  916. elseif rmz <= -1 then
  917. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  918. end
  919. 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)
  920. 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)
  921. ncf = neckc0 * CFrame.new(Vector3.new(), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p))
  922. if not firing then
  923. lm.C0 = clerp(lm.C0,lscf,speed)
  924. rm.C0 = clerp(rm.C0,rscf,speed)
  925. end
  926. if not dontclerpneck then
  927. neck.C0 = clerp(neck.C0,ncf,speed)
  928. end
  929. end
  930. if light and not Equipped then
  931. gunlight.Enabled = false
  932. gunlight2.Enabled = false
  933. end
  934. end)
  935.  
  936. chatted = false
  937.  
  938. a = Instance.new("BillboardGui", plr.Character:FindFirstChild("Head"))
  939. a.ExtentsOffset = Vector3.new(1,0,0)
  940. a.Size = UDim2.new(1,0,1,0)
  941. a.AlwaysOnTop = true
  942. a.Enabled = true
  943. b = Instance.new("ImageLabel", a)
  944. b.BackgroundTransparency = 1
  945. b.BorderSizePixel = 0
  946. b.Image = "http://www.roblox.com/asset/?id=243503908"
  947. b.ImageTransparency = 0.1
  948. b.Position = UDim2.new(0.2,0,0.05,0)
  949. b.Size = UDim2.new(5,0,1.2,0)
  950. b.Visible = false
  951. c = Instance.new("TextLabel", b)
  952. c.BackgroundTransparency = 1
  953. c.BorderSizePixel = 0
  954. c.Position = UDim2.new(0.1,0,0)
  955. c.Size = UDim2.new(0.5,0,0.4,0)
  956. c.ZIndex = 2
  957. c.Font = "SourceSans"
  958. c.FontSize = "Size18"
  959. c.Text = plr.Name..":"
  960. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  961. c.TextXAlignment = "Left"
  962. c.TextYAlignment = "Center"
  963. d = Instance.new("TextLabel", b)
  964. d.BackgroundTransparency = 1
  965. d.BorderSizePixel = 0
  966. d.Position = UDim2.new(0.1,0,0.4,0)
  967. d.Size = UDim2.new(0.9,0,0.6,0)
  968. d.ZIndex = 2
  969. d.Font = "SourceSans"
  970. d.FontSize = "Size18"
  971. d.Text = ""
  972. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  973. d.TextXAlignment = "Left"
  974. d.TextYAlignment = "Top"
  975. d.TextWrapped = true
  976.  
  977.  
  978. function message(message)
  979. repeat wait() until chatted == false
  980. chatted = true
  981. b.Visible = true
  982. if string.find(message,"-r") ~=nil then
  983. for i=1,string.len(message),1 do
  984. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  985. d.Text = string.sub(message,1,i)
  986. wait(0.1)
  987. end
  988. elseif string.find(message,"-b") ~=nil then
  989. for i=1,string.len(message),1 do
  990. d.Text = string.sub(string.byte(message),1,i)
  991. wait(0.05)
  992. end
  993. else
  994. for i=1,string.len(message),1 do
  995. d.Text = string.sub(message,1,i)
  996. wait(0.05)
  997. end
  998. end
  999. wait(2)
  1000. if string.find(message,"-t") ~=nil then
  1001. b.Visible = true
  1002. else
  1003. b.Visible = false
  1004. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1005. end
  1006. chatted = false
  1007. end
  1008.  
  1009.  
  1010. wait(2.6)
  1011. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Blue Gust Blade!", "Red")
  1012. Player=game:GetService("Players").LocalPlayer
  1013. Character=Player.Character
  1014. PlayerGui=Player.PlayerGui
  1015. Backpack=Player.Backpack
  1016. Torso=Character.Torso
  1017. Head=Character.Head
  1018. Humanoid=Character.Humanoid
  1019. print('Player is Eliagable')
  1020. LeftArm=Character["Left Arm"]
  1021. LeftLeg=Character["Left Leg"]
  1022. RightArm=Character["Right Arm"]
  1023. RightLeg=Character["Right Leg"]
  1024. LS=Torso["Left Shoulder"]
  1025. LH=Torso["Left Hip"]
  1026. RS=Torso["Right Shoulder"]
  1027. RH=Torso["Right Hip"]
  1028. Neck=Torso.Neck
  1029. it=Instance.new
  1030. vt=Vector3.new
  1031. cf=CFrame.new
  1032. euler=CFrame.fromEulerAnglesXYZ
  1033. angles=CFrame.Angles
  1034. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1035. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1036. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1037. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1038. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1039. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1040. RootPart=Character.HumanoidRootPart
  1041. RootJoint=RootPart.RootJoint
  1042. RootCF=euler(-1.57,0,3.14)
  1043. attack=false
  1044. attackdebounce=false
  1045. MMouse=nil
  1046. combo=0
  1047. local Anim="Idle"
  1048. local Effects={}
  1049. equipped=false
  1050. local idle=0
  1051. local hold=false
  1052. local con1=nil
  1053. local con2=nil
  1054. local Mode="Binary"
  1055. local idleanim=0
  1056. local idleanim2=false
  1057. local impulse=1
  1058. local hitfloor,posfloor=nil,nil
  1059. local damcount=0
  1060. local guard=false
  1061. --player
  1062. player=nil
  1063. --save shoulders
  1064. RSH, LSH=nil, nil
  1065. --welds
  1066. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1067. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1068. LH=Torso["Left Hip"]
  1069. RH=Torso["Right Hip"]
  1070. Asset="http://www.roblox.com/asset/?id="
  1071. Health=879000
  1072. Humanoid.MaxHealth=879000
  1073. Humanoid.Health=879000
  1074. coroutine.resume(coroutine.create(function()
  1075. for i=1,20 do
  1076. Humanoid.MaxHealth=879000
  1077. Humanoid.Health=879000
  1078. end
  1079. Humanoid.MaxHealth=879000
  1080. Humanoid.Health=879000
  1081. Humanoid:TakeDamage(0)
  1082. Humanoid.Health=Health
  1083. end))
  1084. Humanoid.Health=Health
  1085.  
  1086. function swait(num)
  1087. if num==0 or num==nil then
  1088. game:service'RunService'.RenderStepped:wait()
  1089. else
  1090. for i=0,num do
  1091. game:service'RunService'.RenderStepped:wait()
  1092. end
  1093. end
  1094. end
  1095.  
  1096. if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
  1097. Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
  1098. end
  1099. if Character:findFirstChild("Demon Blade",true) ~= nil then
  1100. Character:findFirstChild("Demon Blade",true).Parent = nil
  1101. end
  1102. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  1103. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  1104. end
  1105.  
  1106.  
  1107. function NoOutline(Part)
  1108. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1109. end
  1110.  
  1111. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1112. local fp=it("Part")
  1113. fp.formFactor=formfactor
  1114. fp.Parent=parent
  1115. fp.Reflectance=reflectance
  1116. fp.Transparency=transparency
  1117. fp.CanCollide=false
  1118. fp.Locked=true
  1119. fp.BrickColor=brickcolor
  1120. fp.Name=name
  1121. fp.Size=size
  1122. fp.Position=Torso.Position
  1123. NoOutline(fp)
  1124. fp.Material="Granite"
  1125. fp:BreakJoints()
  1126. return fp
  1127. end
  1128.  
  1129. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1130. local mesh=it(Mesh)
  1131. mesh.Parent=part
  1132. if Mesh=="SpecialMesh" then
  1133. mesh.MeshType=meshtype
  1134. mesh.MeshId=meshid
  1135. end
  1136. mesh.Offset=offset
  1137. mesh.Scale=scale
  1138. return mesh
  1139. end
  1140.  
  1141. function weld(parent,part0,part1,c0)
  1142. local weld=it("Weld")
  1143. weld.Parent=parent
  1144. weld.Part0=part0
  1145. weld.Part1=part1
  1146. weld.C0=c0
  1147. return weld
  1148. end
  1149.  
  1150. local fengui=it("GuiMain")
  1151. fengui.Parent=Player.PlayerGui
  1152. fengui.Name="WeaponGUI"
  1153.  
  1154. local Color1=BrickColor.new("Really blue")
  1155. local Color2=BrickColor.new("Black")
  1156. local Colorr3=BrickColor.new("Black")
  1157. local Color4=BrickColor.new("Really blue")
  1158.  
  1159. local model1=Instance.new("Model")
  1160. model1.Parent=Character
  1161. model1.Name="Hades Judgement Blade"
  1162. BSword={}
  1163. BSwordWelds={}
  1164. local model2=Instance.new("Model")
  1165. model2.Parent=nil
  1166. model2.Name="Demon Blade"
  1167. DBlade={}
  1168. DBladeWelds={}
  1169.  
  1170. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  1171. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  1172. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  1173. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  1174. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  1175. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  1176. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  1177. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  1178. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  1179. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  1180. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  1181. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  1182.  
  1183. prtd1=part(3,model2,0,0.4,BrickColor.new("Really blue"),"DPart1",vt())
  1184. prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
  1185. prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
  1186. prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
  1187. prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
  1188. prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
  1189. prtd7=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart7",vt())
  1190. prtd8=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart8",vt())
  1191. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart9",vt())
  1192. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart10",vt())
  1193. prtd11=part(3,model2,0.5,0,BrickColor.new("Really blue"),"DPart11",vt())
  1194. prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
  1195. for _,c in pairs(model2:children()) do
  1196. if c.className=="Part" then
  1197. table.insert(DBlade,c)
  1198. end
  1199. end
  1200. light=it("PointLight")
  1201. light.Brightness=.8
  1202. light.Color=Color3.new(255/255,50/255,0)
  1203. --light.Color=BrickColor.new("Really red")
  1204. light.Range=10
  1205. light.Parent=prtd9
  1206.  
  1207. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  1208. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  1209. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  1210. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  1211. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  1212. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  1213. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  1214. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  1215. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  1216. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  1217. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  1218. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  1219.  
  1220. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  1221. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  1222. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  1223. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  1224. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  1225. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  1226. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  1227. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  1228. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  1229. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  1230. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  1231. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  1232.  
  1233. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  1234. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  1235. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  1236. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  1237. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  1238. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  1239. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  1240. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  1241. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  1242. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  1243. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  1244. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  1245.  
  1246. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  1247. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  1248. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  1249. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  1250. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  1251. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  1252. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  1253. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  1254. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  1255. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  1256. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  1257. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  1258. for _,c in pairs(prtd1:children()) do
  1259. if c.className=="Weld" then
  1260. table.insert(DBladeWelds,c)
  1261. print(c)
  1262. end
  1263. end
  1264.  
  1265. for i=-.9,.9,0.2 do
  1266. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  1267. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  1268. 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))
  1269. end
  1270.  
  1271. local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  1272. local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  1273.  
  1274. if (script.Parent.className~="HopperBin") then
  1275. Tool=Instance.new("HopperBin")
  1276. Tool.Parent=Backpack
  1277. Tool.Name="Hades Judgement Blade"
  1278. script.Parent=Tool
  1279. end
  1280. Bin=script.Parent
  1281. --Bin=Tool
  1282.  
  1283. local bodvel=Instance.new("BodyVelocity")
  1284. bodvel.Name="FixerVel"
  1285. local bg=Instance.new("BodyGyro")
  1286. bg.Name="FixerGyro"
  1287.  
  1288. so = function(id,par,vol,pit)
  1289. coroutine.resume(coroutine.create(function()
  1290. local sou = Instance.new("Sound",par or workspace)
  1291. sou.Parent=par
  1292. sou.Volume=vol
  1293. sou.Pitch=pit or 1
  1294. sou.SoundId=id
  1295. swait()
  1296. sou:Play()
  1297. game:GetService("Debris"):AddItem(sou,6)
  1298. end))
  1299. end
  1300.  
  1301. function clerp(a,b,t)
  1302. local qa = {QuaternionFromCFrame(a)}
  1303. local qb = {QuaternionFromCFrame(b)}
  1304. local ax, ay, az = a.x, a.y, a.z
  1305. local bx, by, bz = b.x, b.y, b.z
  1306. local _t = 1-t
  1307. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1308. end
  1309.  
  1310. function QuaternionFromCFrame(cf)
  1311. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1312. local trace = m00 + m11 + m22
  1313. if trace > 0 then
  1314. local s = math.sqrt(1 + trace)
  1315. local recip = 0.5/s
  1316. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1317. else
  1318. local i = 0
  1319. if m11 > m00 then
  1320. i = 1
  1321. end
  1322. if m22 > (i == 0 and m00 or m11) then
  1323. i = 2
  1324. end
  1325. if i == 0 then
  1326. local s = math.sqrt(m00-m11-m22+1)
  1327. local recip = 0.5/s
  1328. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1329. elseif i == 1 then
  1330. local s = math.sqrt(m11-m22-m00+1)
  1331. local recip = 0.5/s
  1332. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1333. elseif i == 2 then
  1334. local s = math.sqrt(m22-m00-m11+1)
  1335. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1336. end
  1337. end
  1338. end
  1339.  
  1340. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1341. local xs, ys, zs = x + x, y + y, z + z
  1342. local wx, wy, wz = w*xs, w*ys, w*zs
  1343. local xx = x*xs
  1344. local xy = x*ys
  1345. local xz = x*zs
  1346. local yy = y*ys
  1347. local yz = y*zs
  1348. local zz = z*zs
  1349. 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))
  1350. end
  1351.  
  1352. function QuaternionSlerp(a, b, t)
  1353. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1354. local startInterp, finishInterp;
  1355. if cosTheta >= 0.0001 then
  1356. if (1 - cosTheta) > 0.0001 then
  1357. local theta = math.acos(cosTheta)
  1358. local invSinTheta = 1/math.sin(theta)
  1359. startInterp = math.sin((1-t)*theta)*invSinTheta
  1360. finishInterp = math.sin(t*theta)*invSinTheta
  1361. else
  1362. startInterp = 1-t
  1363. finishInterp = t
  1364. end
  1365. else
  1366. if (1+cosTheta) > 0.0001 then
  1367. local theta = math.acos(-cosTheta)
  1368. local invSinTheta = 1/math.sin(theta)
  1369. startInterp = math.sin((t-1)*theta)*invSinTheta
  1370. finishInterp = math.sin(t*theta)*invSinTheta
  1371. else
  1372. startInterp = t-1
  1373. finishInterp = t
  1374. end
  1375. end
  1376. 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
  1377. end
  1378.  
  1379. function hideanim()
  1380. equipped=false
  1381. attack=true
  1382. if Mode=="Binary" then
  1383. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1384. for i=0,1,0.1 do
  1385. swait()
  1386. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1388. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1389. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1390. end
  1391. wld1.Part1=Torso
  1392. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1393. for i=0,1,0.2 do
  1394. swait()
  1395. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  1396. end
  1397. for i=0,1,0.1 do
  1398. swait()
  1399. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1400. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  1401. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1402. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1403. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1404. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1405. end
  1406. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  1407. else
  1408. for i=0,1,0.1 do
  1409. swait()
  1410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1412. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  1413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1414. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1415. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1416. end
  1417. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  1418. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  1419. for i=0,1,0.015 do
  1420. swait()
  1421. for i=1,3 do
  1422. if math.random(1,5)==1 then
  1423. 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)
  1424. else
  1425. 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)
  1426. end
  1427. end
  1428. end
  1429. model2.Parent=nil
  1430. for i=0,1,0.1 do
  1431. swait()
  1432. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  1434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1435. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1436. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1437. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1438. end
  1439. end
  1440. Torso.Neck.C0=necko
  1441. Torso.Neck.C1=necko2
  1442. RootJoint.C0=RootCF
  1443. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  1444. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1445. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  1446. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1447. RH.C0=RHC0
  1448. RH.C1=RHC1
  1449. LH.C0=LHC0
  1450. LH.C1=LHC1
  1451. Mode="Binary"
  1452. attack=false
  1453. end
  1454.  
  1455. function equipanim()
  1456. equipped=true
  1457. attack=true
  1458. for i=0,1,0.2 do
  1459. swait()
  1460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1461. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  1462. end
  1463. for i=0,1,0.1 do
  1464. swait()
  1465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  1466. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1467. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1468. end
  1469. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  1470. wld1.Part1=RightArm
  1471. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  1472. for i=0,1,0.1 do
  1473. swait()
  1474. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1475. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  1476. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  1477. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1478. end
  1479. for i=0,1,0.1 do
  1480. swait()
  1481. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  1483. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  1484. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  1485. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  1486. end
  1487. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  1488. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  1489. Torso.Neck.C0=necko*euler(0,0,0.5)
  1490. RootJoint.C0=RootCF*euler(0,0,-0.5)
  1491. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  1492. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1493. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  1494. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1495. attack=false
  1496. end
  1497.  
  1498. function Stomp()
  1499. Humanoid.WalkSpeed=0
  1500. Torso.Velocity=RootPart.CFrame.lookVector*0
  1501. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  1502. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  1503. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  1504. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  1505. Dam=math.random(5,10)
  1506. Humanoid.Health=Humanoid.Health-Dam
  1507. MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
  1508. --[[for i=0,1,0.2 do
  1509. swait()
  1510. if Mode=="Binary" then
  1511. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  1512. end
  1513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  1514. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  1515. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  1516. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  1517. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  1518. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  1519. end
  1520. for i=0,1,0.1 do
  1521. swait()
  1522. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  1523. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  1524. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  1525. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  1526. end]]
  1527. swait(10)
  1528. Humanoid.WalkSpeed=16
  1529. end
  1530.  
  1531. function attackone()
  1532. attack=true
  1533. for i=0,1,0.1 do
  1534. swait()
  1535. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  1536. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1537. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1538. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  1539. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  1540. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1541. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1542. end
  1543. hitbox1.Parent=model1
  1544. hitbox1.Size=vt(1,5,1)
  1545. hitbox1.Transparency=1
  1546. hitbox1.CFrame=prt10.CFrame
  1547. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1548. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1549. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  1550. blcf=nil
  1551. scfr=nil
  1552. for i=0,1,0.25 do
  1553. swait()
  1554. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1555. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1556. local h = 5
  1557. 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)
  1558. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1559. 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)
  1560. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1561. scfr = blcf
  1562. elseif not scfr then
  1563. scfr = blcf
  1564. end
  1565. hitbox1.CFrame=prt10.CFrame
  1566. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  1567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  1568. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  1569. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  1570. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  1571. end
  1572. for i=0,1,0.1 do
  1573. swait()
  1574. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1575. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1576. local h = 5
  1577. 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)
  1578. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1579. 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)
  1580. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1581. scfr = blcf
  1582. elseif not scfr then
  1583. scfr = blcf
  1584. end
  1585. hitbox1.CFrame=prt10.CFrame
  1586. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  1587. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  1588. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  1589. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  1590. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  1591. end
  1592. con1:disconnect()
  1593. hitbox1.Parent=nil
  1594. attack=false
  1595. end
  1596.  
  1597. function attacktwo()
  1598. attack=true
  1599. for i=0,1,0.1 do
  1600. swait()
  1601. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1602. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  1603. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  1604. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1605. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  1606. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1607. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1608. end
  1609. hitbox1.Parent=model1
  1610. hitbox1.Size=vt(1,5,1)
  1611. hitbox1.Transparency=1
  1612. hitbox1.CFrame=prt10.CFrame
  1613. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1614. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1615. blcf=nil
  1616. scfr=nil
  1617. for i=0,1,0.1 do
  1618. swait()
  1619. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1620. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1621. local h = 5
  1622. 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)
  1623. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1624. 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)
  1625. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1626. scfr = blcf
  1627. elseif not scfr then
  1628. scfr = blcf
  1629. end
  1630. hitbox1.CFrame=prt10.CFrame
  1631. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  1632. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1633. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1634. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  1635. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  1636. end
  1637. con1:disconnect()
  1638. hitbox1.Parent=nil
  1639. attack=false
  1640. end
  1641.  
  1642. function attackthree()
  1643. attack=true
  1644. for i=0,1,0.1 do
  1645. swait()
  1646. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  1647. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1648. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1649. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  1650. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  1651. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1652. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1653. end
  1654. hitbox1.Parent=model1
  1655. hitbox1.Size=vt(1,5,1)
  1656. hitbox1.Transparency=1
  1657. hitbox1.CFrame=prt10.CFrame
  1658. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1659. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  1660. blcf=nil
  1661. scfr=nil
  1662. for i=0,1,0.25 do
  1663. swait()
  1664. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1665. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1666. local h = 5
  1667. 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)
  1668. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1669. 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)
  1670. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1671. scfr = blcf
  1672. elseif not scfr then
  1673. scfr = blcf
  1674. end
  1675. hitbox1.CFrame=prt10.CFrame
  1676. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  1677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  1678. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  1679. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  1680. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  1681. end
  1682. for i=0,1,0.2 do
  1683. swait()
  1684. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1685. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1686. local h = 5
  1687. 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)
  1688. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1689. 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)
  1690. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1691. scfr = blcf
  1692. elseif not scfr then
  1693. scfr = blcf
  1694. end
  1695. hitbox1.CFrame=prt10.CFrame
  1696. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  1697. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  1698. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  1699. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  1700. end
  1701. con1:disconnect()
  1702. hitbox1.Parent=nil
  1703. attack=false
  1704. end
  1705.  
  1706. function SpinSlash()
  1707. attack=true
  1708. for i=0,1,0.1 do
  1709. swait()
  1710. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  1711. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  1712. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  1713. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  1714. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  1715. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  1716. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  1717. end
  1718. hitbox1.Parent=model1
  1719. hitbox1.Size=vt(1,5,1)
  1720. hitbox1.Transparency=1
  1721. hitbox1.CFrame=prt10.CFrame
  1722. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
  1723. blcf=nil
  1724. scfr=nil
  1725. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  1726. repeat
  1727. hitbox1.Parent=model1
  1728. hitbox1.Size=vt(1,5,1)
  1729. hitbox1.Transparency=1
  1730. hitbox1.CFrame=prt10.CFrame
  1731. for i=0,1,0.15 do
  1732. swait()
  1733. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1734. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1735. local h = 5
  1736. 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)
  1737. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1738. 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)
  1739. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1740. scfr = blcf
  1741. elseif not scfr then
  1742. scfr = blcf
  1743. end
  1744. hitbox1.CFrame=prt10.CFrame
  1745. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  1746. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  1747. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  1748. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  1749. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  1750. RH.C0=clerp(RH.C0,RHC0,.3)
  1751. LH.C0=clerp(LH.C0,LHC0,.3)
  1752. end
  1753. for i=0,1,0.05 do
  1754. swait()
  1755. if i>=0.45 and i<=0.5 then
  1756. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  1757. end
  1758. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1759. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1760. local h = 5
  1761. 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)
  1762. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1763. 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)
  1764. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1765. scfr = blcf
  1766. elseif not scfr then
  1767. scfr = blcf
  1768. end
  1769. hitbox1.CFrame=prt10.CFrame
  1770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  1771. end
  1772. until hold==false
  1773. con1:disconnect()
  1774. hitbox1.Parent=nil
  1775. attack=false
  1776. end
  1777.  
  1778. function BinarySwing()
  1779. attack=true
  1780. for i=0,1,0.1 do
  1781. swait()
  1782. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  1784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  1785. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  1786. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  1787. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  1788. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  1789. end
  1790. Humanoid.Jump=true
  1791. bodvol=Instance.new("BodyVelocity")
  1792. bodvol.Parent=RootPart
  1793. bodvol.velocity=vt(0,1,0)*100
  1794. bodvol.P=5000
  1795. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1796. --Torso.Velocity=vt(0,1,0)*100
  1797. hitbox1.Parent=model1
  1798. hitbox1.Size=vt(1,5,1)
  1799. hitbox1.Transparency=1
  1800. hitbox1.CFrame=prt10.CFrame
  1801. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
  1802. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1803. blcf=nil
  1804. scfr=nil
  1805. for i=0,1,0.1 do
  1806. swait()
  1807. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1808. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1809. local h = 5
  1810. 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)
  1811. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1812. 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)
  1813. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1814. scfr = blcf
  1815. elseif not scfr then
  1816. scfr = blcf
  1817. end
  1818. hitbox1.CFrame=prt10.CFrame
  1819. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  1820. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  1821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1822. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  1823. RH.C0=clerp(RH.C0,RHC0,.3)
  1824. LH.C0=clerp(LH.C0,LHC0,.3)
  1825. end
  1826. con1:disconnect()
  1827. hitbox1.Parent=nil
  1828. bodvol.Parent=nil
  1829. attack=false
  1830. end
  1831.  
  1832. function BinaryImpulse()
  1833. attack=true
  1834. if impulse==1 then
  1835. impulse=2
  1836. Humanoid.Jump=true
  1837. for i=0,1,0.2 do
  1838. swait()
  1839. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1841. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  1842. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1843. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1844. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1845. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1846. end
  1847. blcf=nil
  1848. scfr=nil
  1849. hitbox1.Parent=model1
  1850. hitbox1.Size=vt(1,5,1)
  1851. hitbox1.Transparency=1
  1852. hitbox1.CFrame=prt10.CFrame
  1853. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
  1854. for i=1,3 do
  1855. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  1856. for i=0,1,0.1 do
  1857. swait()
  1858. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1859. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1860. local h = 5
  1861. 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)
  1862. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1863. 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)
  1864. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1865. scfr = blcf
  1866. elseif not scfr then
  1867. scfr = blcf
  1868. end
  1869. hitbox1.CFrame=prt10.CFrame
  1870. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1871. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1872. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  1873. end
  1874. end
  1875. con1:disconnect()
  1876. hitbox1.Parent=nil
  1877. elseif impulse==2 then
  1878. impulse=3
  1879. Humanoid.Jump=true
  1880. for i=0,1,0.2 do
  1881. swait()
  1882. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1883. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1884. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  1885. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1886. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1887. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1888. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1889. end
  1890. blcf=nil
  1891. scfr=nil
  1892. hitbox1.Parent=model1
  1893. hitbox1.Size=vt(1,5,1)
  1894. hitbox1.Transparency=1
  1895. hitbox1.CFrame=prt10.CFrame
  1896. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
  1897. for i=1,3 do
  1898. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  1899. for i=0,1,0.1 do
  1900. swait()
  1901. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1902. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1903. local h = 5
  1904. 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)
  1905. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1906. 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)
  1907. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1908. scfr = blcf
  1909. elseif not scfr then
  1910. scfr = blcf
  1911. end
  1912. hitbox1.CFrame=prt10.CFrame
  1913. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1914. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1915. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  1916. end
  1917. end
  1918. con1:disconnect()
  1919. hitbox1.Parent=nil
  1920. elseif impulse==3 then
  1921. impulse=1
  1922. for i=0,1,0.2 do
  1923. swait()
  1924. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  1925. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  1926. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1927. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  1928. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  1929. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1930. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1931. end
  1932. Humanoid.Jump=true
  1933. blcf=nil
  1934. scfr=nil
  1935. hitbox1.Parent=model1
  1936. hitbox1.Size=vt(1,5,1)
  1937. hitbox1.Transparency=1
  1938. hitbox1.CFrame=prt10.CFrame
  1939. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
  1940. for i=1,3 do
  1941. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  1942. for i=0,1,0.1 do
  1943. swait()
  1944. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1945. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1946. local h = 5
  1947. 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)
  1948. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1949. 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)
  1950. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1951. scfr = blcf
  1952. elseif not scfr then
  1953. scfr = blcf
  1954. end
  1955. hitbox1.CFrame=prt10.CFrame
  1956. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  1957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  1958. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  1959. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  1960. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  1961. end
  1962. end
  1963. con1:disconnect()
  1964. hitbox1.Parent=nil
  1965. end
  1966. attack=false
  1967. end
  1968.  
  1969. function Bash()
  1970. attack=true
  1971. for i=0,1,0.1 do
  1972. swait()
  1973. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1974. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1975. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1976. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1977. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1978. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1980. end
  1981. Torso.Velocity=RootPart.CFrame.lookVector*200
  1982. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1983. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1984. hit=nil
  1985. for i=1,20 do
  1986. if hit==nil then
  1987. swait()
  1988. end
  1989. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1990. end
  1991. Torso.Velocity=RootPart.CFrame.lookVector*0
  1992. Humanoid.WalkSpeed=0
  1993. for i=0,1,0.1 do
  1994. swait()
  1995. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1997. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1998. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1999. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  2000. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  2001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  2002. end
  2003. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  2004. blcf=nil
  2005. scfr=nil
  2006. for i=0,1,0.2 do
  2007. swait()
  2008. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  2009. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  2010. local h = 5
  2011. 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)
  2012. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2013. 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)
  2014. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2015. scfr = blcf
  2016. elseif not scfr then
  2017. scfr = blcf
  2018. end
  2019. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  2020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  2021. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  2022. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  2023. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  2024. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  2025. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  2026. end
  2027. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2028. if hit~=nil then
  2029. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  2030. ref.Anchored=true
  2031. ref.CFrame=cf(pos)
  2032. game:GetService("Debris"):AddItem(ref,3)
  2033. for i=1,10 do
  2034. Col=hit.BrickColor
  2035. 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))
  2036. groundpart.Anchored=true
  2037. groundpart.Material=hit.Material
  2038. groundpart.CanCollide=true
  2039. 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))
  2040. game:GetService("Debris"):AddItem(groundpart,5)
  2041. end
  2042. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  2043. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  2044. MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
  2045. end
  2046. swait(50)
  2047. Humanoid.WalkSpeed=16
  2048. attack=false
  2049. end
  2050.  
  2051. function UnleashTheDemon()
  2052. 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")
  2053. wait(2.6)
  2054. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
  2055. attack=true
  2056. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  2057. for i=0,1,0.1 do
  2058. swait()
  2059. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  2060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  2061. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  2062. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  2063. RH.C0=clerp(RH.C0,RHC0,.4)
  2064. LH.C0=clerp(LH.C0,LHC0,.4)
  2065. end
  2066. wld1.Part1=Torso
  2067. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  2068. for i=0,1,0.1 do
  2069. swait()
  2070. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  2072. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  2073. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  2074. end
  2075. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  2076. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  2077. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  2078. num=0
  2079. for i=0,1,0.01 do
  2080. swait()
  2081. if num>=10 then
  2082. num=0
  2083. 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)
  2084. end
  2085. for i=1,2 do
  2086. if math.random(1,5)==1 then
  2087. 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)
  2088. else
  2089. 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)
  2090. end
  2091. end
  2092. num=num+1
  2093. end
  2094. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  2095. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  2096. for i=1,4 do
  2097. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  2098. end
  2099. 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)
  2100. Mode="Demon"
  2101. model2.Parent=Character
  2102. for i=1,#DBlade do
  2103. DBlade[i].Parent=model2
  2104. DBladeWelds[i].Parent=DBlade[1]
  2105. end
  2106. for i=0,1,0.1 do
  2107. swait()
  2108. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  2109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  2111. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  2112. end
  2113. swait(50)
  2114. attack=false
  2115. end
  2116.  
  2117. function Demonattackone()
  2118. attack=true
  2119. --[[
  2120. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  2121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2122. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  2123. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  2124. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  2125. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  2126. ]]
  2127. for i=0,1,0.1 do
  2128. swait()
  2129. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  2130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  2131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  2132. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  2133. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  2134. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  2135. end
  2136. hitbox2.Parent=model2
  2137. hitbox2.Size=vt(1,6,1)
  2138. hitbox2.Transparency=1
  2139. hitbox2.CFrame=prtd7.CFrame
  2140. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2141. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  2142. blcf=nil
  2143. scfr=nil
  2144. for i=0,1,0.08 do
  2145. swait()
  2146. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2147. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2148. local h = 5
  2149. 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)
  2150. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2151. 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)
  2152. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2153. scfr = blcf
  2154. elseif not scfr then
  2155. scfr = blcf
  2156. end
  2157. hitbox2.CFrame=prtd7.CFrame
  2158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  2159. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  2160. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  2161. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2162. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  2163. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  2164. end
  2165. con1:disconnect()
  2166. hitbox2.Parent=nil
  2167. attack=false
  2168. end
  2169.  
  2170. function Demonattacktwo()
  2171. attack=true
  2172. for i=0,1,0.1 do
  2173. swait()
  2174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  2175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  2176. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  2177. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2178. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  2179. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  2180. end
  2181. hitbox2.Parent=model2
  2182. hitbox2.Size=vt(1,6,1)
  2183. hitbox2.Transparency=1
  2184. hitbox2.CFrame=prtd7.CFrame
  2185. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2186. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  2187. blcf=nil
  2188. scfr=nil
  2189. for i=0,1,0.1 do
  2190. swait()
  2191. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2192. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2193. local h = 5
  2194. 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)
  2195. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2196. 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)
  2197. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2198. scfr = blcf
  2199. elseif not scfr then
  2200. scfr = blcf
  2201. end
  2202. hitbox2.CFrame=prtd7.CFrame
  2203. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  2204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  2205. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  2206. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2207. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  2208. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  2209. end
  2210. con1:disconnect()
  2211. hitbox2.Parent=nil
  2212. attack=false
  2213. end
  2214.  
  2215. function Demonattackthree()
  2216. attack=true
  2217. for i=0,1,0.1 do
  2218. swait()
  2219. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  2220. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2221. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  2222. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  2223. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  2224. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  2225. end
  2226. Humanoid.WalkSpeed=0
  2227. hitbox2.Parent=model2
  2228. hitbox2.Size=vt(1,6,1)
  2229. hitbox2.Transparency=1
  2230. hitbox2.CFrame=prtd7.CFrame
  2231. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2232. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  2233. blcf=nil
  2234. scfr=nil
  2235. for i=0,1,0.15 do
  2236. swait()
  2237. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2238. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2239. local h = 5
  2240. 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)
  2241. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2242. 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)
  2243. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2244. scfr = blcf
  2245. elseif not scfr then
  2246. scfr = blcf
  2247. end
  2248. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  2249. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  2250. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  2251. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  2252. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  2253. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  2254. if i==0.6 then
  2255. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2256. if hit~=nil then
  2257. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  2258. ref.Anchored=true
  2259. ref.CFrame=cf(pos)
  2260. game:GetService("Debris"):AddItem(ref,3)
  2261. for i=1,5 do
  2262. Col=hit.BrickColor
  2263. 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))
  2264. groundpart.Anchored=true
  2265. groundpart.Material=hit.Material
  2266. groundpart.CanCollide=true
  2267. 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))
  2268. game:GetService("Debris"):AddItem(groundpart,3)
  2269. end
  2270. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  2271. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  2272. MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
  2273. end
  2274. end
  2275. end
  2276. con1:disconnect()
  2277. hitbox2.Parent=nil
  2278. swait(10)
  2279. Humanoid.WalkSpeed=16
  2280. attack=false
  2281. end
  2282.  
  2283. function LetItBuild()
  2284. attack=true
  2285. for i=0,1,0.1 do
  2286. swait()
  2287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  2288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  2289. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  2290. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2291. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2292. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  2293. end
  2294. local num=0
  2295. local magik=0
  2296. local num2=0
  2297. while holdx==true do
  2298. swait()
  2299. if magik<25 then
  2300. if num>=10 then
  2301. Humanoid:TakeDamage(0)
  2302. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  2303. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  2304. Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
  2305. MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
  2306. 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)
  2307. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  2308. magik=magik+1
  2309. num=0
  2310. end
  2311. end
  2312. num=num+1
  2313. num2=num2+magik
  2314. if num2>=50 then
  2315. 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)
  2316. num2=0
  2317. end
  2318. --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)
  2319. end
  2320. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  2321. blcf=nil
  2322. scfr=nil
  2323. hitbox2.Parent=model2
  2324. hitbox2.Size=vt(1,6,1)
  2325. hitbox2.Transparency=1
  2326. hitbox2.CFrame=prtd7.CFrame
  2327. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
  2328. for i=1,3 do
  2329. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  2330. for i=0,1,0.1 do
  2331. swait()
  2332. hitbox2.CFrame=prtd7.CFrame
  2333. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2334. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2335. local h = 5
  2336. 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)
  2337. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2338. 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)
  2339. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2340. scfr = blcf
  2341. elseif not scfr then
  2342. scfr = blcf
  2343. end
  2344. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  2345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  2346. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2347. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2348. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  2349. end
  2350. end
  2351. con1:disconnect()
  2352. hitbox2.Parent=nil
  2353. attack=false
  2354. end
  2355.  
  2356. function YourMoveCreep()
  2357. attack=true
  2358. local pers=nil
  2359. for i=0,1,0.1 do
  2360. swait()
  2361. cost=Humanoid.Health-0
  2362. Humanoid:TakeDamage(0)
  2363. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  2364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  2365. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  2366. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  2367. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  2368. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  2369. end
  2370. local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
  2371. blockprt.Anchored=true
  2372. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2373. conbl=blockprt.Touched:connect(function(hit)
  2374. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  2375. hit=hit.Parent.Parent.Torso
  2376. end
  2377. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  2378. pers=hit
  2379. print("HIT")
  2380. guard=false
  2381. end
  2382. end)
  2383. num=0
  2384. while guard==true do
  2385. swait()
  2386. if num>10 then
  2387. num=0
  2388. MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  2389. MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  2390. end
  2391. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2392. num=num+1
  2393. end
  2394. conbl:disconnect()
  2395. blockprt.Parent=nil
  2396. print(pers)
  2397. if pers~=nil then
  2398. for i=0,1,0.1 do
  2399. swait()
  2400. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  2401. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  2402. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  2403. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2404. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  2405. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  2406. end
  2407. swait(200)
  2408. end
  2409. attack=false
  2410. end
  2411.  
  2412. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  2413. for _,c in pairs(workspace:children()) do
  2414. local hum=c:findFirstChild("Humanoid")
  2415. if hum~=nil then
  2416. local head=c:findFirstChild("Torso")
  2417. if head~=nil then
  2418. local targ=head.Position-Part.Position
  2419. local mag=targ.magnitude
  2420. if mag<=magni and c.Name~=Player.Name then
  2421. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  2422. end
  2423. end
  2424. end
  2425. end
  2426. end
  2427.  
  2428. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2429. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2430. end
  2431.  
  2432. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2433. LastPoint=Point
  2434. function effect(Color,Ref,LP,P1,returnn)
  2435. local effectsmsh=Instance.new("CylinderMesh")
  2436. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2437. effectsmsh.Name="Mesh"
  2438. local effectsg=Instance.new("Part")
  2439. effectsg.formFactor=3
  2440. effectsg.CanCollide=false
  2441. effectsg.Name="Eff"
  2442. effectsg.Locked=true
  2443. effectsg.Anchored=true
  2444. effectsg.Size=Vector3.new(0.5,1,0.5)
  2445. effectsg.Parent=workspace
  2446. effectsmsh.Parent=effectsg
  2447. effectsg.BrickColor=BrickColor.new(Color)
  2448. effectsg.Reflectance=Ref
  2449. local point1=P1
  2450. local mg=(LP.p - point1.p).magnitude
  2451. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2452. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2453. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2454. game:GetService("Debris"):AddItem(effectsg,2)
  2455. if returnn then return effectsg end
  2456. coroutine.resume(coroutine.create(function(Part,Mesh)
  2457. if not returnn then
  2458. for i=0,1,0.05 do
  2459. wait()
  2460. Part.Transparency=1*i
  2461. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  2462. end
  2463. Part.Parent=nil
  2464. end
  2465. end),effectsg,effectsmsh)
  2466. end
  2467.  
  2468. local function CFrameFromTopBack(at, top, back)
  2469. local right = top:Cross(back)
  2470. return CFrame.new(at.x, at.y, at.z,
  2471. right.x, top.x, back.x,
  2472. right.y, top.y, back.y,
  2473. right.z, top.z, back.z)
  2474. end
  2475.  
  2476. function Triangle(a, b, c)
  2477. local edg1 = (c-a):Dot((b-a).unit)
  2478. local edg2 = (a-b):Dot((c-b).unit)
  2479. local edg3 = (b-c):Dot((a-c).unit)
  2480. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2481. a, b, c = a, b, c
  2482. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2483. a, b, c = b, c, a
  2484. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2485. a, b, c = c, a, b
  2486. else
  2487. assert(false, "unreachable")
  2488. end
  2489.  
  2490. local len1 = (c-a):Dot((b-a).unit)
  2491. local len2 = (b-a).magnitude - len1
  2492. local width = (a + (b-a).unit*len1 - c).magnitude
  2493.  
  2494. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2495.  
  2496. local list = {}
  2497.  
  2498. if len2 > 0.01 then
  2499. end
  2500. return unpack(list)
  2501. end
  2502. --[[
  2503. Things for effects
  2504. put the variables in one table
  2505. like effect={brick,interval,i}
  2506. ]]
  2507. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2508. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2509. prt.Anchored=true
  2510. prt.CFrame=cframe
  2511. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2512. game:GetService("Debris"):AddItem(prt,5)
  2513. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  2514. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  2515. for i=0,1,delay do
  2516. wait()
  2517. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2518. Part.Transparency=i
  2519. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2520. end
  2521. Part.Parent=nil
  2522. end),prt,msh)]]
  2523. end
  2524.  
  2525. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2526. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2527. prt.Anchored=true
  2528. prt.CFrame=cframe
  2529. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2530. game:GetService("Debris"):AddItem(prt,5)
  2531. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2532. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2533. local wld=nil
  2534. for i=0,1,delay do
  2535. wait()
  2536. Part.CFrame=Part.CFrame
  2537. Part.Transparency=i
  2538. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2539. end
  2540. Part.Parent=nil
  2541. end),prt,msh)]]
  2542. end
  2543.  
  2544. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2545. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2546. prt.Anchored=true
  2547. prt.CFrame=cframe
  2548. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2549. game:GetService("Debris"):AddItem(prt,5)
  2550. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2551. end
  2552.  
  2553. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2554. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2555. prt.Anchored=true
  2556. prt.CFrame=cframe
  2557. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  2558. game:GetService("Debris"):AddItem(prt,5)
  2559. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2560. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2561. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2562. for i=0,1,delay do
  2563. wait()
  2564. Part.CFrame=Part.CFrame
  2565. Part.Transparency=i
  2566. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2567. end
  2568. Part.Parent=nil
  2569. end),prt,msh)]]
  2570. end
  2571.  
  2572. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2573. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2574. prt.Anchored=true
  2575. prt.CFrame=cframe
  2576. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2577. game:GetService("Debris"):AddItem(prt,5)
  2578. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2579. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2580. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2581. for i=0,1,delay do
  2582. wait()
  2583. Part.CFrame=Part.CFrame
  2584. Part.Transparency=i
  2585. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2586. end
  2587. Part.Parent=nil
  2588. end),prt,msh)]]
  2589. end
  2590.  
  2591. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2592. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2593. prt.Anchored=true
  2594. prt.CFrame=cframe
  2595. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2596. game:GetService("Debris"):AddItem(prt,5)
  2597. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  2598. end
  2599.  
  2600. function ElecEffect(cff,x,y,z)
  2601. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  2602. prt.Anchored=true
  2603. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2604. prt.CFrame=cf(prt.Position)
  2605. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2606. game:GetService("Debris"):AddItem(prt,2)
  2607. xval=math.random()/2
  2608. yval=math.random()/2
  2609. zval=math.random()/2
  2610. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2611. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  2612. end
  2613.  
  2614. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2615. --[[p0=pos1
  2616. p1=pos2
  2617. tym=times
  2618. ofs=offset
  2619. col=color
  2620. th=size
  2621. tra=transparency
  2622. last=lastingtime]]
  2623. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2624. for i=1,tym do
  2625. 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)
  2626. 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)])
  2627. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2628. if tym == i then
  2629. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2630. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2631. else
  2632. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2633. end
  2634. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  2635. end
  2636. end
  2637.  
  2638. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2639. if hit.Parent==nil then
  2640. return
  2641. end
  2642. h=hit.Parent:FindFirstChild("Humanoid")
  2643. for _,v in pairs(hit.Parent:children()) do
  2644. if v:IsA("Humanoid") then
  2645. h=v
  2646. end
  2647. end
  2648. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2649. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2650. end
  2651. if hit.Parent.className=="Hat" then
  2652. hit=hit.Parent.Parent:findFirstChild("Head")
  2653. end
  2654. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  2655. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2656. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2657. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2658. return
  2659. end]]
  2660. -- hs(hit,1.2)
  2661. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  2662. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  2663. c=Instance.new("ObjectValue")
  2664. c.Name="creator"
  2665. c.Value=game:service("Players").LocalPlayer
  2666. c.Parent=h
  2667. game:GetService("Debris"):AddItem(c,.5)
  2668. Damage=math.random(minim,maxim)
  2669. if Mode=="Demon" then
  2670. Damage=Damage+damcount
  2671. end
  2672. -- h:TakeDamage()
  2673. blocked=false
  2674. block=hit.Parent:findFirstChild("Block")
  2675. if block~=nil then
  2676. print(block.className)
  2677. if block.className=="NumberValue" then
  2678. if block.Value>0 then
  2679. blocked=true
  2680. if decreaseblock==nil then
  2681. block.Value=block.Value-1
  2682. end
  2683. end
  2684. end
  2685. if block.className=="IntValue" then
  2686. if block.Value>0 then
  2687. blocked=true
  2688. if decreaseblock~=nil then
  2689. block.Value=block.Value-1
  2690. end
  2691. end
  2692. end
  2693. end
  2694. if blocked==false then
  2695. -- h:TakeDamage(Damage)
  2696. h.Health=h.Health-Damage
  2697. else
  2698. h.Health=h.Health-(Damage/0)
  2699. end
  2700. if Type=="Knockdown" then
  2701. hum=hit.Parent.Humanoid
  2702. hum.PlatformStand=true
  2703. coroutine.resume(coroutine.create(function(HHumanoid)
  2704. swait(1)
  2705. HHumanoid.PlatformStand=false
  2706. end),hum)
  2707. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2708. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2709. local bodvol=Instance.new("BodyVelocity")
  2710. bodvol.velocity=angle*knockback
  2711. bodvol.P=5000
  2712. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2713. bodvol.Parent=hit
  2714. rl=Instance.new("BodyAngularVelocity")
  2715. rl.P=3000
  2716. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2717. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2718. rl.Parent=hit
  2719. game:GetService("Debris"):AddItem(bodvol,.5)
  2720. game:GetService("Debris"):AddItem(rl,.5)
  2721. elseif Type=="Normal" then
  2722. vp=Instance.new("BodyVelocity")
  2723. vp.P=500
  2724. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2725. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2726. if KnockbackType==1 then
  2727. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  2728. elseif KnockbackType==2 then
  2729. vp.velocity=Property.CFrame.lookVector*knockback
  2730. end
  2731. if knockback>-100 then
  2732. vp.Parent=hit.Parent.Torso
  2733. end
  2734. game:GetService("Debris"):AddItem(vp,.5)
  2735. elseif Type=="Lifesteal" then
  2736. for i=1,5 do
  2737. 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)
  2738. end
  2739. vp=Instance.new("BodyVelocity")
  2740. vp.P=500
  2741. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2742. if KnockbackType==1 then
  2743. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  2744. elseif KnockbackType==2 then
  2745. vp.velocity=Property.CFrame.lookVector*knockback
  2746. end
  2747. if knockback>-250 then
  2748. vp.Parent=hit.Parent.Torso
  2749. end
  2750. game:GetService("Debris"):AddItem(vp,.5)
  2751. Heal=math.ceil(Damage/25100)
  2752. Humanoid.Health=Humanoid.Health+Heal
  2753. elseif Type=="Up" then
  2754. local bodyVelocity=Instance.new("BodyVelocity")
  2755. bodyVelocity.velocity=vt(0,30,0)
  2756. bodyVelocity.P=5000
  2757. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2758. bodyVelocity.Parent=hit
  2759. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2760. rl=Instance.new("BodyAngularVelocity")
  2761. rl.P=3000
  2762. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2763. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2764. rl.Parent=hit
  2765. game:GetService("Debris"):AddItem(rl,.5)
  2766. elseif Type=="Snare" then
  2767. bp=Instance.new("BodyPosition")
  2768. bp.P=2000
  2769. bp.D=100
  2770. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2771. bp.position=hit.Parent.Torso.Position
  2772. bp.Parent=hit.Parent.Torso
  2773. game:GetService("Debris"):AddItem(bp,1)
  2774. elseif Type=="Charge" then
  2775. Charge=Charge+1
  2776. coroutine.resume(coroutine.create(function(Part)
  2777. swait(30)
  2778. for i=1,5 do
  2779. swait(5)
  2780. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  2781. 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)
  2782. newdam=math.random(1,5)
  2783. if blocked==false then
  2784. h:TakeDamage()
  2785. else
  2786. h:TakeDamage(newdam/0)
  2787. end
  2788. end
  2789. end),hit)
  2790. end
  2791. debounce=Instance.new("BoolValue")
  2792. debounce.Name="DebounceHit"
  2793. debounce.Parent=hit.Parent
  2794. debounce.Value=true
  2795. game:GetService("Debris"):AddItem(debounce,Delay)
  2796. c=Instance.new("ObjectValue")
  2797. c.Name="creator"
  2798. c.Value=Player
  2799. c.Parent=h
  2800. game:GetService("Debris"):AddItem(c,.5)
  2801. CRIT=false
  2802. hitDeb=true
  2803. AttackPos=6
  2804. end
  2805. end
  2806.  
  2807. showDamage=function(Char,Dealt,du,Color)
  2808. m=Instance.new("Model")
  2809. m.Name=tostring(Dealt)
  2810. h=Instance.new("Humanoid")
  2811. h.Health=0
  2812. h.MaxHealth=0
  2813. h.Parent=m
  2814. c=Instance.new("Part")
  2815. c.Transparency=1
  2816. c.BrickColor=Color
  2817. c.Name="Head"
  2818. c.TopSurface=0
  2819. c.BottomSurface=0
  2820. c.formFactor="Plate"
  2821. c.Size=Vector3.new(1,.4,1)
  2822. ms=Instance.new("CylinderMesh")
  2823. ms.Scale=Vector3.new(.8,.8,.8)
  2824. if CRIT==true then
  2825. ms.Scale=Vector3.new(1,1.25,1)
  2826. end
  2827. ms.Parent=c
  2828. c.Reflectance=0
  2829. Instance.new("BodyGyro").Parent=c
  2830. c.Parent=m
  2831. if Char:findFirstChild("Head")~=nil then
  2832. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2833. elseif Char.Parent:findFirstChild("Head")~=nil then
  2834. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2835. end
  2836. f=Instance.new("BodyPosition")
  2837. f.P=2000
  2838. f.D=100
  2839. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2840. f.position=c.Position+Vector3.new(0,3,0)
  2841. f.Parent=c
  2842. game:GetService("Debris"):AddItem(m,.5+du)
  2843. c.CanCollide=false
  2844. m.Parent=workspace
  2845. c.CanCollide=false
  2846. end
  2847.  
  2848. combo=0
  2849. function ob1d(mouse)
  2850. hold=true
  2851. if attack==true or equipped==false then return end
  2852. if Mode=="Binary" then
  2853. idle=0
  2854. if Anim=="Run" then
  2855. SpinSlash()
  2856. else
  2857. if combo==0 then
  2858. combo=1
  2859. attackone()
  2860. elseif combo==1 then
  2861. combo=2
  2862. attacktwo()
  2863. elseif combo==2 then
  2864. combo=0
  2865. attackthree()
  2866. end
  2867. end
  2868. else
  2869. if combo==0 then
  2870. combo=1
  2871. Demonattackone()
  2872. elseif combo==1 then
  2873. combo=2
  2874. Demonattacktwo()
  2875. elseif combo==2 then
  2876. combo=0
  2877. Demonattackthree()
  2878. end
  2879. end
  2880. coroutine.resume(coroutine.create(function()
  2881. for i=1,20 do
  2882. if attack==false then
  2883. swait()
  2884. end
  2885. end
  2886. if attack==false then
  2887. combo=0
  2888. --equipanim()
  2889. end
  2890. end))
  2891. end
  2892.  
  2893. function ob1u(mouse)
  2894. hold = false
  2895. end
  2896.  
  2897. buttonhold = false
  2898.  
  2899. eul=0
  2900. holdx=false
  2901. equipped=false
  2902. function key(key)
  2903. if key=="c" then
  2904. if guard==true then
  2905. guard=false
  2906. else
  2907. guard=true
  2908. end
  2909. end
  2910. if key=="x" then
  2911. holdx=true
  2912. end
  2913. if attack==true then return end
  2914. if key=="f" then
  2915. if equipped==false then
  2916. equipped=true
  2917. RSH=ch.Torso["Right Shoulder"]
  2918. LSH=ch.Torso["Left Shoulder"]
  2919. --
  2920. RSH.Parent=nil
  2921. LSH.Parent=nil
  2922. --
  2923. RW.Name="Right Shoulder"
  2924. RW.Part0=ch.Torso
  2925. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2926. RW.C1=cf(0, 0.5, 0)
  2927. RW.Part1=ch["Right Arm"]
  2928. RW.Parent=ch.Torso
  2929. --
  2930. LW.Name="Left Shoulder"
  2931. LW.Part0=ch.Torso
  2932. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2933. LW.C1=cf(0, 0.5, 0)
  2934. LW.Part1=ch["Left Arm"]
  2935. LW.Parent=ch.Torso
  2936. --
  2937. equipanim()
  2938. else
  2939. equipped=false
  2940. hideanim()
  2941. swait(0)
  2942. RW.Parent=nil
  2943. LW.Parent=nil
  2944. RSH.Parent=player.Character.Torso
  2945. LSH.Parent=player.Character.Torso
  2946. end
  2947. end
  2948. if equipped==false then return end
  2949. if Mode=="Binary" then
  2950. if key=="q" then
  2951. idle=500
  2952. end
  2953. if key=="z" and hitfloor~=nil then
  2954. BinarySwing()
  2955. end
  2956. if key=="x" then
  2957. BinaryImpulse()
  2958. end
  2959. if key=="c" then
  2960. Bash()
  2961. end
  2962. if key=="v" then
  2963. UnleashTheDemon()
  2964. end
  2965. end
  2966. if Mode=="Demon" then
  2967. if key=="x" then
  2968. LetItBuild()
  2969. end
  2970. if key=="c" then
  2971. YourMoveCreep()
  2972. end
  2973. end
  2974. if key=="0" then
  2975. Humanoid.WalkSpeed=(180)
  2976. end
  2977. end
  2978.  
  2979. function key2(key)
  2980. if key=="0" then
  2981. Humanoid.WalkSpeed=16
  2982. end
  2983. if key=="x" then
  2984. holdx=false
  2985. end
  2986. end
  2987.  
  2988. function s(mouse)
  2989. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2990. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2991. mouse.KeyDown:connect(key)
  2992. mouse.KeyUp:connect(key2)
  2993.  
  2994. player=Player
  2995. ch=Character
  2996. MMouse=mouse
  2997. end
  2998.  
  2999. function ds(mouse)
  3000. end
  3001.  
  3002. Bin.Selected:connect(s)
  3003. Bin.Deselected:connect(ds)
  3004. print("Fixer the Demon Mercenary loaded.")
  3005.  
  3006. local thenum=0
  3007. while true do
  3008. swait()
  3009. if Mode=="Demon" then
  3010. if thenum>=5 then
  3011. ElecEffect(prtd7.CFrame,2,4,2)
  3012. thenum=0
  3013. end
  3014. thenum=thenum+1
  3015. for _,c in pairs(Character:children()) do
  3016. for _,v in pairs(c:children()) do
  3017. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  3018. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  3019. v.Parent=nil
  3020. end
  3021. end
  3022. end
  3023. end
  3024. end
  3025. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3026. local velderp=RootPart.Velocity.y
  3027. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3028. if equipped==true then
  3029. if Anim=="Idle" and attack==false and Mode=="Binary" then
  3030. idle=idle+1
  3031. else
  3032. idle=0
  3033. end
  3034. if idleanim>=0.3 then
  3035. idleanim2=true
  3036. elseif idleanim<=0 then
  3037. idleanim2=false
  3038. end
  3039. if idleanim2==false then
  3040. if Anim=="Walk" then
  3041. idleanim=idleanim+0.005
  3042. elseif Anim=="Idle" then
  3043. idleanim=idleanim+0.003
  3044. end
  3045. else
  3046. if Anim=="Walk" then
  3047. idleanim=idleanim-0.005
  3048. elseif Anim=="Idle" then
  3049. idleanim=idleanim-0.003
  3050. end
  3051. end
  3052. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3053. Anim="Jump"
  3054. if attack==false and Mode=="Binary" then
  3055. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3056. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  3057. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3059. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3060. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  3061. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  3062. end
  3063. if attack==false and Mode=="Demon" then
  3064. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  3067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  3068. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  3069. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  3070. end
  3071. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3072. Anim="Fall"
  3073. if attack==false and Mode=="Binary" then
  3074. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3075. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  3076. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  3078. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3079. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3080. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3081. end
  3082. if attack==false and Mode=="Demon" then
  3083. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  3084. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  3085. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  3086. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  3087. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  3088. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  3089. end
  3090. elseif torvel<1 and hitfloor~=nil then
  3091. if Anim=="Fall" then
  3092. if velderp<=-70 then
  3093. coroutine.resume(coroutine.create(function()
  3094. Stomp()
  3095. end))
  3096. end
  3097. end
  3098. Anim="Idle"
  3099. if idle<=500 then
  3100. if attack==false and Mode=="Binary" then
  3101. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  3102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  3103. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  3104. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  3105. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  3106. RH.C0=clerp(RH.C0,RHC0,.2)
  3107. LH.C0=clerp(LH.C0,LHC0,.2)
  3108. end
  3109. if attack==false and Mode=="Demon" then
  3110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  3111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  3112. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  3113. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  3114. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  3115. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  3116. end
  3117. else
  3118. if attack==false and Mode=="Binary" then
  3119. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  3120. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  3121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  3122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  3123. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  3124. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  3125. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  3126. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  3127. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  3128. end
  3129. end
  3130. elseif torvel>2 and torvel<22 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="Walk"
  3139. if attack==false and Mode=="Binary" then
  3140. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  3141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3142. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3143. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3144. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  3145. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  3146. RH.C0=clerp(RH.C0,RHC0,.3)
  3147. LH.C0=clerp(LH.C0,LHC0,.3)
  3148. end
  3149. if attack==false and Mode=="Demon" then
  3150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3152. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  3153. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  3154. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  3155. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  3156. end
  3157. elseif torvel>=22 and hitfloor~=nil then
  3158. if Anim=="Fall" then
  3159. if velderp<=-70 then
  3160. coroutine.resume(coroutine.create(function()
  3161. Stomp()
  3162. end))
  3163. end
  3164. end
  3165. Anim="Run"
  3166. if attack==false and Mode=="Binary" then
  3167. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  3168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  3169. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  3170. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  3171. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  3172. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  3173. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  3174. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  3175. end
  3176. if attack==false and Mode=="Demon" then
  3177. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  3178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  3179. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  3180. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  3181. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  3182. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  3183. end
  3184. end
  3185. end
  3186. if #Effects>0 then
  3187. --table.insert(Effects,{prt,"Block1",delay})
  3188. for e=1,#Effects do
  3189. if Effects[e]~=nil then
  3190. --for j=1,#Effects[e] do
  3191. local Thing=Effects[e]
  3192. if Thing~=nil then
  3193. local Part=Thing[1]
  3194. local Mode=Thing[2]
  3195. local Delay=Thing[3]
  3196. local IncX=Thing[4]
  3197. local IncY=Thing[5]
  3198. local IncZ=Thing[6]
  3199. if Thing[1].Transparency<=1 then
  3200. if Thing[2]=="Block1" then
  3201. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3202. Mesh=Thing[1].Mesh
  3203. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3204. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3205. elseif Thing[2]=="Cylinder" then
  3206. Mesh=Thing[1].Mesh
  3207. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3208. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3209. elseif Thing[2]=="Blood" then
  3210. Mesh=Thing[1].Mesh
  3211. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3212. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3213. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3214. elseif Thing[2]=="Elec" then
  3215. Mesh=Thing[1].Mesh
  3216. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3217. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3218. elseif Thing[2]=="Disappear" then
  3219. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3220. end
  3221. else
  3222. Part.Parent=nil
  3223. table.remove(Effects,e)
  3224. end
  3225. end
  3226. --end
  3227. end
  3228. end
  3229. end
  3230. end
  3231.  
  3232.  
  3233. plr.Chatted:connect(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement