Advertisement
deadropz

Untitled

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