Advertisement
deadropz

Untitled

Jan 20th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 306.77 KB | None | 0 0
  1. --[pastebin url: http://pastebin.com/raw/vJmtAYPe]]--
  2.  
  3. function clerp(c1,c2,al)
  4. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  5. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  6. for i,v in pairs(com1) do
  7. com1[i] = v+(com2[i]-v)*al
  8. end
  9. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  10. end
  11.  
  12. ff = Instance.new("ForceField")
  13. Value = Instance.new("BoolValue", char)
  14. gui = Instance.new("BillboardGui", head)
  15. fra = Instance.new("TextLabel", gui)
  16. plr = game:service'Players'.LocalPlayer
  17. plrgui = plr:findFirstChild'PlayerGui'
  18. plrmouse = plr:GetMouse()
  19. char = plr.Character
  20. humanoid = char:findFirstChild("Humanoid")
  21. torso = char:findFirstChild("Torso")
  22. head = char.Head
  23. humanoid.Health = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  24. humanoid.WalkSpeed = 25
  25. ra = char:findFirstChild("Right Arm")
  26. la = char:findFirstChild("Left Arm")
  27. rl = char:findFirstChild("Right Leg")
  28. ll = char:findFirstChild("Left Leg")
  29. rs = torso:findFirstChild("Right Shoulder")
  30. ls = torso:findFirstChild("Left Shoulder")
  31. rh = torso:findFirstChild("Right Hip")
  32. lh = torso:findFirstChild("Left Hip")
  33. neck = torso:findFirstChild("Neck")
  34. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  35. rootpart = char:findFirstChild("HumanoidRootPart")
  36. camera = workspace.CurrentCamera
  37. anim = char:findFirstChild("Animate")
  38.  
  39.  
  40. local rm = Instance.new("Weld")
  41. rm.C0 = CFrame.new(1.5, 0.5, 0)
  42. rm.C1 = CFrame.new(0, 0.5, 0)
  43. rm.Part0 = torso
  44. rm.Part1 = ra
  45. rm.Name = 'Right Shoulder'
  46.  
  47. local lm = Instance.new("Weld")
  48. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  49. lm.C1 = CFrame.new(0, 0.5, 0)
  50. lm.Part0 = torso
  51. lm.Part1 = la
  52. lm.Name = 'Left Shoulder'
  53.  
  54. local tool = Instance.new('HopperBin', plr.Backpack)
  55. tool.Name = 'Dual Blue Gusters'
  56.  
  57. function scan(parent)
  58. local parts,last = {}
  59. for _,v in pairs(parent:GetChildren()) do
  60. if (v:IsA("BasePart")) then
  61. v.Anchored = true
  62. if (last) then
  63. local w = Instance.new("Weld")
  64. w.Name = ("%s_Weld"):format(v.Name)
  65. w.Part0,w.Part1 = last,v
  66. w.C0 = last.CFrame:inverse()
  67. w.C1 = v.CFrame:inverse()
  68. w.Parent = last
  69. end
  70. last = v
  71. table.insert(parts,v)
  72. end
  73. scan(v)
  74. end
  75. for _,v in pairs(parts) do
  76. v.Anchored = false
  77. v.Locked = true
  78. v.CanCollide = false
  79. end
  80. end
  81.  
  82. --1-Torso
  83. holsters=Instance.new("Model")
  84. holsters.Name="Torso"
  85. holsters.Parent=char
  86. --2-HolsterWeldTo2
  87. obj2=Instance.new("Part")
  88. obj2.CFrame=CFrame.new(Vector3.new(14.8519955,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  89. obj2.FormFactor=Enum.FormFactor.Custom
  90. obj2.LeftSurface=10
  91. obj2.Transparency=1
  92. obj2.TopSurface=10
  93. obj2.RightSurface=10
  94. obj2.Material="SmoothPlastic"
  95. obj2.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  96. obj2.FrontSurface=10
  97. obj2.BottomSurface=10
  98. obj2.BackSurface=10
  99. obj2.BrickColor=BrickColor.new("Really blue")
  100. obj2.Name="HolsterWeldTo2"
  101. obj2.Parent=holsters
  102. --3-Mesh
  103. obj3=Instance.new("BlockMesh")
  104. obj3.Scale=Vector3.new(0.999499977,1,1)
  105. obj3.Parent=obj2
  106. --4-Belt
  107. obj4=Instance.new("Part")
  108. obj4.CFrame=CFrame.new(Vector3.new(13.6000061,1.49000156,35.8999977)) * CFrame.Angles(-1.4901162970204e-008,0,-0)
  109. obj4.FormFactor=Enum.FormFactor.Custom
  110. obj4.LeftSurface=10
  111. obj4.TopSurface=10
  112. obj4.RightSurface=10
  113. obj4.Material="SmoothPlastic"
  114. obj4.Size=Vector3.new(2,0.200000003,1)
  115. obj4.FrontSurface=10
  116. obj4.BottomSurface=10
  117. obj4.BackSurface=10
  118. obj4.BrickColor=BrickColor.new("Really blue")
  119. obj4.Name="Belt"
  120. obj4.Parent=holsters
  121. --5-Mesh
  122. obj5=Instance.new("BlockMesh")
  123. obj5.Scale=Vector3.new(1.10000002,1,1.10000002)
  124. obj5.Parent=obj4
  125. --6-Hold2
  126. obj6=Instance.new("Part")
  127. obj6.CFrame=CFrame.new(Vector3.new(14.8000011,1.0950017,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  128. obj6.FormFactor=Enum.FormFactor.Custom
  129. obj6.LeftSurface=10
  130. obj6.TopSurface=10
  131. obj6.RightSurface=10
  132. obj6.Material="SmoothPlastic"
  133. obj6.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  134. obj6.FrontSurface=10
  135. obj6.BottomSurface=10
  136. obj6.BackSurface=10
  137. obj6.BrickColor=BrickColor.new("Really blue")
  138. obj6.Name="Hold2"
  139. obj6.Parent=holsters
  140. --7-TorsoWeld
  141. obj7=Instance.new("Part")
  142. obj7.CFrame=CFrame.new(Vector3.new(13.6000061,1.99000168,35.8999939)) * CFrame.Angles(-0,0,-0)
  143. obj7.FormFactor=Enum.FormFactor.Custom
  144. obj7.LeftSurface=10
  145. obj7.Transparency=1
  146. obj7.TopSurface=10
  147. obj7.RightSurface=10
  148. obj7.Size=Vector3.new(2,2,1)
  149. obj7.FrontSurface=10
  150. obj7.BottomSurface=10
  151. obj7.BackSurface=10
  152. obj7.BrickColor=BrickColor.new("Bright blue")
  153. obj7.Name="TorsoWeld"
  154. obj7.Parent=holsters
  155. --8-HolsterWeldTo
  156. obj8=Instance.new("Part")
  157. obj8.CFrame=CFrame.new(Vector3.new(12.342,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  158. obj8.FormFactor=Enum.FormFactor.Custom
  159. obj8.LeftSurface=10
  160. obj8.Transparency=1
  161. obj8.TopSurface=10
  162. obj8.RightSurface=10
  163. obj8.Material="SmoothPlastic"
  164. obj8.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  165. obj8.FrontSurface=10
  166. obj8.BottomSurface=10
  167. obj8.BackSurface=10
  168. obj8.BrickColor=BrickColor.new("Really blue")
  169. obj8.Name="HolsterWeldTo"
  170. obj8.Parent=holsters
  171. --9-Mesh
  172. obj9=Instance.new("BlockMesh")
  173. obj9.Scale=Vector3.new(0.999499977,1,1)
  174. obj9.Parent=obj8
  175. --10-Hold
  176. obj10=Instance.new("Part")
  177. obj10.CFrame=CFrame.new(Vector3.new(12.4000053,1.09500158,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  178. obj10.FormFactor=Enum.FormFactor.Custom
  179. obj10.LeftSurface=10
  180. obj10.TopSurface=10
  181. obj10.RightSurface=10
  182. obj10.Material="SmoothPlastic"
  183. obj10.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  184. obj10.FrontSurface=10
  185. obj10.BottomSurface=10
  186. obj10.BackSurface=10
  187. obj10.BrickColor=BrickColor.new("Really blue")
  188. obj10.Name="Hold"
  189. obj10.Parent=holsters
  190. holsters:MakeJoints()
  191. scan(holsters)
  192.  
  193. --1-M1911
  194. gun=Instance.new("Model")
  195. gun.Name="Blue Guster"
  196. gun.Parent=char
  197. --2-Handle
  198. obj2=Instance.new("Part")
  199. obj2.CFrame=CFrame.new(Vector3.new(12.3420238,1.86332655,36.3927727)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  200. obj2.FormFactor=Enum.FormFactor.Custom
  201. obj2.LeftSurface=10
  202. obj2.TopSurface=10
  203. obj2.RightSurface=10
  204. obj2.Material=Enum.Material.Neon
  205. obj2.Size=Vector3.new(0.200000003,0.99999994,0.400000036)
  206. obj2.FrontSurface=10
  207. obj2.BottomSurface=10
  208. obj2.BackSurface=10
  209. obj2.BrickColor=BrickColor.new("Really black")
  210. obj2.Name="Handle"
  211. obj2.Parent=gun
  212. --3-Decor
  213. obj3=Instance.new("Part")
  214. obj3.CFrame=CFrame.new(Vector3.new(12.3420143,2.28510284,35.9773712)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  215. obj3.FormFactor=Enum.FormFactor.Custom
  216. obj3.LeftSurface=10
  217. obj3.TopSurface=10
  218. obj3.RightSurface=10
  219. obj3.Material="SmoothPlastic"
  220. obj3.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  221. obj3.FrontSurface=10
  222. obj3.BottomSurface=10
  223. obj3.BackSurface=10
  224. obj3.BrickColor=BrickColor.new("Really blue")
  225. obj3.Name="Decor"
  226. obj3.Parent=gun
  227. --4-Mesh
  228. obj4=Instance.new("BlockMesh")
  229. obj4.Offset=Vector3.new(0,0.00999999978,0.0399999991)
  230. obj4.Scale=Vector3.new(0.699999988,0.200000003,0.800000012)
  231. obj4.Parent=obj3
  232. --5-Decor
  233. obj5=Instance.new("Part")
  234. obj5.CFrame=CFrame.new(Vector3.new(12.3420143,1.46716928,35.8617401)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  235. obj5.FormFactor=Enum.FormFactor.Custom
  236. obj5.LeftSurface=10
  237. obj5.TopSurface=10
  238. obj5.RightSurface=10
  239. obj5.Material="SmoothPlastic"
  240. obj5.Size=Vector3.new(0.200000003,0.400000006,0.200000003)
  241. obj5.FrontSurface=10
  242. obj5.BottomSurface=10
  243. obj5.BackSurface=10
  244. obj5.BrickColor=BrickColor.new("Really blue")
  245. obj5.Name="Decor"
  246. obj5.Parent=gun
  247. --6-Mesh
  248. obj6=Instance.new("BlockMesh")
  249. obj6.Scale=Vector3.new(0.600000024,1,0.200000003)
  250. obj6.Parent=obj5
  251. --7-Decor
  252. obj7=Instance.new("Part")
  253. obj7.CFrame=CFrame.new(Vector3.new(12.3420124,1.55429673,36.0928192)) * CFrame.Angles(0.45686540007591,-1.1175870895386e-008,3.141592502594)
  254. obj7.FormFactor=Enum.FormFactor.Custom
  255. obj7.LeftSurface=10
  256. obj7.TopSurface=10
  257. obj7.RightSurface=10
  258. obj7.Material="SmoothPlastic"
  259. obj7.Size=Vector3.new(0.200000003,0.310000002,0.200000003)
  260. obj7.FrontSurface=10
  261. obj7.BottomSurface=10
  262. obj7.BackSurface=10
  263. obj7.BrickColor=BrickColor.new("Really blue")
  264. obj7.Name="Decor"
  265. obj7.Parent=gun
  266. --8-Mesh
  267. obj8=Instance.new("BlockMesh")
  268. obj8.Scale=Vector3.new(0.600000024,1,0.200000003)
  269. obj8.Parent=obj7
  270. --9-Decor
  271. obj9=Instance.new("Part")
  272. obj9.CFrame=CFrame.new(Vector3.new(12.3420258,2.21372294,35.8965569)) * CFrame.Angles(0.76370096206665,-1.4901161193848e-008,-3.1415927410126)
  273. obj9.FormFactor=Enum.FormFactor.Custom
  274. obj9.LeftSurface=10
  275. obj9.TopSurface=10
  276. obj9.RightSurface=10
  277. obj9.Material="SmoothPlastic"
  278. obj9.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  279. obj9.FrontSurface=10
  280. obj9.BottomSurface=10
  281. obj9.BackSurface=10
  282. obj9.BrickColor=BrickColor.new("Really blue")
  283. obj9.Name="Decor"
  284. obj9.Parent=gun
  285. --10-Mesh
  286. obj10=Instance.new("BlockMesh")
  287. obj10.Scale=Vector3.new(0.400000006,0.200000003,1)
  288. obj10.Parent=obj9
  289. --11-Decor
  290. obj11=Instance.new("Part")
  291. obj11.CFrame=CFrame.new(Vector3.new(12.3420229,1.8633275,36.2927704)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  292. obj11.FormFactor=Enum.FormFactor.Custom
  293. obj11.LeftSurface=10
  294. obj11.TopSurface=10
  295. obj11.RightSurface=10
  296. obj11.Material="SmoothPlastic"
  297. obj11.Size=Vector3.new(0.200000003,1.20000005,0.400000036)
  298. obj11.FrontSurface=10
  299. obj11.BottomSurface=10
  300. obj11.BackSurface=10
  301. obj11.BrickColor=BrickColor.new("Really blue")
  302. obj11.Name="Decor"
  303. obj11.Parent=gun
  304. --12-Mesh
  305. obj12=Instance.new("BlockMesh")
  306. obj12.Offset=Vector3.new(0,-0.0700000003,0)
  307. obj12.Scale=Vector3.new(0.995000005,0.949999988,1.20000005)
  308. obj12.Parent=obj11
  309. --13-Decor
  310. obj13=Instance.new("Part")
  311. obj13.CFrame=CFrame.new(Vector3.new(12.3420258,2.30202365,35.8373909)) * CFrame.Angles(1.756756901741,-1.0430812835693e-007,3.1415927410126)
  312. obj13.FormFactor=Enum.FormFactor.Custom
  313. obj13.LeftSurface=10
  314. obj13.TopSurface=10
  315. obj13.RightSurface=10
  316. obj13.Material="SmoothPlastic"
  317. obj13.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  318. obj13.FrontSurface=10
  319. obj13.BottomSurface=10
  320. obj13.BackSurface=10
  321. obj13.BrickColor=BrickColor.new("Really blue")
  322. obj13.Name="Decor"
  323. obj13.Parent=gun
  324. --14-Mesh
  325. obj14=Instance.new("BlockMesh")
  326. obj14.Scale=Vector3.new(0.400000006,0.200000003,0.400000006)
  327. obj14.Parent=obj13
  328. --15-BulletCase
  329. obj15=Instance.new("Part")
  330. obj15.CFrame=CFrame.new(Vector3.new(12.3420229,1.44165683,35.6482697)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  331. obj15.FormFactor=Enum.FormFactor.Custom
  332. obj15.LeftSurface=10
  333. obj15.TopSurface=10
  334. obj15.RightSurface=10
  335. obj15.Material="SmoothPlastic"
  336. obj15.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  337. obj15.FrontSurface=10
  338. obj15.BottomSurface=10
  339. obj15.BackSurface=10
  340. obj15.BrickColor=BrickColor.new("Really blue")
  341. obj15.Name="BulletCase"
  342. obj15.Parent=gun
  343. --16-Mesh
  344. obj16=Instance.new("BlockMesh")
  345. obj16.Scale=Vector3.new(0.999499977,1,1)
  346. obj16.Parent=obj15
  347. --17-Flashlight
  348. obj17=Instance.new("Part")
  349. obj17.CFrame=CFrame.new(Vector3.new(12.3420115,0.729269207,35.601902)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  350. obj17.FormFactor=Enum.FormFactor.Custom
  351. obj17.LeftSurface=10
  352. obj17.TopSurface=10
  353. obj17.RightSurface=10
  354. obj17.Material="SmoothPlastic"
  355. obj17.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  356. obj17.FrontSurface=10
  357. obj17.BottomSurface=10
  358. obj17.BackSurface=10
  359. obj17.BrickColor=BrickColor.new("Pastel yellow")
  360. obj17.Name="Flashlight"
  361. obj17.Parent=gun
  362. --18-Mesh
  363. obj18=Instance.new("CylinderMesh")
  364. obj18.Offset=Vector3.new(0,0,0.0500000007)
  365. obj18.Scale=Vector3.new(0.5,1.01999998,0.5)
  366. obj18.Parent=obj17
  367. --19-Decor
  368. obj19=Instance.new("Part")
  369. obj19.CFrame=CFrame.new(Vector3.new(12.3420143,2.1178081,35.8290215)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  370. obj19.FormFactor=Enum.FormFactor.Custom
  371. obj19.LeftSurface=10
  372. obj19.TopSurface=10
  373. obj19.RightSurface=10
  374. obj19.Material="SmoothPlastic"
  375. obj19.Size=Vector3.new(0.200000003,0.400000036,0.200000003)
  376. obj19.FrontSurface=10
  377. obj19.BottomSurface=10
  378. obj19.BackSurface=10
  379. obj19.BrickColor=BrickColor.new("Really black")
  380. obj19.Name="Decor"
  381. obj19.Parent=gun
  382. --20-Mesh
  383. obj20=Instance.new("BlockMesh")
  384. obj20.Scale=Vector3.new(0.5,0.5,1.10000002)
  385. obj20.Parent=obj19
  386. --21-Decor
  387. obj21=Instance.new("Part")
  388. obj21.CFrame=CFrame.new(Vector3.new(12.2895117,2.05304575,35.6843338)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  389. obj21.FormFactor=Enum.FormFactor.Custom
  390. obj21.LeftSurface=10
  391. obj21.TopSurface=10
  392. obj21.RightSurface=10
  393. obj21.Material="SmoothPlastic"
  394. obj21.Size=Vector3.new(0.399999976,0.200000003,0.200000003)
  395. obj21.FrontSurface=10
  396. obj21.BottomSurface=10
  397. obj21.BackSurface=10
  398. obj21.BrickColor=BrickColor.new("Really blue")
  399. obj21.Name="Decor"
  400. obj21.Parent=gun
  401. --22-Mesh
  402. obj22=Instance.new("SpecialMesh")
  403. obj22.MeshType=Enum.MeshType.Wedge
  404. obj22.Scale=Vector3.new(1,0.25,0.50999999)
  405. obj22.Parent=obj21
  406. --23-Decor
  407. obj23=Instance.new("Part")
  408. obj23.CFrame=CFrame.new(Vector3.new(12.3420172,1.41577363,35.744442)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  409. obj23.FormFactor=Enum.FormFactor.Custom
  410. obj23.LeftSurface=10
  411. obj23.TopSurface=10
  412. obj23.RightSurface=10
  413. obj23.Material="SmoothPlastic"
  414. obj23.Size=Vector3.new(0.200000003,1.60000002,0.200000003)
  415. obj23.FrontSurface=10
  416. obj23.BottomSurface=10
  417. obj23.BackSurface=10
  418. obj23.BrickColor=BrickColor.new("Really blue")
  419. obj23.Name="Decor"
  420. obj23.Parent=gun
  421. --24-Mesh
  422. obj24=Instance.new("CylinderMesh")
  423. obj24.Parent=obj23
  424. --25-ShellCaseSpawner
  425. obj25=Instance.new("Part")
  426. obj25.CFrame=CFrame.new(Vector3.new(12.3420172,1.75731552,35.6289024)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  427. obj25.FormFactor=Enum.FormFactor.Custom
  428. obj25.LeftSurface=10
  429. obj25.TopSurface=10
  430. obj25.RightSurface=10
  431. obj25.Material="SmoothPlastic"
  432. obj25.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  433. obj25.FrontSurface=10
  434. obj25.BottomSurface=10
  435. obj25.BackSurface=10
  436. obj25.Name="ShellCaseSpawner"
  437. obj25.Parent=gun
  438. --26-Mesh
  439. obj26=Instance.new("CylinderMesh")
  440. obj26.Offset=Vector3.new(0.0149999997,0,-0.0350000001)
  441. obj26.Scale=Vector3.new(0.75,1,0.75)
  442. obj26.Parent=obj25
  443. --27-Decor
  444. obj27=Instance.new("Part")
  445. obj27.CFrame=CFrame.new(Vector3.new(12.3420115,0.765501678,35.4666672)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  446. obj27.FormFactor=Enum.FormFactor.Custom
  447. obj27.LeftSurface=10
  448. obj27.TopSurface=10
  449. obj27.RightSurface=10
  450. obj27.Material="SmoothPlastic"
  451. obj27.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  452. obj27.FrontSurface=10
  453. obj27.BottomSurface=10
  454. obj27.BackSurface=10
  455. obj27.BrickColor=BrickColor.new("Really black")
  456. obj27.Name="Decor"
  457. obj27.Parent=gun
  458. --28-Mesh
  459. obj28=Instance.new("CylinderMesh")
  460. obj28.Offset=Vector3.new(0,0,0.0500000007)
  461. obj28.Scale=Vector3.new(0.5,1.01999998,0.5)
  462. obj28.Parent=obj27
  463. --29-Decor
  464. obj29=Instance.new("Part")
  465. obj29.CFrame=CFrame.new(Vector3.new(12.3920164,1.4734931,35.5290413)) * CFrame.Angles(-1.3089969158173,-1.5701057910919,-0)
  466. obj29.FormFactor=Enum.FormFactor.Custom
  467. obj29.LeftSurface=10
  468. obj29.TopSurface=10
  469. obj29.RightSurface=10
  470. obj29.Material="SmoothPlastic"
  471. obj29.Size=Vector3.new(1.60000002,0.200000003,0.200000003)
  472. obj29.FrontSurface=10
  473. obj29.BottomSurface=10
  474. obj29.BackSurface=10
  475. obj29.BrickColor=BrickColor.new("Really blue")
  476. obj29.Name="Decor"
  477. obj29.Parent=gun
  478. --30-Mesh
  479. obj30=Instance.new("SpecialMesh")
  480. obj30.MeshType=Enum.MeshType.Wedge
  481. obj30.Scale=Vector3.new(1,0.25,0.5)
  482. obj30.Parent=obj29
  483. --31-Decor
  484. obj31=Instance.new("Part")
  485. obj31.CFrame=CFrame.new(Vector3.new(12.2895117,1.18371284,35.4513969)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  486. obj31.FormFactor=Enum.FormFactor.Custom
  487. obj31.LeftSurface=10
  488. obj31.TopSurface=10
  489. obj31.RightSurface=10
  490. obj31.Material="SmoothPlastic"
  491. obj31.Size=Vector3.new(1,0.200000003,0.200000003)
  492. obj31.FrontSurface=10
  493. obj31.BottomSurface=10
  494. obj31.BackSurface=10
  495. obj31.BrickColor=BrickColor.new("Really blue")
  496. obj31.Name="Decor"
  497. obj31.Parent=gun
  498. --32-Mesh
  499. obj32=Instance.new("SpecialMesh")
  500. obj32.MeshType=Enum.MeshType.Wedge
  501. obj32.Scale=Vector3.new(1,0.25,0.50999999)
  502. obj32.Parent=obj31
  503. gun:MakeJoints()
  504. scan(gun)
  505.  
  506. local gun2 = gun:clone()
  507. gun2.Parent = char
  508.  
  509. local torsoweld = Instance.new('Weld', char)
  510. torsoweld.Part0 = torso
  511. torsoweld.Part1 = holsters.TorsoWeld
  512. torsoweld.C1 = CFrame.Angles(0,math.pi,0)
  513.  
  514. local gunweld = Instance.new('Weld', char)
  515. gunweld.Part0 = gun.BulletCase
  516. gunweld.Part1 = holsters.HolsterWeldTo
  517.  
  518. local gunweld2 = Instance.new('Weld', char)
  519. gunweld2.Part0 = gun2.BulletCase
  520. gunweld2.Part1 = holsters.HolsterWeldTo2
  521.  
  522. local bodygyro = Instance.new('BodyGyro')
  523. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  524. bodygyro.P = 15000
  525.  
  526. local rsc0 = rm.C0
  527. local lsc0 = lm.C0
  528. local angle = 0
  529. local anglespeed = .5
  530. local speed = .3
  531. local side = 0
  532. local Equipped = false
  533. local origneckc0 = neck.C0
  534. local origneckc1 = neck.C1
  535. local neckc0 = CFrame.new(0, 1, 0)
  536. local firing = false
  537. local pistol = 1
  538. local light = false
  539.  
  540. local gunlight = Instance.new('SpotLight', gun.Flashlight)
  541. gunlight.Range = 40
  542. gunlight.Angle = 60
  543. gunlight.Face = 'Bottom'
  544. gunlight.Shadows = true
  545. gunlight.Enabled = false
  546.  
  547. local gunlight2 = gunlight:clone()
  548. gunlight2.Parent = gun2.Flashlight
  549.  
  550. local fire = Instance.new('Sound', head)
  551. fire.SoundId = "rbxassetid://260433746"
  552. fire.Volume = 18000000
  553.  
  554. local song = Instance.new('Sound', head)
  555. song.SoundId = "rbxassetid://142653441"
  556. song.Volume = 10000000
  557. song.Looped = true
  558.  
  559. local song2 = Instance.new('Sound', head)
  560. song2.SoundId = "rbxassetid://408386283"
  561. song2.Volume = 1000000
  562. song2.Looped = true
  563.  
  564. local reload = Instance.new('Sound', head)
  565. reload.SoundId = "rbxassetid://266022905"
  566. reload.Volume = 180000
  567.  
  568. local ammo = 40
  569. local scrgui = Instance.new('ScreenGui', plrgui)
  570. scrgui.Name = 'DualGunsGui'
  571.  
  572. local ammonution = Instance.new('TextLabel', scrgui)
  573. ammonution.Size = UDim2.new(0,150,0,50)
  574. ammonution.Position = UDim2.new(1, -250, 1, -70)
  575. ammonution.BackgroundTransparency = 1
  576. ammonution.TextColor3 = Color3.new(1,1,1)
  577. ammonution.TextStrokeTransparency = .1
  578. ammonution.Text = ('| '):rep(ammo)
  579. ammonution.TextXAlignment = 'Right'
  580. ammonution.ZIndex = 2
  581. ammonution.FontSize = 'Size18'
  582.  
  583. local ammonution2 = Instance.new('TextLabel', scrgui)
  584. ammonution2.Size = UDim2.new(0,150,0,50)
  585. ammonution2.Position = UDim2.new(1, -250, 1, -70)
  586. ammonution2.BackgroundTransparency = 1
  587. ammonution2.TextColor3 = Color3.new(.5,.5,.5)
  588. ammonution2.TextStrokeTransparency = .1
  589. ammonution2.TextXAlignment = 'Right'
  590. ammonution2.Text = ('| '):rep(ammo)
  591. ammonution2.FontSize = 'Size18'
  592.  
  593. local rel = Instance.new('TextButton', scrgui)
  594. rel.Size = UDim2.new(0,500,0,250)
  595. rel.Position = UDim2.new(.5, -250, .8, -250)
  596. rel.BackgroundTransparency = 1
  597. rel.TextColor3 = Color3.new(.7,0,0)
  598. rel.Visible = false
  599. rel.Text = 'Reload (r)'
  600. rel.FontSize = 'Size24'
  601.  
  602. rel.MouseButton1Down:connect(function()
  603. if ammo >= 40 or firing then return end
  604. dontclerpneck = true
  605. firing = true
  606. local dropammo = gun.Handle:clone()
  607. dropammo:ClearAllChildren()
  608. dropammo.CanCollide = true
  609. dropammo.BrickColor = BrickColor.Black()
  610. dropammo.Parent = workspace
  611. dropammo.CFrame = gun.Handle.CFrame
  612. local dropammo2 = dropammo:clone()
  613. dropammo2.Parent = workspace
  614. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  615. game:service'Debris':AddItem(dropammo,15)
  616. game:service'Debris':AddItem(dropammo2,15)
  617. wait(.5)
  618. reload:play()
  619. for i = 1, 65 do
  620. firing = true
  621. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  622. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  623. lm.C0 = clerp(lm.C0,lscf,speed)
  624. rm.C0 = clerp(rm.C0,rscf,speed)
  625. game:service'RunService'.RenderStepped:wait()
  626. end
  627. reload:play()
  628. for i = 1, 65 do
  629. firing = true
  630. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  631. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  632. lm.C0 = clerp(lm.C0,lscf,speed)
  633. rm.C0 = clerp(rm.C0,rscf,speed)
  634. game:service'RunService'.RenderStepped:wait()
  635. end
  636. dontclerpneck = false
  637. firing = false
  638. ammo = 26
  639. ammonution.Text = ('| '):rep(ammo)
  640. end)
  641. tool.Selected:connect(function(mouse)
  642. Equipped = true
  643. bodygyro.Parent = torso
  644. bodygyro.cframe = torso.CFrame
  645. rs.Parent = nil
  646. ls.Parent = nil
  647. rm.Parent = torso
  648. lm.Parent = torso
  649. neck.C0 = CFrame.new(0, 1, 0)
  650. neck.C1 = CFrame.new(0, -0.5, 0)
  651. gunweld.Part0 = gun.Handle
  652. gunweld2.Part0 = gun2.Handle
  653. gunweld.Part1 = ra
  654. gunweld2.Part1 = la
  655. gunweld.C1 = CFrame.new(0, -.8, 0)
  656. gunweld.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  657. gunweld2.C1 = CFrame.new(0, -.8, 0)
  658. gunweld2.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  659. mouse.KeyDown:connect(function(k)
  660. if k == "r" then
  661. if ammo >= 40 or firing then return end
  662. dontclerpneck = true
  663. firing = true
  664. local dropammo = gun.Handle:clone()
  665. dropammo:ClearAllChildren()
  666. dropammo.CanCollide = true
  667. dropammo.BrickColor = BrickColor.Black()
  668. dropammo.Parent = workspace
  669. dropammo.CFrame = gun.Handle.CFrame
  670. local dropammo2 = dropammo:clone()
  671. dropammo2.Parent = workspace
  672. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  673. game:service'Debris':AddItem(dropammo,15)
  674. game:service'Debris':AddItem(dropammo2,15)
  675. wait(.5)
  676. reload:play()
  677. for i = 1, 65 do
  678. firing = true
  679. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  680. lscf = lsc0 * CFrame.new(1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, math.rad(30), math.pi/3.2)
  681. lm.C0 = clerp(lm.C0,lscf,speed)
  682. rm.C0 = clerp(rm.C0,rscf,speed)
  683. game:service'RunService'.RenderStepped:wait()
  684. end
  685. reload:play()
  686. for i = 1, 65 do
  687. firing = true
  688. rscf = rsc0 * CFrame.new(-1.2, 0, -.4) * CFrame.Angles(math.pi/4 + math.sin(angle)*math.random()/20, -math.rad(30), -math.pi/3.2)
  689. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  690. lm.C0 = clerp(lm.C0,lscf,speed)
  691. rm.C0 = clerp(rm.C0,rscf,speed)
  692. game:service'RunService'.RenderStepped:wait()
  693. end
  694. dontclerpneck = false
  695. firing = false
  696. ammo = 40
  697. ammonution.Text = ('| '):rep(ammo)
  698. end
  699. if k == "f" then
  700. game:GetService("Chat"):Chat(plr.Character.Head, "Boss Mode!", Enum.ChatColor.Red)
  701. song:Play()
  702. char.Head.face.Texture = "http://www.roblox.com/asset/?id=397016154"
  703. else
  704. if k == "g" then
  705. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  706. song:Stop()
  707. char.Head.face.Texture = "http://www.roblox.com/asset/?id=479899397"
  708. else
  709. if k == "h" then
  710. game:GetService("Chat"):Chat(plr.Character.Head, "Evil Mode!", Enum.ChatColor.Red)
  711. song2:Play()
  712. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152629683"
  713. else
  714. if k == "j" then
  715. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  716. song2:Stop()
  717. char.Head.face.Texture = "http://www.roblox.com/asset/?id=479899397"
  718. else
  719. if k == "k" then
  720. humanoid.WalkSpeed = 60
  721. else
  722. if k == "l" then
  723. humanoid.WalkSpeed = 25
  724. else
  725. if k == "p" then
  726. game:GetService("Chat"):Chat(plr.Character.Head, "Human Mode!", Enum.ChatColor.Green)
  727. plr.Character.Humanoid.Health = (10000000000000000)
  728. plr.Character.Humanoid.MaxHealth = (10000000000000000)
  729. else
  730. if k == "u" then
  731. game:GetService("Chat"):Chat(plr.Character.Head, "Demi God Mode!", Enum.ChatColor.Red)
  732. plr.Character.Humanoid.Health = (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  733. plr.Character.Humanoid.MaxHealth = (1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  734. else
  735. if k == "q" then
  736. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Enabled", Enum.ChatColor.Red)
  737. Value = true
  738. else
  739. if k == "e" then
  740. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Disabled", Enum.ChatColor.Green)
  741. Value = false
  742. else
  743. if k == "b" then
  744. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Enabled!", Enum.ChatColor.Blue)
  745. ff:Clone().Parent = char
  746. else
  747. if k == "v" then
  748. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Disabled!", Enum.ChatColor.Blue)
  749. char.ForceField:Destroy()
  750. end
  751. end
  752. end
  753. end
  754. end
  755. end
  756. end
  757. end
  758. end
  759. end
  760. end
  761. end
  762. end)
  763. mouse.Button1Down:connect(function()
  764. if ammo <= 0 then
  765. local sound = Instance.new('Sound', head)
  766. sound.SoundId = "rbxassetid://260433746"
  767. sound.Volume = 2
  768. sound:play()
  769. game:service'Debris':AddItem(sound,1)
  770. end
  771. if firing or ammo <= 0 then return end
  772. ammo = ammo - 1
  773. ammonution.Text = ('| '):rep(ammo)
  774. firing = true
  775. local pa = Instance.new('Part')
  776. pa.CanCollide = false
  777. pa.Anchored = true
  778. pa.Locked = true
  779. pa.FormFactor = 'Custom'
  780. pa.Material = 'Neon'
  781. pa.BrickColor = BrickColor.new('Cyan')
  782. pa.Size = Vector3.new(.2,3,.2)
  783. Instance.new('BlockMesh', pa).Scale = Vector3.new(.2,3,.2)
  784. local thegun
  785. if pistol == 1 then
  786. thegun = gun.BulletCase
  787. elseif pistol == 2 then
  788. thegun = gun2.BulletCase
  789. end
  790. local muzzle = Instance.new('PointLight', thegun)
  791. muzzle.Range = 1211111
  792. muzzle.Color = Color3.new(0, 81, 255)
  793. game:service'Debris':AddItem(muzzle, .05)
  794. local shell = pa:clone()
  795. shell:ClearAllChildren()
  796. shell.Anchored = false
  797. shell.CFrame = thegun.Parent.ShellCaseSpawner.CFrame
  798. shell.Size = Vector3.new(.2,.5,.2)
  799. shell.Parent = workspace
  800. shell.Material = 'Neon'
  801. shell.BrickColor = BrickColor.new('Cyan')
  802. shell.CanCollide = true
  803. game:service'Debris':AddItem(shell, 5)
  804. local bulletpos = thegun.Position
  805. local bulletvelocity = (mouse.Hit.p - bulletpos).unit*15
  806. local lastbulletpos = thegun.Position
  807. fire:play()
  808. coroutine.wrap(function()
  809. while game:service'RunService'.Stepped:wait() do
  810. lastbulletpos = bulletpos
  811. bulletpos = bulletpos + bulletvelocity
  812. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  813. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  814. if (torso.Position - pa.Position).magnitude > 800 then
  815. pa:Destroy()
  816. break
  817. end
  818. pa.Anchored = true
  819. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  820. if hit then
  821. local damage
  822. local sound = Instance.new('Sound', pa)
  823. sound.SoundId = "rbxassetid://166423137"
  824. sound.Pitch = 1.2+math.random()/3
  825. sound.Volume = 1
  826. sound:play()
  827. pa:Destroy()
  828. if Value == true then
  829. hit:Destroy()
  830. end
  831. game:service'Debris':AddItem(sound,4)
  832. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  833. local hitz, enz = workspace:FindPartOnRay(ray, char)
  834. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  835. if hum then
  836. damage = math.random(40,90)
  837. hum:TakeDamage(damage)
  838. end
  839. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  840. if hum then
  841. damage = math.random(40,90)
  842. hum:TakeDamage(damage)
  843. end
  844. break
  845. end
  846. pa.Anchored = true
  847. pa.Parent = char
  848. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  849. end
  850. end)()
  851.  
  852. if pistol == 1 then
  853. pistol = 2
  854. for i = 1, 4 do
  855. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  856. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  857. lm.C0 = clerp(lm.C0,lscf,speed)
  858. rm.C0 = clerp(rm.C0,rscf,speed)
  859. game:service'RunService'.RenderStepped:wait()
  860. end
  861. elseif pistol == 2 then
  862. for i = 1, 4 do
  863. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  864. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.new(0, 0, .5) * CFrame.Angles(math.pi/1.5 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  865. lm.C0 = clerp(lm.C0,lscf,speed)
  866. rm.C0 = clerp(rm.C0,rscf,speed)
  867. game:service'RunService'.RenderStepped:wait()
  868. end
  869. pistol = 1
  870. end
  871. firing = false
  872. end)
  873. end)
  874. tool.Deselected:connect(function()
  875. Equipped = false
  876. rm.Parent = nil
  877. lm.Parent = nil
  878. rs.Parent = torso
  879. ls.Parent = torso
  880. neck.C0 = origneckc0
  881. neck.C1 = origneckc1
  882. lm.C0 = lsc0
  883. rm.C0 = rsc0
  884. gunweld.Part0 = gun.BulletCase
  885. gunweld.Part1 = holsters.HolsterWeldTo
  886. gunweld.C0 = CFrame.new()
  887. gunweld.C1 = CFrame.new()
  888. gunweld2.Part0 = gun2.BulletCase
  889. gunweld2.Part1 = holsters.HolsterWeldTo2
  890. gunweld2.C0 = CFrame.new()
  891. gunweld2.C1 = CFrame.new()
  892. bodygyro.Parent = nil
  893. end)
  894.  
  895. game:service'RunService'.RenderStepped:connect(function()
  896. if Equipped then
  897. if ammo <= 0 then
  898. rel.Visible = true
  899. else
  900. rel.Visible = false
  901. end
  902. if light then
  903. gunlight.Enabled = true
  904. gunlight2.Enabled = true
  905. else
  906. gunlight.Enabled = false
  907. gunlight2.Enabled = false
  908. end
  909. angle = angle + (0.05+math.random()/20)
  910. local rscf = rsc0
  911. local lscf = lsc0
  912. local ncf = neckc0
  913. local rmx,rmy,rmz = rm.C0:toEulerAnglesXYZ()
  914. if rmz >= 1 then
  915. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  916. elseif rmz <= -1 then
  917. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  918. end
  919. rscf = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, math.cos(angle)*math.random()/20)
  920. lscf = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p)) * CFrame.Angles(math.pi/2 + math.sin(angle)*math.random()/20, 0, -math.cos(angle)*math.random()/20)
  921. ncf = neckc0 * CFrame.new(Vector3.new(), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p))
  922. if not firing then
  923. lm.C0 = clerp(lm.C0,lscf,speed)
  924. rm.C0 = clerp(rm.C0,rscf,speed)
  925. end
  926. if not dontclerpneck then
  927. neck.C0 = clerp(neck.C0,ncf,speed)
  928. end
  929. end
  930. if light and not Equipped then
  931. gunlight.Enabled = false
  932. gunlight2.Enabled = false
  933. end
  934. end)
  935.  
  936. chatted = false
  937.  
  938. a = Instance.new("BillboardGui", plr.Character:FindFirstChild("Head"))
  939. a.ExtentsOffset = Vector3.new(1,0,0)
  940. a.Size = UDim2.new(1,0,1,0)
  941. a.AlwaysOnTop = true
  942. a.Enabled = true
  943. b = Instance.new("ImageLabel", a)
  944. b.BackgroundTransparency = 1
  945. b.BorderSizePixel = 0
  946. b.Image = "http://www.roblox.com/asset/?id=243503908"
  947. b.ImageTransparency = 0.1
  948. b.Position = UDim2.new(0.2,0,0.05,0)
  949. b.Size = UDim2.new(5,0,1.2,0)
  950. b.Visible = false
  951. c = Instance.new("TextLabel", b)
  952. c.BackgroundTransparency = 1
  953. c.BorderSizePixel = 0
  954. c.Position = UDim2.new(0.1,0,0)
  955. c.Size = UDim2.new(0.5,0,0.4,0)
  956. c.ZIndex = 2
  957. c.Font = "SourceSans"
  958. c.FontSize = "Size18"
  959. c.Text = plr.Name..":"
  960. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  961. c.TextXAlignment = "Left"
  962. c.TextYAlignment = "Center"
  963. d = Instance.new("TextLabel", b)
  964. d.BackgroundTransparency = 1
  965. d.BorderSizePixel = 0
  966. d.Position = UDim2.new(0.1,0,0.4,0)
  967. d.Size = UDim2.new(0.9,0,0.6,0)
  968. d.ZIndex = 2
  969. d.Font = "SourceSans"
  970. d.FontSize = "Size18"
  971. d.Text = ""
  972. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  973. d.TextXAlignment = "Left"
  974. d.TextYAlignment = "Top"
  975. d.TextWrapped = true
  976.  
  977.  
  978. function message(message)
  979. repeat wait() until chatted == false
  980. chatted = true
  981. b.Visible = true
  982. if string.find(message,"-r") ~=nil then
  983. for i=1,string.len(message),1 do
  984. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  985. d.Text = string.sub(message,1,i)
  986. wait(0.1)
  987. end
  988. elseif string.find(message,"-b") ~=nil then
  989. for i=1,string.len(message),1 do
  990. d.Text = string.sub(string.byte(message),1,i)
  991. wait(0.05)
  992. end
  993. else
  994. for i=1,string.len(message),1 do
  995. d.Text = string.sub(message,1,i)
  996. wait(0.05)
  997. end
  998. end
  999. wait(2)
  1000. if string.find(message,"-t") ~=nil then
  1001. b.Visible = true
  1002. else
  1003. b.Visible = false
  1004. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  1005. end
  1006. chatted = false
  1007. end
  1008.  
  1009.  
  1010. wait(2.6)
  1011. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Blue Gust Blade!", "Red")
  1012. Player=game:GetService("Players").LocalPlayer
  1013. Character=Player.Character
  1014. PlayerGui=Player.PlayerGui
  1015. Backpack=Player.Backpack
  1016. Torso=Character.Torso
  1017. Head=Character.Head
  1018. Humanoid=Character.Humanoid
  1019. print('Player is Eliagable')
  1020. LeftArm=Character["Left Arm"]
  1021. LeftLeg=Character["Left Leg"]
  1022. RightArm=Character["Right Arm"]
  1023. RightLeg=Character["Right Leg"]
  1024. LS=Torso["Left Shoulder"]
  1025. LH=Torso["Left Hip"]
  1026. RS=Torso["Right Shoulder"]
  1027. RH=Torso["Right Hip"]
  1028. Neck=Torso.Neck
  1029. it=Instance.new
  1030. vt=Vector3.new
  1031. cf=CFrame.new
  1032. euler=CFrame.fromEulerAnglesXYZ
  1033. angles=CFrame.Angles
  1034. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1035. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1036. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1037. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1038. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1039. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1040. RootPart=Character.HumanoidRootPart
  1041. RootJoint=RootPart.RootJoint
  1042. RootCF=euler(-1.57,0,3.14)
  1043. attack=false
  1044. attackdebounce=false
  1045. MMouse=nil
  1046. combo=0
  1047. local Anim="Idle"
  1048. local Effects={}
  1049. equipped=false
  1050. local idle=0
  1051. local hold=false
  1052. local con1=nil
  1053. local con2=nil
  1054. local Mode="Binary"
  1055. local idleanim=0
  1056. local idleanim2=false
  1057. local impulse=1
  1058. local hitfloor,posfloor=nil,nil
  1059. local damcount=0
  1060. local guard=false
  1061. --player
  1062. player=nil
  1063. --save shoulders
  1064. RSH, LSH=nil, nil
  1065. --welds
  1066. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1067. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1068. LH=Torso["Left Hip"]
  1069. RH=Torso["Right Hip"]
  1070. Asset="http://www.roblox.com/asset/?id="
  1071. Health=879000
  1072. Humanoid.MaxHealth=879000
  1073. Humanoid.Health=879000
  1074. coroutine.resume(coroutine.create(function()
  1075. for i=1,20 do
  1076. Humanoid.MaxHealth=879000
  1077. Humanoid.Health=879000
  1078. end
  1079. Humanoid.MaxHealth=879000
  1080. Humanoid.Health=879000
  1081. Humanoid:TakeDamage(0)
  1082. Humanoid.Health=Health
  1083. end))
  1084. Humanoid.Health=Health
  1085.  
  1086. function swait(num)
  1087. if num==0 or num==nil then
  1088. game:service'RunService'.RenderStepped:wait()
  1089. else
  1090. for i=0,num do
  1091. game:service'RunService'.RenderStepped:wait()
  1092. end
  1093. end
  1094. end
  1095.  
  1096. if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
  1097. Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
  1098. end
  1099. if Character:findFirstChild("Demon Blade",true) ~= nil then
  1100. Character:findFirstChild("Demon Blade",true).Parent = nil
  1101. end
  1102. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  1103. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  1104. end
  1105.  
  1106.  
  1107. function NoOutline(Part)
  1108. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1109. end
  1110.  
  1111. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1112. local fp=it("Part")
  1113. fp.formFactor=formfactor
  1114. fp.Parent=parent
  1115. fp.Reflectance=reflectance
  1116. fp.Transparency=transparency
  1117. fp.CanCollide=false
  1118. fp.Locked=true
  1119. fp.BrickColor=brickcolor
  1120. fp.Name=name
  1121. fp.Size=size
  1122. fp.Position=Torso.Position
  1123. NoOutline(fp)
  1124. fp.Material="Granite"
  1125. fp:BreakJoints()
  1126. return fp
  1127. end
  1128.  
  1129. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1130. local mesh=it(Mesh)
  1131. mesh.Parent=part
  1132. if Mesh=="SpecialMesh" then
  1133. mesh.MeshType=meshtype
  1134. mesh.MeshId=meshid
  1135. end
  1136. mesh.Offset=offset
  1137. mesh.Scale=scale
  1138. return mesh
  1139. end
  1140.  
  1141. function weld(parent,part0,part1,c0)
  1142. local weld=it("Weld")
  1143. weld.Parent=parent
  1144. weld.Part0=part0
  1145. weld.Part1=part1
  1146. weld.C0=c0
  1147. return weld
  1148. end
  1149.  
  1150. local fengui=it("GuiMain")
  1151. fengui.Parent=Player.PlayerGui
  1152. fengui.Name="WeaponGUI"
  1153.  
  1154. local Color1=BrickColor.new("Really blue")
  1155. local Color2=BrickColor.new("Black")
  1156. local Colorr3=BrickColor.new("Black")
  1157. local Color4=BrickColor.new("Really blue")
  1158.  
  1159. local model1=Instance.new("Model")
  1160. model1.Parent=Character
  1161. model1.Name="Hades Judgement Blade"
  1162. BSword={}
  1163. BSwordWelds={}
  1164. local model2=Instance.new("Model")
  1165. model2.Parent=nil
  1166. model2.Name="Demon Blade"
  1167. DBlade={}
  1168. DBladeWelds={}
  1169.  
  1170. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  1171. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  1172. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  1173. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  1174. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  1175. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  1176. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  1177. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  1178. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  1179. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  1180. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  1181. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  1182.  
  1183. prtd1=part(3,model2,0,0.4,BrickColor.new("Really blue"),"DPart1",vt())
  1184. prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
  1185. prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
  1186. prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
  1187. prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
  1188. prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
  1189. prtd7=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart7",vt())
  1190. prtd8=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart8",vt())
  1191. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart9",vt())
  1192. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart10",vt())
  1193. prtd11=part(3,model2,0.5,0,BrickColor.new("Really blue"),"DPart11",vt())
  1194. prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
  1195. for _,c in pairs(model2:children()) do
  1196. if c.className=="Part" then
  1197. table.insert(DBlade,c)
  1198. end
  1199. end
  1200. light=it("PointLight")
  1201. light.Brightness=.8
  1202. light.Color=Color3.new(255/255,50/255,0)
  1203. --light.Color=BrickColor.new("Really red")
  1204. light.Range=10
  1205. light.Parent=prtd9
  1206.  
  1207. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  1208. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  1209. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  1210. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  1211. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  1212. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  1213. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  1214. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  1215. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  1216. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  1217. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  1218. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  1219.  
  1220. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  1221. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  1222. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  1223. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  1224. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  1225. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  1226. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  1227. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  1228. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  1229. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  1230. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  1231. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  1232.  
  1233. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  1234. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  1235. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  1236. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  1237. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  1238. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  1239. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  1240. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  1241. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  1242. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  1243. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  1244. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  1245.  
  1246. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  1247. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  1248. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  1249. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  1250. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  1251. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  1252. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  1253. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  1254. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  1255. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  1256. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  1257. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  1258. for _,c in pairs(prtd1:children()) do
  1259. if c.className=="Weld" then
  1260. table.insert(DBladeWelds,c)
  1261. print(c)
  1262. end
  1263. end
  1264.  
  1265. for i=-.9,.9,0.2 do
  1266. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  1267. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  1268. wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
  1269. end
  1270.  
  1271. local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  1272. local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  1273.  
  1274. if (script.Parent.className~="HopperBin") then
  1275. Tool=Instance.new("HopperBin")
  1276. Tool.Parent=Backpack
  1277. Tool.Name="Hades Judgement Blade"
  1278. script.Parent=Tool
  1279. end
  1280. Bin=script.Parent
  1281. --Bin=Tool
  1282.  
  1283. local bodvel=Instance.new("BodyVelocity")
  1284. bodvel.Name="FixerVel"
  1285. local bg=Instance.new("BodyGyro")
  1286. bg.Name="FixerGyro"
  1287.  
  1288. so = function(id,par,vol,pit)
  1289. coroutine.resume(coroutine.create(function()
  1290. local sou = Instance.new("Sound",par or workspace)
  1291. sou.Parent=par
  1292. sou.Volume=vol
  1293. sou.Pitch=pit or 1
  1294. sou.SoundId=id
  1295. swait()
  1296. sou:Play()
  1297. game:GetService("Debris"):AddItem(sou,6)
  1298. end))
  1299. end
  1300.  
  1301. function clerp(a,b,t)
  1302. local qa = {QuaternionFromCFrame(a)}
  1303. local qb = {QuaternionFromCFrame(b)}
  1304. local ax, ay, az = a.x, a.y, a.z
  1305. local bx, by, bz = b.x, b.y, b.z
  1306. local _t = 1-t
  1307. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1308. end
  1309.  
  1310. function QuaternionFromCFrame(cf)
  1311. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1312. local trace = m00 + m11 + m22
  1313. if trace > 0 then
  1314. local s = math.sqrt(1 + trace)
  1315. local recip = 0.5/s
  1316. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1317. else
  1318. local i = 0
  1319. if m11 > m00 then
  1320. i = 1
  1321. end
  1322. if m22 > (i == 0 and m00 or m11) then
  1323. i = 2
  1324. end
  1325. if i == 0 then
  1326. local s = math.sqrt(m00-m11-m22+1)
  1327. local recip = 0.5/s
  1328. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1329. elseif i == 1 then
  1330. local s = math.sqrt(m11-m22-m00+1)
  1331. local recip = 0.5/s
  1332. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1333. elseif i == 2 then
  1334. local s = math.sqrt(m22-m00-m11+1)
  1335. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1336. end
  1337. end
  1338. end
  1339.  
  1340. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1341. local xs, ys, zs = x + x, y + y, z + z
  1342. local wx, wy, wz = w*xs, w*ys, w*zs
  1343. local xx = x*xs
  1344. local xy = x*ys
  1345. local xz = x*zs
  1346. local yy = y*ys
  1347. local yz = y*zs
  1348. local zz = z*zs
  1349. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1350. end
  1351.  
  1352. function QuaternionSlerp(a, b, t)
  1353. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1354. local startInterp, finishInterp;
  1355. if cosTheta >= 0.0001 then
  1356. if (1 - cosTheta) > 0.0001 then
  1357. local theta = math.acos(cosTheta)
  1358. local invSinTheta = 1/math.sin(theta)
  1359. startInterp = math.sin((1-t)*theta)*invSinTheta
  1360. finishInterp = math.sin(t*theta)*invSinTheta
  1361. else
  1362. startInterp = 1-t
  1363. finishInterp = t
  1364. end
  1365. else
  1366. if (1+cosTheta) > 0.0001 then
  1367. local theta = math.acos(-cosTheta)
  1368. local invSinTheta = 1/math.sin(theta)
  1369. startInterp = math.sin((t-1)*theta)*invSinTheta
  1370. finishInterp = math.sin(t*theta)*invSinTheta
  1371. else
  1372. startInterp = t-1
  1373. finishInterp = t
  1374. end
  1375. end
  1376. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1377. end
  1378.  
  1379. function hideanim()
  1380. equipped=false
  1381. attack=true
  1382. if Mode=="Binary" then
  1383. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  1384. for i=0,1,0.1 do
  1385. swait()
  1386. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  1387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1388. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1389. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  1390. end
  1391. wld1.Part1=Torso
  1392. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  1393. for i=0,1,0.2 do
  1394. swait()
  1395. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  1396. end
  1397. for i=0,1,0.1 do
  1398. swait()
  1399. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1400. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  1401. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1402. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1403. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1404. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1405. end
  1406. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  1407. else
  1408. for i=0,1,0.1 do
  1409. swait()
  1410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  1411. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1412. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  1413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  1414. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  1415. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  1416. end
  1417. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  1418. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  1419. for i=0,1,0.015 do
  1420. swait()
  1421. for i=1,3 do
  1422. if math.random(1,5)==1 then
  1423. MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1424. else
  1425. MagicBlock(BrickColor.new("Really blue"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  1426. end
  1427. end
  1428. end
  1429. model2.Parent=nil
  1430. for i=0,1,0.1 do
  1431. swait()
  1432. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  1434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1435. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1436. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  1437. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  1438. end
  1439. end
  1440. Torso.Neck.C0=necko
  1441. Torso.Neck.C1=necko2
  1442. RootJoint.C0=RootCF
  1443. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  1444. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1445. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  1446. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1447. RH.C0=RHC0
  1448. RH.C1=RHC1
  1449. LH.C0=LHC0
  1450. LH.C1=LHC1
  1451. Mode="Binary"
  1452. attack=false
  1453. end
  1454.  
  1455. function equipanim()
  1456. equipped=true
  1457. attack=true
  1458. for i=0,1,0.2 do
  1459. swait()
  1460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  1461. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  1462. end
  1463. for i=0,1,0.1 do
  1464. swait()
  1465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  1466. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  1467. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1468. end
  1469. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  1470. wld1.Part1=RightArm
  1471. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  1472. for i=0,1,0.1 do
  1473. swait()
  1474. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1475. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  1476. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  1477. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  1478. end
  1479. for i=0,1,0.1 do
  1480. swait()
  1481. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  1483. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  1484. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  1485. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  1486. end
  1487. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  1488. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  1489. Torso.Neck.C0=necko*euler(0,0,0.5)
  1490. RootJoint.C0=RootCF*euler(0,0,-0.5)
  1491. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  1492. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1493. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  1494. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1495. attack=false
  1496. end
  1497.  
  1498. function Stomp()
  1499. Humanoid.WalkSpeed=0
  1500. Torso.Velocity=RootPart.CFrame.lookVector*0
  1501. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  1502. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  1503. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  1504. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  1505. Dam=math.random(5,10)
  1506. Humanoid.Health=Humanoid.Health-Dam
  1507. MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
  1508. --[[for i=0,1,0.2 do
  1509. swait()
  1510. if Mode=="Binary" then
  1511. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  1512. end
  1513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  1514. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  1515. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  1516. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  1517. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  1518. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  1519. end
  1520. for i=0,1,0.1 do
  1521. swait()
  1522. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  1523. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  1524. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  1525. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  1526. end]]
  1527. swait(10)
  1528. Humanoid.WalkSpeed=16
  1529. end
  1530.  
  1531. function attackone()
  1532. attack=true
  1533. for i=0,1,0.1 do
  1534. swait()
  1535. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  1536. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1537. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1538. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  1539. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  1540. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1541. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1542. end
  1543. hitbox1.Parent=model1
  1544. hitbox1.Size=vt(1,5,1)
  1545. hitbox1.Transparency=1
  1546. hitbox1.CFrame=prt10.CFrame
  1547. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1548. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1549. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  1550. blcf=nil
  1551. scfr=nil
  1552. for i=0,1,0.25 do
  1553. swait()
  1554. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1555. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1556. local h = 5
  1557. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1558. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1559. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1560. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1561. scfr = blcf
  1562. elseif not scfr then
  1563. scfr = blcf
  1564. end
  1565. hitbox1.CFrame=prt10.CFrame
  1566. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  1567. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  1568. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  1569. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  1570. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  1571. end
  1572. for i=0,1,0.1 do
  1573. swait()
  1574. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1575. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1576. local h = 5
  1577. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1578. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1579. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1580. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1581. scfr = blcf
  1582. elseif not scfr then
  1583. scfr = blcf
  1584. end
  1585. hitbox1.CFrame=prt10.CFrame
  1586. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  1587. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  1588. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  1589. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  1590. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  1591. end
  1592. con1:disconnect()
  1593. hitbox1.Parent=nil
  1594. attack=false
  1595. end
  1596.  
  1597. function attacktwo()
  1598. attack=true
  1599. for i=0,1,0.1 do
  1600. swait()
  1601. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1602. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  1603. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  1604. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1605. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  1606. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1607. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1608. end
  1609. hitbox1.Parent=model1
  1610. hitbox1.Size=vt(1,5,1)
  1611. hitbox1.Transparency=1
  1612. hitbox1.CFrame=prt10.CFrame
  1613. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1614. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1615. blcf=nil
  1616. scfr=nil
  1617. for i=0,1,0.1 do
  1618. swait()
  1619. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1620. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1621. local h = 5
  1622. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1623. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1624. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1625. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1626. scfr = blcf
  1627. elseif not scfr then
  1628. scfr = blcf
  1629. end
  1630. hitbox1.CFrame=prt10.CFrame
  1631. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  1632. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  1633. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  1634. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  1635. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  1636. end
  1637. con1:disconnect()
  1638. hitbox1.Parent=nil
  1639. attack=false
  1640. end
  1641.  
  1642. function attackthree()
  1643. attack=true
  1644. for i=0,1,0.1 do
  1645. swait()
  1646. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  1647. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  1648. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1649. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  1650. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  1651. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  1652. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  1653. end
  1654. hitbox1.Parent=model1
  1655. hitbox1.Size=vt(1,5,1)
  1656. hitbox1.Transparency=1
  1657. hitbox1.CFrame=prt10.CFrame
  1658. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  1659. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  1660. blcf=nil
  1661. scfr=nil
  1662. for i=0,1,0.25 do
  1663. swait()
  1664. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1665. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1666. local h = 5
  1667. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1668. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1669. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1670. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1671. scfr = blcf
  1672. elseif not scfr then
  1673. scfr = blcf
  1674. end
  1675. hitbox1.CFrame=prt10.CFrame
  1676. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  1677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  1678. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  1679. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  1680. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  1681. end
  1682. for i=0,1,0.2 do
  1683. swait()
  1684. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1685. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1686. local h = 5
  1687. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1688. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1689. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1690. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1691. scfr = blcf
  1692. elseif not scfr then
  1693. scfr = blcf
  1694. end
  1695. hitbox1.CFrame=prt10.CFrame
  1696. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  1697. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  1698. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  1699. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  1700. end
  1701. con1:disconnect()
  1702. hitbox1.Parent=nil
  1703. attack=false
  1704. end
  1705.  
  1706. function SpinSlash()
  1707. attack=true
  1708. for i=0,1,0.1 do
  1709. swait()
  1710. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  1711. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  1712. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  1713. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  1714. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  1715. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  1716. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  1717. end
  1718. hitbox1.Parent=model1
  1719. hitbox1.Size=vt(1,5,1)
  1720. hitbox1.Transparency=1
  1721. hitbox1.CFrame=prt10.CFrame
  1722. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
  1723. blcf=nil
  1724. scfr=nil
  1725. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  1726. repeat
  1727. hitbox1.Parent=model1
  1728. hitbox1.Size=vt(1,5,1)
  1729. hitbox1.Transparency=1
  1730. hitbox1.CFrame=prt10.CFrame
  1731. for i=0,1,0.15 do
  1732. swait()
  1733. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1734. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1735. local h = 5
  1736. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1737. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1738. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1739. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1740. scfr = blcf
  1741. elseif not scfr then
  1742. scfr = blcf
  1743. end
  1744. hitbox1.CFrame=prt10.CFrame
  1745. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  1746. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  1747. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  1748. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  1749. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  1750. RH.C0=clerp(RH.C0,RHC0,.3)
  1751. LH.C0=clerp(LH.C0,LHC0,.3)
  1752. end
  1753. for i=0,1,0.05 do
  1754. swait()
  1755. if i>=0.45 and i<=0.5 then
  1756. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  1757. end
  1758. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1759. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1760. local h = 5
  1761. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1762. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1763. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1764. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1765. scfr = blcf
  1766. elseif not scfr then
  1767. scfr = blcf
  1768. end
  1769. hitbox1.CFrame=prt10.CFrame
  1770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  1771. end
  1772. until hold==false
  1773. con1:disconnect()
  1774. hitbox1.Parent=nil
  1775. attack=false
  1776. end
  1777.  
  1778. function BinarySwing()
  1779. attack=true
  1780. for i=0,1,0.1 do
  1781. swait()
  1782. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  1783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  1784. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  1785. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  1786. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  1787. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  1788. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  1789. end
  1790. Humanoid.Jump=true
  1791. bodvol=Instance.new("BodyVelocity")
  1792. bodvol.Parent=RootPart
  1793. bodvol.velocity=vt(0,1,0)*100
  1794. bodvol.P=5000
  1795. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1796. --Torso.Velocity=vt(0,1,0)*100
  1797. hitbox1.Parent=model1
  1798. hitbox1.Size=vt(1,5,1)
  1799. hitbox1.Transparency=1
  1800. hitbox1.CFrame=prt10.CFrame
  1801. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
  1802. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  1803. blcf=nil
  1804. scfr=nil
  1805. for i=0,1,0.1 do
  1806. swait()
  1807. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1808. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1809. local h = 5
  1810. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1811. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1812. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1813. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1814. scfr = blcf
  1815. elseif not scfr then
  1816. scfr = blcf
  1817. end
  1818. hitbox1.CFrame=prt10.CFrame
  1819. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  1820. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  1821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  1822. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  1823. RH.C0=clerp(RH.C0,RHC0,.3)
  1824. LH.C0=clerp(LH.C0,LHC0,.3)
  1825. end
  1826. con1:disconnect()
  1827. hitbox1.Parent=nil
  1828. bodvol.Parent=nil
  1829. attack=false
  1830. end
  1831.  
  1832. function BinaryImpulse()
  1833. attack=true
  1834. if impulse==1 then
  1835. impulse=2
  1836. Humanoid.Jump=true
  1837. for i=0,1,0.2 do
  1838. swait()
  1839. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1840. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1841. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  1842. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1843. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1844. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1845. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1846. end
  1847. blcf=nil
  1848. scfr=nil
  1849. hitbox1.Parent=model1
  1850. hitbox1.Size=vt(1,5,1)
  1851. hitbox1.Transparency=1
  1852. hitbox1.CFrame=prt10.CFrame
  1853. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
  1854. for i=1,3 do
  1855. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  1856. for i=0,1,0.1 do
  1857. swait()
  1858. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1859. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1860. local h = 5
  1861. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1862. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1863. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1864. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1865. scfr = blcf
  1866. elseif not scfr then
  1867. scfr = blcf
  1868. end
  1869. hitbox1.CFrame=prt10.CFrame
  1870. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1871. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1872. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  1873. end
  1874. end
  1875. con1:disconnect()
  1876. hitbox1.Parent=nil
  1877. elseif impulse==2 then
  1878. impulse=3
  1879. Humanoid.Jump=true
  1880. for i=0,1,0.2 do
  1881. swait()
  1882. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  1883. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  1884. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  1885. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  1886. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  1887. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1888. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1889. end
  1890. blcf=nil
  1891. scfr=nil
  1892. hitbox1.Parent=model1
  1893. hitbox1.Size=vt(1,5,1)
  1894. hitbox1.Transparency=1
  1895. hitbox1.CFrame=prt10.CFrame
  1896. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
  1897. for i=1,3 do
  1898. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  1899. for i=0,1,0.1 do
  1900. swait()
  1901. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1902. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1903. local h = 5
  1904. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1905. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1906. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1907. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1908. scfr = blcf
  1909. elseif not scfr then
  1910. scfr = blcf
  1911. end
  1912. hitbox1.CFrame=prt10.CFrame
  1913. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  1914. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  1915. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  1916. end
  1917. end
  1918. con1:disconnect()
  1919. hitbox1.Parent=nil
  1920. elseif impulse==3 then
  1921. impulse=1
  1922. for i=0,1,0.2 do
  1923. swait()
  1924. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  1925. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  1926. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  1927. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  1928. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  1929. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  1930. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  1931. end
  1932. Humanoid.Jump=true
  1933. blcf=nil
  1934. scfr=nil
  1935. hitbox1.Parent=model1
  1936. hitbox1.Size=vt(1,5,1)
  1937. hitbox1.Transparency=1
  1938. hitbox1.CFrame=prt10.CFrame
  1939. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
  1940. for i=1,3 do
  1941. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  1942. for i=0,1,0.1 do
  1943. swait()
  1944. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  1945. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  1946. local h = 5
  1947. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1948. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1949. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1950. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1951. scfr = blcf
  1952. elseif not scfr then
  1953. scfr = blcf
  1954. end
  1955. hitbox1.CFrame=prt10.CFrame
  1956. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  1957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  1958. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  1959. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  1960. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  1961. end
  1962. end
  1963. con1:disconnect()
  1964. hitbox1.Parent=nil
  1965. end
  1966. attack=false
  1967. end
  1968.  
  1969. function Bash()
  1970. attack=true
  1971. for i=0,1,0.1 do
  1972. swait()
  1973. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1974. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  1975. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1976. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  1977. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  1978. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  1979. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  1980. end
  1981. Torso.Velocity=RootPart.CFrame.lookVector*200
  1982. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  1983. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  1984. hit=nil
  1985. for i=1,20 do
  1986. if hit==nil then
  1987. swait()
  1988. end
  1989. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  1990. end
  1991. Torso.Velocity=RootPart.CFrame.lookVector*0
  1992. Humanoid.WalkSpeed=0
  1993. for i=0,1,0.1 do
  1994. swait()
  1995. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  1996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  1997. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  1998. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  1999. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  2000. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  2001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  2002. end
  2003. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  2004. blcf=nil
  2005. scfr=nil
  2006. for i=0,1,0.2 do
  2007. swait()
  2008. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  2009. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  2010. local h = 5
  2011. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2012. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2013. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2014. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2015. scfr = blcf
  2016. elseif not scfr then
  2017. scfr = blcf
  2018. end
  2019. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  2020. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  2021. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  2022. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  2023. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  2024. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  2025. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  2026. end
  2027. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2028. if hit~=nil then
  2029. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  2030. ref.Anchored=true
  2031. ref.CFrame=cf(pos)
  2032. game:GetService("Debris"):AddItem(ref,3)
  2033. for i=1,10 do
  2034. Col=hit.BrickColor
  2035. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2036. groundpart.Anchored=true
  2037. groundpart.Material=hit.Material
  2038. groundpart.CanCollide=true
  2039. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2040. game:GetService("Debris"):AddItem(groundpart,5)
  2041. end
  2042. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  2043. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  2044. MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
  2045. end
  2046. swait(50)
  2047. Humanoid.WalkSpeed=16
  2048. attack=false
  2049. end
  2050.  
  2051. function UnleashTheDemon()
  2052. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Now you're in for a show, you'll be sent to the abyss when i'm done!", "Green")
  2053. wait(2.6)
  2054. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
  2055. attack=true
  2056. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  2057. for i=0,1,0.1 do
  2058. swait()
  2059. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  2060. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  2061. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  2062. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  2063. RH.C0=clerp(RH.C0,RHC0,.4)
  2064. LH.C0=clerp(LH.C0,LHC0,.4)
  2065. end
  2066. wld1.Part1=Torso
  2067. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  2068. for i=0,1,0.1 do
  2069. swait()
  2070. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  2071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  2072. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  2073. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  2074. end
  2075. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  2076. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  2077. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  2078. num=0
  2079. for i=0,1,0.01 do
  2080. swait()
  2081. if num>=10 then
  2082. num=0
  2083. MagicWave(BrickColor.new("Really Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  2084. end
  2085. for i=1,2 do
  2086. if math.random(1,5)==1 then
  2087. MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2088. else
  2089. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
  2090. end
  2091. end
  2092. num=num+1
  2093. end
  2094. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  2095. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  2096. for i=1,4 do
  2097. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  2098. end
  2099. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
  2100. Mode="Demon"
  2101. model2.Parent=Character
  2102. for i=1,#DBlade do
  2103. DBlade[i].Parent=model2
  2104. DBladeWelds[i].Parent=DBlade[1]
  2105. end
  2106. for i=0,1,0.1 do
  2107. swait()
  2108. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  2109. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  2111. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  2112. end
  2113. swait(50)
  2114. attack=false
  2115. end
  2116.  
  2117. function Demonattackone()
  2118. attack=true
  2119. --[[
  2120. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  2121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2122. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  2123. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  2124. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  2125. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  2126. ]]
  2127. for i=0,1,0.1 do
  2128. swait()
  2129. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  2130. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  2131. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  2132. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  2133. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  2134. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  2135. end
  2136. hitbox2.Parent=model2
  2137. hitbox2.Size=vt(1,6,1)
  2138. hitbox2.Transparency=1
  2139. hitbox2.CFrame=prtd7.CFrame
  2140. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2141. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  2142. blcf=nil
  2143. scfr=nil
  2144. for i=0,1,0.08 do
  2145. swait()
  2146. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2147. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2148. local h = 5
  2149. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2150. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2151. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2152. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2153. scfr = blcf
  2154. elseif not scfr then
  2155. scfr = blcf
  2156. end
  2157. hitbox2.CFrame=prtd7.CFrame
  2158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  2159. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  2160. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  2161. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2162. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  2163. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  2164. end
  2165. con1:disconnect()
  2166. hitbox2.Parent=nil
  2167. attack=false
  2168. end
  2169.  
  2170. function Demonattacktwo()
  2171. attack=true
  2172. for i=0,1,0.1 do
  2173. swait()
  2174. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  2175. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  2176. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  2177. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2178. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  2179. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  2180. end
  2181. hitbox2.Parent=model2
  2182. hitbox2.Size=vt(1,6,1)
  2183. hitbox2.Transparency=1
  2184. hitbox2.CFrame=prtd7.CFrame
  2185. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2186. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  2187. blcf=nil
  2188. scfr=nil
  2189. for i=0,1,0.1 do
  2190. swait()
  2191. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2192. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2193. local h = 5
  2194. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2195. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2196. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2197. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2198. scfr = blcf
  2199. elseif not scfr then
  2200. scfr = blcf
  2201. end
  2202. hitbox2.CFrame=prtd7.CFrame
  2203. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  2204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  2205. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  2206. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  2207. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  2208. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  2209. end
  2210. con1:disconnect()
  2211. hitbox2.Parent=nil
  2212. attack=false
  2213. end
  2214.  
  2215. function Demonattackthree()
  2216. attack=true
  2217. for i=0,1,0.1 do
  2218. swait()
  2219. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  2220. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  2221. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  2222. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  2223. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  2224. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  2225. end
  2226. Humanoid.WalkSpeed=0
  2227. hitbox2.Parent=model2
  2228. hitbox2.Size=vt(1,6,1)
  2229. hitbox2.Transparency=1
  2230. hitbox2.CFrame=prtd7.CFrame
  2231. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  2232. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  2233. blcf=nil
  2234. scfr=nil
  2235. for i=0,1,0.15 do
  2236. swait()
  2237. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2238. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2239. local h = 5
  2240. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2241. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2242. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2243. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2244. scfr = blcf
  2245. elseif not scfr then
  2246. scfr = blcf
  2247. end
  2248. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  2249. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  2250. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  2251. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  2252. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  2253. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  2254. if i==0.6 then
  2255. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2256. if hit~=nil then
  2257. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  2258. ref.Anchored=true
  2259. ref.CFrame=cf(pos)
  2260. game:GetService("Debris"):AddItem(ref,3)
  2261. for i=1,5 do
  2262. Col=hit.BrickColor
  2263. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  2264. groundpart.Anchored=true
  2265. groundpart.Material=hit.Material
  2266. groundpart.CanCollide=true
  2267. groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2268. game:GetService("Debris"):AddItem(groundpart,3)
  2269. end
  2270. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  2271. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  2272. MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
  2273. end
  2274. end
  2275. end
  2276. con1:disconnect()
  2277. hitbox2.Parent=nil
  2278. swait(10)
  2279. Humanoid.WalkSpeed=16
  2280. attack=false
  2281. end
  2282.  
  2283. function LetItBuild()
  2284. attack=true
  2285. for i=0,1,0.1 do
  2286. swait()
  2287. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  2288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  2289. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  2290. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2291. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2292. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  2293. end
  2294. local num=0
  2295. local magik=0
  2296. local num2=0
  2297. while holdx==true do
  2298. swait()
  2299. if magik<25 then
  2300. if num>=10 then
  2301. Humanoid:TakeDamage(0)
  2302. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  2303. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  2304. Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
  2305. MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
  2306. MagicBlood(BrickColor.new("Really red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2307. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  2308. magik=magik+1
  2309. num=0
  2310. end
  2311. end
  2312. num=num+1
  2313. num2=num2+magik
  2314. if num2>=50 then
  2315. MagicBlood(BrickColor.new("Really Really black"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
  2316. num2=0
  2317. end
  2318. --MagicBlock(BrickColor.new("Really red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
  2319. end
  2320. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  2321. blcf=nil
  2322. scfr=nil
  2323. hitbox2.Parent=model2
  2324. hitbox2.Size=vt(1,6,1)
  2325. hitbox2.Transparency=1
  2326. hitbox2.CFrame=prtd7.CFrame
  2327. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
  2328. for i=1,3 do
  2329. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  2330. for i=0,1,0.1 do
  2331. swait()
  2332. hitbox2.CFrame=prtd7.CFrame
  2333. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  2334. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  2335. local h = 5
  2336. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  2337. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2338. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  2339. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  2340. scfr = blcf
  2341. elseif not scfr then
  2342. scfr = blcf
  2343. end
  2344. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  2345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  2346. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  2347. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  2348. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  2349. end
  2350. end
  2351. con1:disconnect()
  2352. hitbox2.Parent=nil
  2353. attack=false
  2354. end
  2355.  
  2356. function YourMoveCreep()
  2357. attack=true
  2358. local pers=nil
  2359. for i=0,1,0.1 do
  2360. swait()
  2361. cost=Humanoid.Health-0
  2362. Humanoid:TakeDamage(0)
  2363. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  2364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  2365. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  2366. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  2367. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  2368. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  2369. end
  2370. local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
  2371. blockprt.Anchored=true
  2372. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2373. conbl=blockprt.Touched:connect(function(hit)
  2374. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  2375. hit=hit.Parent.Parent.Torso
  2376. end
  2377. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  2378. pers=hit
  2379. print("HIT")
  2380. guard=false
  2381. end
  2382. end)
  2383. num=0
  2384. while guard==true do
  2385. swait()
  2386. if num>10 then
  2387. num=0
  2388. MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  2389. MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  2390. end
  2391. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2392. num=num+1
  2393. end
  2394. conbl:disconnect()
  2395. blockprt.Parent=nil
  2396. print(pers)
  2397. if pers~=nil then
  2398. for i=0,1,0.1 do
  2399. swait()
  2400. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  2401. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  2402. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  2403. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  2404. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  2405. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  2406. end
  2407. swait(200)
  2408. end
  2409. attack=false
  2410. end
  2411.  
  2412. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  2413. for _,c in pairs(workspace:children()) do
  2414. local hum=c:findFirstChild("Humanoid")
  2415. if hum~=nil then
  2416. local head=c:findFirstChild("Torso")
  2417. if head~=nil then
  2418. local targ=head.Position-Part.Position
  2419. local mag=targ.magnitude
  2420. if mag<=magni and c.Name~=Player.Name then
  2421. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  2422. end
  2423. end
  2424. end
  2425. end
  2426. end
  2427.  
  2428. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2429. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2430. end
  2431.  
  2432. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2433. LastPoint=Point
  2434. function effect(Color,Ref,LP,P1,returnn)
  2435. local effectsmsh=Instance.new("CylinderMesh")
  2436. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2437. effectsmsh.Name="Mesh"
  2438. local effectsg=Instance.new("Part")
  2439. effectsg.formFactor=3
  2440. effectsg.CanCollide=false
  2441. effectsg.Name="Eff"
  2442. effectsg.Locked=true
  2443. effectsg.Anchored=true
  2444. effectsg.Size=Vector3.new(0.5,1,0.5)
  2445. effectsg.Parent=workspace
  2446. effectsmsh.Parent=effectsg
  2447. effectsg.BrickColor=BrickColor.new(Color)
  2448. effectsg.Reflectance=Ref
  2449. local point1=P1
  2450. local mg=(LP.p - point1.p).magnitude
  2451. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2452. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2453. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2454. game:GetService("Debris"):AddItem(effectsg,2)
  2455. if returnn then return effectsg end
  2456. coroutine.resume(coroutine.create(function(Part,Mesh)
  2457. if not returnn then
  2458. for i=0,1,0.05 do
  2459. wait()
  2460. Part.Transparency=1*i
  2461. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  2462. end
  2463. Part.Parent=nil
  2464. end
  2465. end),effectsg,effectsmsh)
  2466. end
  2467.  
  2468. local function CFrameFromTopBack(at, top, back)
  2469. local right = top:Cross(back)
  2470. return CFrame.new(at.x, at.y, at.z,
  2471. right.x, top.x, back.x,
  2472. right.y, top.y, back.y,
  2473. right.z, top.z, back.z)
  2474. end
  2475.  
  2476. function Triangle(a, b, c)
  2477. local edg1 = (c-a):Dot((b-a).unit)
  2478. local edg2 = (a-b):Dot((c-b).unit)
  2479. local edg3 = (b-c):Dot((a-c).unit)
  2480. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2481. a, b, c = a, b, c
  2482. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2483. a, b, c = b, c, a
  2484. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2485. a, b, c = c, a, b
  2486. else
  2487. assert(false, "unreachable")
  2488. end
  2489.  
  2490. local len1 = (c-a):Dot((b-a).unit)
  2491. local len2 = (b-a).magnitude - len1
  2492. local width = (a + (b-a).unit*len1 - c).magnitude
  2493.  
  2494. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2495.  
  2496. local list = {}
  2497.  
  2498. if len2 > 0.01 then
  2499. end
  2500. return unpack(list)
  2501. end
  2502. --[[
  2503. Things for effects
  2504. put the variables in one table
  2505. like effect={brick,interval,i}
  2506. ]]
  2507. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2508. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2509. prt.Anchored=true
  2510. prt.CFrame=cframe
  2511. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2512. game:GetService("Debris"):AddItem(prt,5)
  2513. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  2514. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  2515. for i=0,1,delay do
  2516. wait()
  2517. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2518. Part.Transparency=i
  2519. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2520. end
  2521. Part.Parent=nil
  2522. end),prt,msh)]]
  2523. end
  2524.  
  2525. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2526. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2527. prt.Anchored=true
  2528. prt.CFrame=cframe
  2529. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2530. game:GetService("Debris"):AddItem(prt,5)
  2531. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2532. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2533. local wld=nil
  2534. for i=0,1,delay do
  2535. wait()
  2536. Part.CFrame=Part.CFrame
  2537. Part.Transparency=i
  2538. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2539. end
  2540. Part.Parent=nil
  2541. end),prt,msh)]]
  2542. end
  2543.  
  2544. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2545. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2546. prt.Anchored=true
  2547. prt.CFrame=cframe
  2548. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2549. game:GetService("Debris"):AddItem(prt,5)
  2550. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2551. end
  2552.  
  2553. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2554. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2555. prt.Anchored=true
  2556. prt.CFrame=cframe
  2557. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  2558. game:GetService("Debris"):AddItem(prt,5)
  2559. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2560. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2561. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2562. for i=0,1,delay do
  2563. wait()
  2564. Part.CFrame=Part.CFrame
  2565. Part.Transparency=i
  2566. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2567. end
  2568. Part.Parent=nil
  2569. end),prt,msh)]]
  2570. end
  2571.  
  2572. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2573. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2574. prt.Anchored=true
  2575. prt.CFrame=cframe
  2576. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2577. game:GetService("Debris"):AddItem(prt,5)
  2578. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  2579. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  2580. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  2581. for i=0,1,delay do
  2582. wait()
  2583. Part.CFrame=Part.CFrame
  2584. Part.Transparency=i
  2585. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2586. end
  2587. Part.Parent=nil
  2588. end),prt,msh)]]
  2589. end
  2590.  
  2591. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2592. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2593. prt.Anchored=true
  2594. prt.CFrame=cframe
  2595. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2596. game:GetService("Debris"):AddItem(prt,5)
  2597. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  2598. end
  2599.  
  2600. function ElecEffect(cff,x,y,z)
  2601. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  2602. prt.Anchored=true
  2603. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2604. prt.CFrame=cf(prt.Position)
  2605. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2606. game:GetService("Debris"):AddItem(prt,2)
  2607. xval=math.random()/2
  2608. yval=math.random()/2
  2609. zval=math.random()/2
  2610. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2611. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  2612. end
  2613.  
  2614. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2615. --[[p0=pos1
  2616. p1=pos2
  2617. tym=times
  2618. ofs=offset
  2619. col=color
  2620. th=size
  2621. tra=transparency
  2622. last=lastingtime]]
  2623. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2624. for i=1,tym do
  2625. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  2626. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  2627. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2628. if tym == i then
  2629. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2630. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2631. else
  2632. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2633. end
  2634. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  2635. end
  2636. end
  2637.  
  2638. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2639. if hit.Parent==nil then
  2640. return
  2641. end
  2642. h=hit.Parent:FindFirstChild("Humanoid")
  2643. for _,v in pairs(hit.Parent:children()) do
  2644. if v:IsA("Humanoid") then
  2645. h=v
  2646. end
  2647. end
  2648. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2649. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2650. end
  2651. if hit.Parent.className=="Hat" then
  2652. hit=hit.Parent.Parent:findFirstChild("Head")
  2653. end
  2654. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  2655. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2656. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2657. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2658. return
  2659. end]]
  2660. -- hs(hit,1.2)
  2661. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  2662. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  2663. c=Instance.new("ObjectValue")
  2664. c.Name="creator"
  2665. c.Value=game:service("Players").LocalPlayer
  2666. c.Parent=h
  2667. game:GetService("Debris"):AddItem(c,.5)
  2668. Damage=math.random(minim,maxim)
  2669. if Mode=="Demon" then
  2670. Damage=Damage+damcount
  2671. end
  2672. -- h:TakeDamage()
  2673. blocked=false
  2674. block=hit.Parent:findFirstChild("Block")
  2675. if block~=nil then
  2676. print(block.className)
  2677. if block.className=="NumberValue" then
  2678. if block.Value>0 then
  2679. blocked=true
  2680. if decreaseblock==nil then
  2681. block.Value=block.Value-1
  2682. end
  2683. end
  2684. end
  2685. if block.className=="IntValue" then
  2686. if block.Value>0 then
  2687. blocked=true
  2688. if decreaseblock~=nil then
  2689. block.Value=block.Value-1
  2690. end
  2691. end
  2692. end
  2693. end
  2694. if blocked==false then
  2695. -- h:TakeDamage(Damage)
  2696. h.Health=h.Health-Damage
  2697. else
  2698. h.Health=h.Health-(Damage/0)
  2699. end
  2700. if Type=="Knockdown" then
  2701. hum=hit.Parent.Humanoid
  2702. hum.PlatformStand=true
  2703. coroutine.resume(coroutine.create(function(HHumanoid)
  2704. swait(1)
  2705. HHumanoid.PlatformStand=false
  2706. end),hum)
  2707. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2708. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2709. local bodvol=Instance.new("BodyVelocity")
  2710. bodvol.velocity=angle*knockback
  2711. bodvol.P=5000
  2712. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2713. bodvol.Parent=hit
  2714. rl=Instance.new("BodyAngularVelocity")
  2715. rl.P=3000
  2716. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2717. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2718. rl.Parent=hit
  2719. game:GetService("Debris"):AddItem(bodvol,.5)
  2720. game:GetService("Debris"):AddItem(rl,.5)
  2721. elseif Type=="Normal" then
  2722. vp=Instance.new("BodyVelocity")
  2723. vp.P=500
  2724. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2725. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2726. if KnockbackType==1 then
  2727. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  2728. elseif KnockbackType==2 then
  2729. vp.velocity=Property.CFrame.lookVector*knockback
  2730. end
  2731. if knockback>-100 then
  2732. vp.Parent=hit.Parent.Torso
  2733. end
  2734. game:GetService("Debris"):AddItem(vp,.5)
  2735. elseif Type=="Lifesteal" then
  2736. for i=1,5 do
  2737. MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
  2738. end
  2739. vp=Instance.new("BodyVelocity")
  2740. vp.P=500
  2741. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2742. if KnockbackType==1 then
  2743. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  2744. elseif KnockbackType==2 then
  2745. vp.velocity=Property.CFrame.lookVector*knockback
  2746. end
  2747. if knockback>-250 then
  2748. vp.Parent=hit.Parent.Torso
  2749. end
  2750. game:GetService("Debris"):AddItem(vp,.5)
  2751. Heal=math.ceil(Damage/25100)
  2752. Humanoid.Health=Humanoid.Health+Heal
  2753. elseif Type=="Up" then
  2754. local bodyVelocity=Instance.new("BodyVelocity")
  2755. bodyVelocity.velocity=vt(0,30,0)
  2756. bodyVelocity.P=5000
  2757. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2758. bodyVelocity.Parent=hit
  2759. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2760. rl=Instance.new("BodyAngularVelocity")
  2761. rl.P=3000
  2762. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2763. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2764. rl.Parent=hit
  2765. game:GetService("Debris"):AddItem(rl,.5)
  2766. elseif Type=="Snare" then
  2767. bp=Instance.new("BodyPosition")
  2768. bp.P=2000
  2769. bp.D=100
  2770. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2771. bp.position=hit.Parent.Torso.Position
  2772. bp.Parent=hit.Parent.Torso
  2773. game:GetService("Debris"):AddItem(bp,1)
  2774. elseif Type=="Charge" then
  2775. Charge=Charge+1
  2776. coroutine.resume(coroutine.create(function(Part)
  2777. swait(30)
  2778. for i=1,5 do
  2779. swait(5)
  2780. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  2781. MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
  2782. newdam=math.random(1,5)
  2783. if blocked==false then
  2784. h:TakeDamage()
  2785. else
  2786. h:TakeDamage(newdam/0)
  2787. end
  2788. end
  2789. end),hit)
  2790. end
  2791. debounce=Instance.new("BoolValue")
  2792. debounce.Name="DebounceHit"
  2793. debounce.Parent=hit.Parent
  2794. debounce.Value=true
  2795. game:GetService("Debris"):AddItem(debounce,Delay)
  2796. c=Instance.new("ObjectValue")
  2797. c.Name="creator"
  2798. c.Value=Player
  2799. c.Parent=h
  2800. game:GetService("Debris"):AddItem(c,.5)
  2801. CRIT=false
  2802. hitDeb=true
  2803. AttackPos=6
  2804. end
  2805. end
  2806.  
  2807. showDamage=function(Char,Dealt,du,Color)
  2808. m=Instance.new("Model")
  2809. m.Name=tostring(Dealt)
  2810. h=Instance.new("Humanoid")
  2811. h.Health=0
  2812. h.MaxHealth=0
  2813. h.Parent=m
  2814. c=Instance.new("Part")
  2815. c.Transparency=1
  2816. c.BrickColor=Color
  2817. c.Name="Head"
  2818. c.TopSurface=0
  2819. c.BottomSurface=0
  2820. c.formFactor="Plate"
  2821. c.Size=Vector3.new(1,.4,1)
  2822. ms=Instance.new("CylinderMesh")
  2823. ms.Scale=Vector3.new(.8,.8,.8)
  2824. if CRIT==true then
  2825. ms.Scale=Vector3.new(1,1.25,1)
  2826. end
  2827. ms.Parent=c
  2828. c.Reflectance=0
  2829. Instance.new("BodyGyro").Parent=c
  2830. c.Parent=m
  2831. if Char:findFirstChild("Head")~=nil then
  2832. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2833. elseif Char.Parent:findFirstChild("Head")~=nil then
  2834. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2835. end
  2836. f=Instance.new("BodyPosition")
  2837. f.P=2000
  2838. f.D=100
  2839. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2840. f.position=c.Position+Vector3.new(0,3,0)
  2841. f.Parent=c
  2842. game:GetService("Debris"):AddItem(m,.5+du)
  2843. c.CanCollide=false
  2844. m.Parent=workspace
  2845. c.CanCollide=false
  2846. end
  2847.  
  2848. combo=0
  2849. function ob1d(mouse)
  2850. hold=true
  2851. if attack==true or equipped==false then return end
  2852. if Mode=="Binary" then
  2853. idle=0
  2854. if Anim=="Run" then
  2855. SpinSlash()
  2856. else
  2857. if combo==0 then
  2858. combo=1
  2859. attackone()
  2860. elseif combo==1 then
  2861. combo=2
  2862. attacktwo()
  2863. elseif combo==2 then
  2864. combo=0
  2865. attackthree()
  2866. end
  2867. end
  2868. else
  2869. if combo==0 then
  2870. combo=1
  2871. Demonattackone()
  2872. elseif combo==1 then
  2873. combo=2
  2874. Demonattacktwo()
  2875. elseif combo==2 then
  2876. combo=0
  2877. Demonattackthree()
  2878. end
  2879. end
  2880. coroutine.resume(coroutine.create(function()
  2881. for i=1,20 do
  2882. if attack==false then
  2883. swait()
  2884. end
  2885. end
  2886. if attack==false then
  2887. combo=0
  2888. --equipanim()
  2889. end
  2890. end))
  2891. end
  2892.  
  2893. function ob1u(mouse)
  2894. hold = false
  2895. end
  2896.  
  2897. buttonhold = false
  2898.  
  2899. eul=0
  2900. holdx=false
  2901. equipped=false
  2902. function key(key)
  2903. if key=="c" then
  2904. if guard==true then
  2905. guard=false
  2906. else
  2907. guard=true
  2908. end
  2909. end
  2910. if key=="x" then
  2911. holdx=true
  2912. end
  2913. if attack==true then return end
  2914. if key=="f" then
  2915. if equipped==false then
  2916. equipped=true
  2917. RSH=ch.Torso["Right Shoulder"]
  2918. LSH=ch.Torso["Left Shoulder"]
  2919. --
  2920. RSH.Parent=nil
  2921. LSH.Parent=nil
  2922. --
  2923. RW.Name="Right Shoulder"
  2924. RW.Part0=ch.Torso
  2925. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2926. RW.C1=cf(0, 0.5, 0)
  2927. RW.Part1=ch["Right Arm"]
  2928. RW.Parent=ch.Torso
  2929. --
  2930. LW.Name="Left Shoulder"
  2931. LW.Part0=ch.Torso
  2932. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2933. LW.C1=cf(0, 0.5, 0)
  2934. LW.Part1=ch["Left Arm"]
  2935. LW.Parent=ch.Torso
  2936. --
  2937. equipanim()
  2938. else
  2939. equipped=false
  2940. hideanim()
  2941. swait(0)
  2942. RW.Parent=nil
  2943. LW.Parent=nil
  2944. RSH.Parent=player.Character.Torso
  2945. LSH.Parent=player.Character.Torso
  2946. end
  2947. end
  2948. if equipped==false then return end
  2949. if Mode=="Binary" then
  2950. if key=="q" then
  2951. idle=500
  2952. end
  2953. if key=="z" and hitfloor~=nil then
  2954. BinarySwing()
  2955. end
  2956. if key=="x" then
  2957. BinaryImpulse()
  2958. end
  2959. if key=="c" then
  2960. Bash()
  2961. end
  2962. if key=="v" then
  2963. UnleashTheDemon()
  2964. end
  2965. end
  2966. if Mode=="Demon" then
  2967. if key=="x" then
  2968. LetItBuild()
  2969. end
  2970. if key=="c" then
  2971. YourMoveCreep()
  2972. end
  2973. end
  2974. if key=="0" then
  2975. Humanoid.WalkSpeed=(180)
  2976. end
  2977. end
  2978.  
  2979. function key2(key)
  2980. if key=="0" then
  2981. Humanoid.WalkSpeed=16
  2982. end
  2983. if key=="x" then
  2984. holdx=false
  2985. end
  2986. end
  2987.  
  2988. function s(mouse)
  2989. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2990. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2991. mouse.KeyDown:connect(key)
  2992. mouse.KeyUp:connect(key2)
  2993.  
  2994. player=Player
  2995. ch=Character
  2996. MMouse=mouse
  2997. end
  2998.  
  2999. function ds(mouse)
  3000. end
  3001.  
  3002. Bin.Selected:connect(s)
  3003. Bin.Deselected:connect(ds)
  3004. print("Fixer the Demon Mercenary loaded.")
  3005.  
  3006. local thenum=0
  3007. while true do
  3008. swait()
  3009. if Mode=="Demon" then
  3010. if thenum>=5 then
  3011. ElecEffect(prtd7.CFrame,2,4,2)
  3012. thenum=0
  3013. end
  3014. thenum=thenum+1
  3015. for _,c in pairs(Character:children()) do
  3016. for _,v in pairs(c:children()) do
  3017. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  3018. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  3019. v.Parent=nil
  3020. end
  3021. end
  3022. end
  3023. end
  3024. end
  3025. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3026. local velderp=RootPart.Velocity.y
  3027. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3028. if equipped==true then
  3029. if Anim=="Idle" and attack==false and Mode=="Binary" then
  3030. idle=idle+1
  3031. else
  3032. idle=0
  3033. end
  3034. if idleanim>=0.3 then
  3035. idleanim2=true
  3036. elseif idleanim<=0 then
  3037. idleanim2=false
  3038. end
  3039. if idleanim2==false then
  3040. if Anim=="Walk" then
  3041. idleanim=idleanim+0.005
  3042. elseif Anim=="Idle" then
  3043. idleanim=idleanim+0.003
  3044. end
  3045. else
  3046. if Anim=="Walk" then
  3047. idleanim=idleanim-0.005
  3048. elseif Anim=="Idle" then
  3049. idleanim=idleanim-0.003
  3050. end
  3051. end
  3052. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3053. Anim="Jump"
  3054. if attack==false and Mode=="Binary" then
  3055. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3056. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  3057. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3059. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3060. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  3061. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  3062. end
  3063. if attack==false and Mode=="Demon" then
  3064. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3065. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3066. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  3067. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  3068. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  3069. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  3070. end
  3071. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3072. Anim="Fall"
  3073. if attack==false and Mode=="Binary" then
  3074. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  3075. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  3076. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  3077. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  3078. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3079. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3080. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3081. end
  3082. if attack==false and Mode=="Demon" then
  3083. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  3084. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  3085. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  3086. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  3087. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  3088. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  3089. end
  3090. elseif torvel<1 and hitfloor~=nil then
  3091. if Anim=="Fall" then
  3092. if velderp<=-70 then
  3093. coroutine.resume(coroutine.create(function()
  3094. Stomp()
  3095. end))
  3096. end
  3097. end
  3098. Anim="Idle"
  3099. if idle<=500 then
  3100. if attack==false and Mode=="Binary" then
  3101. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  3102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  3103. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  3104. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  3105. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  3106. RH.C0=clerp(RH.C0,RHC0,.2)
  3107. LH.C0=clerp(LH.C0,LHC0,.2)
  3108. end
  3109. if attack==false and Mode=="Demon" then
  3110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  3111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  3112. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  3113. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  3114. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  3115. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  3116. end
  3117. else
  3118. if attack==false and Mode=="Binary" then
  3119. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  3120. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  3121. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  3122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  3123. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  3124. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  3125. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  3126. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  3127. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  3128. end
  3129. end
  3130. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3131. if Anim=="Fall" then
  3132. if velderp<=-70 then
  3133. coroutine.resume(coroutine.create(function()
  3134. Stomp()
  3135. end))
  3136. end
  3137. end
  3138. Anim="Walk"
  3139. if attack==false and Mode=="Binary" then
  3140. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  3141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3142. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3143. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3144. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  3145. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  3146. RH.C0=clerp(RH.C0,RHC0,.3)
  3147. LH.C0=clerp(LH.C0,LHC0,.3)
  3148. end
  3149. if attack==false and Mode=="Demon" then
  3150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  3151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  3152. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  3153. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  3154. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  3155. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  3156. end
  3157. elseif torvel>=22 and hitfloor~=nil then
  3158. if Anim=="Fall" then
  3159. if velderp<=-70 then
  3160. coroutine.resume(coroutine.create(function()
  3161. Stomp()
  3162. end))
  3163. end
  3164. end
  3165. Anim="Run"
  3166. if attack==false and Mode=="Binary" then
  3167. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  3168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  3169. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  3170. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  3171. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  3172. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  3173. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  3174. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  3175. end
  3176. if attack==false and Mode=="Demon" then
  3177. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  3178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  3179. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  3180. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  3181. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  3182. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  3183. end
  3184. end
  3185. end
  3186. if #Effects>0 then
  3187. --table.insert(Effects,{prt,"Block1",delay})
  3188. for e=1,#Effects do
  3189. if Effects[e]~=nil then
  3190. --for j=1,#Effects[e] do
  3191. local Thing=Effects[e]
  3192. if Thing~=nil then
  3193. local Part=Thing[1]
  3194. local Mode=Thing[2]
  3195. local Delay=Thing[3]
  3196. local IncX=Thing[4]
  3197. local IncY=Thing[5]
  3198. local IncZ=Thing[6]
  3199. if Thing[1].Transparency<=1 then
  3200. if Thing[2]=="Block1" then
  3201. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3202. Mesh=Thing[1].Mesh
  3203. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3204. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3205. elseif Thing[2]=="Cylinder" then
  3206. Mesh=Thing[1].Mesh
  3207. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3208. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3209. elseif Thing[2]=="Blood" then
  3210. Mesh=Thing[1].Mesh
  3211. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3212. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3213. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3214. elseif Thing[2]=="Elec" then
  3215. Mesh=Thing[1].Mesh
  3216. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3217. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3218. elseif Thing[2]=="Disappear" then
  3219. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3220. end
  3221. else
  3222. Part.Parent=nil
  3223. table.remove(Effects,e)
  3224. end
  3225. end
  3226. --end
  3227. end
  3228. end
  3229. end
  3230. end
  3231.  
  3232.  
  3233. plr.Chatted:connect(message)
  3234.  
  3235.  
  3236. --[pastebin url: http://pastebin.com/raw/vJmtAYPe]]--
  3237.  
  3238. function clerp(c1,c2,al)
  3239. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3240. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  3241. for i,v in pairs(com1) do
  3242. com1[i] = v+(com2[i]-v)*al
  3243. end
  3244. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  3245. end
  3246.  
  3247. ff = Instance.new("ForceField")
  3248. Value = Instance.new("BoolValue", char)
  3249. gui = Instance.new("BillboardGui", head)
  3250. fra = Instance.new("TextLabel", gui)
  3251. plr = game:service'Players'.LocalPlayer
  3252. plrgui = plr:findFirstChild'PlayerGui'
  3253. plrmouse = plr:GetMouse()
  3254. char = plr.Character
  3255. humanoid = char:findFirstChild("Humanoid")
  3256. torso = char:findFirstChild("Torso")
  3257. head = char.Head
  3258. humanoid.Health = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3259. humanoid.WalkSpeed = 25
  3260. ra = char:findFirstChild("Right Arm")
  3261. la = char:findFirstChild("Left Arm")
  3262. rl = char:findFirstChild("Right Leg")
  3263. ll = char:findFirstChild("Left Leg")
  3264. rs = torso:findFirstChild("Right Shoulder")
  3265. ls = torso:findFirstChild("Left Shoulder")
  3266. rh = torso:findFirstChild("Right Hip")
  3267. lh = torso:findFirstChild("Left Hip")
  3268. neck = torso:findFirstChild("Neck")
  3269. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  3270. rootpart = char:findFirstChild("HumanoidRootPart")
  3271. camera = workspace.CurrentCamera
  3272. anim = char:findFirstChild("Animate")
  3273.  
  3274.  
  3275. local rm = Instance.new("Weld")
  3276. rm.C0 = CFrame.new(1.5, 0.5, 0)
  3277. rm.C1 = CFrame.new(0, 0.5, 0)
  3278. rm.Part0 = torso
  3279. rm.Part1 = ra
  3280. rm.Name = 'Right Shoulder'
  3281.  
  3282. local lm = Instance.new("Weld")
  3283. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  3284. lm.C1 = CFrame.new(0, 0.5, 0)
  3285. lm.Part0 = torso
  3286. lm.Part1 = la
  3287. lm.Name = 'Left Shoulder'
  3288.  
  3289. local tool = Instance.new('HopperBin', plr.Backpack)
  3290. tool.Name = 'Dual Blue Gusters'
  3291.  
  3292. function scan(parent)
  3293. local parts,last = {}
  3294. for _,v in pairs(parent:GetChildren()) do
  3295. if (v:IsA("BasePart")) then
  3296. v.Anchored = true
  3297. if (last) then
  3298. local w = Instance.new("Weld")
  3299. w.Name = ("%s_Weld"):format(v.Name)
  3300. w.Part0,w.Part1 = last,v
  3301. w.C0 = last.CFrame:inverse()
  3302. w.C1 = v.CFrame:inverse()
  3303. w.Parent = last
  3304. end
  3305. last = v
  3306. table.insert(parts,v)
  3307. end
  3308. scan(v)
  3309. end
  3310. for _,v in pairs(parts) do
  3311. v.Anchored = false
  3312. v.Locked = true
  3313. v.CanCollide = false
  3314. end
  3315. end
  3316.  
  3317. --1-Torso
  3318. holsters=Instance.new("Model")
  3319. holsters.Name="Torso"
  3320. holsters.Parent=char
  3321. --2-HolsterWeldTo2
  3322. obj2=Instance.new("Part")
  3323. obj2.CFrame=CFrame.new(Vector3.new(14.8519955,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3324. obj2.FormFactor=Enum.FormFactor.Custom
  3325. obj2.LeftSurface=10
  3326. obj2.Transparency=1
  3327. obj2.TopSurface=10
  3328. obj2.RightSurface=10
  3329. obj2.Material="SmoothPlastic"
  3330. obj2.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  3331. obj2.FrontSurface=10
  3332. obj2.BottomSurface=10
  3333. obj2.BackSurface=10
  3334. obj2.BrickColor=BrickColor.new("Really blue")
  3335. obj2.Name="HolsterWeldTo2"
  3336. obj2.Parent=holsters
  3337. --3-Mesh
  3338. obj3=Instance.new("BlockMesh")
  3339. obj3.Scale=Vector3.new(0.999499977,1,1)
  3340. obj3.Parent=obj2
  3341. --4-Belt
  3342. obj4=Instance.new("Part")
  3343. obj4.CFrame=CFrame.new(Vector3.new(13.6000061,1.49000156,35.8999977)) * CFrame.Angles(-1.4901162970204e-008,0,-0)
  3344. obj4.FormFactor=Enum.FormFactor.Custom
  3345. obj4.LeftSurface=10
  3346. obj4.TopSurface=10
  3347. obj4.RightSurface=10
  3348. obj4.Material="SmoothPlastic"
  3349. obj4.Size=Vector3.new(2,0.200000003,1)
  3350. obj4.FrontSurface=10
  3351. obj4.BottomSurface=10
  3352. obj4.BackSurface=10
  3353. obj4.BrickColor=BrickColor.new("Really blue")
  3354. obj4.Name="Belt"
  3355. obj4.Parent=holsters
  3356. --5-Mesh
  3357. obj5=Instance.new("BlockMesh")
  3358. obj5.Scale=Vector3.new(1.10000002,1,1.10000002)
  3359. obj5.Parent=obj4
  3360. --6-Hold2
  3361. obj6=Instance.new("Part")
  3362. obj6.CFrame=CFrame.new(Vector3.new(14.8000011,1.0950017,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  3363. obj6.FormFactor=Enum.FormFactor.Custom
  3364. obj6.LeftSurface=10
  3365. obj6.TopSurface=10
  3366. obj6.RightSurface=10
  3367. obj6.Material="SmoothPlastic"
  3368. obj6.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  3369. obj6.FrontSurface=10
  3370. obj6.BottomSurface=10
  3371. obj6.BackSurface=10
  3372. obj6.BrickColor=BrickColor.new("Really blue")
  3373. obj6.Name="Hold2"
  3374. obj6.Parent=holsters
  3375. --7-TorsoWeld
  3376. obj7=Instance.new("Part")
  3377. obj7.CFrame=CFrame.new(Vector3.new(13.6000061,1.99000168,35.8999939)) * CFrame.Angles(-0,0,-0)
  3378. obj7.FormFactor=Enum.FormFactor.Custom
  3379. obj7.LeftSurface=10
  3380. obj7.Transparency=1
  3381. obj7.TopSurface=10
  3382. obj7.RightSurface=10
  3383. obj7.Size=Vector3.new(2,2,1)
  3384. obj7.FrontSurface=10
  3385. obj7.BottomSurface=10
  3386. obj7.BackSurface=10
  3387. obj7.BrickColor=BrickColor.new("Bright blue")
  3388. obj7.Name="TorsoWeld"
  3389. obj7.Parent=holsters
  3390. --8-HolsterWeldTo
  3391. obj8=Instance.new("Part")
  3392. obj8.CFrame=CFrame.new(Vector3.new(12.342,1.44200003,35.6479988)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3393. obj8.FormFactor=Enum.FormFactor.Custom
  3394. obj8.LeftSurface=10
  3395. obj8.Transparency=1
  3396. obj8.TopSurface=10
  3397. obj8.RightSurface=10
  3398. obj8.Material="SmoothPlastic"
  3399. obj8.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  3400. obj8.FrontSurface=10
  3401. obj8.BottomSurface=10
  3402. obj8.BackSurface=10
  3403. obj8.BrickColor=BrickColor.new("Really blue")
  3404. obj8.Name="HolsterWeldTo"
  3405. obj8.Parent=holsters
  3406. --9-Mesh
  3407. obj9=Instance.new("BlockMesh")
  3408. obj9.Scale=Vector3.new(0.999499977,1,1)
  3409. obj9.Parent=obj8
  3410. --10-Hold
  3411. obj10=Instance.new("Part")
  3412. obj10.CFrame=CFrame.new(Vector3.new(12.4000053,1.09500158,35.6999893)) * CFrame.Angles(0.26179936528206,0,-0)
  3413. obj10.FormFactor=Enum.FormFactor.Custom
  3414. obj10.LeftSurface=10
  3415. obj10.TopSurface=10
  3416. obj10.RightSurface=10
  3417. obj10.Material="SmoothPlastic"
  3418. obj10.Size=Vector3.new(0.400000006,1.00999999,0.600000024)
  3419. obj10.FrontSurface=10
  3420. obj10.BottomSurface=10
  3421. obj10.BackSurface=10
  3422. obj10.BrickColor=BrickColor.new("Really blue")
  3423. obj10.Name="Hold"
  3424. obj10.Parent=holsters
  3425. holsters:MakeJoints()
  3426. scan(holsters)
  3427.  
  3428. --1-M1911
  3429. gun=Instance.new("Model")
  3430. gun.Name="Blue Guster"
  3431. gun.Parent=char
  3432. --2-Handle
  3433. obj2=Instance.new("Part")
  3434. obj2.CFrame=CFrame.new(Vector3.new(12.3420238,1.86332655,36.3927727)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  3435. obj2.FormFactor=Enum.FormFactor.Custom
  3436. obj2.LeftSurface=10
  3437. obj2.TopSurface=10
  3438. obj2.RightSurface=10
  3439. obj2.Material=Enum.Material.Neon
  3440. obj2.Size=Vector3.new(0.200000003,0.99999994,0.400000036)
  3441. obj2.FrontSurface=10
  3442. obj2.BottomSurface=10
  3443. obj2.BackSurface=10
  3444. obj2.BrickColor=BrickColor.new("Really black")
  3445. obj2.Name="Handle"
  3446. obj2.Parent=gun
  3447. --3-Decor
  3448. obj3=Instance.new("Part")
  3449. obj3.CFrame=CFrame.new(Vector3.new(12.3420143,2.28510284,35.9773712)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  3450. obj3.FormFactor=Enum.FormFactor.Custom
  3451. obj3.LeftSurface=10
  3452. obj3.TopSurface=10
  3453. obj3.RightSurface=10
  3454. obj3.Material="SmoothPlastic"
  3455. obj3.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3456. obj3.FrontSurface=10
  3457. obj3.BottomSurface=10
  3458. obj3.BackSurface=10
  3459. obj3.BrickColor=BrickColor.new("Really blue")
  3460. obj3.Name="Decor"
  3461. obj3.Parent=gun
  3462. --4-Mesh
  3463. obj4=Instance.new("BlockMesh")
  3464. obj4.Offset=Vector3.new(0,0.00999999978,0.0399999991)
  3465. obj4.Scale=Vector3.new(0.699999988,0.200000003,0.800000012)
  3466. obj4.Parent=obj3
  3467. --5-Decor
  3468. obj5=Instance.new("Part")
  3469. obj5.CFrame=CFrame.new(Vector3.new(12.3420143,1.46716928,35.8617401)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3470. obj5.FormFactor=Enum.FormFactor.Custom
  3471. obj5.LeftSurface=10
  3472. obj5.TopSurface=10
  3473. obj5.RightSurface=10
  3474. obj5.Material="SmoothPlastic"
  3475. obj5.Size=Vector3.new(0.200000003,0.400000006,0.200000003)
  3476. obj5.FrontSurface=10
  3477. obj5.BottomSurface=10
  3478. obj5.BackSurface=10
  3479. obj5.BrickColor=BrickColor.new("Really blue")
  3480. obj5.Name="Decor"
  3481. obj5.Parent=gun
  3482. --6-Mesh
  3483. obj6=Instance.new("BlockMesh")
  3484. obj6.Scale=Vector3.new(0.600000024,1,0.200000003)
  3485. obj6.Parent=obj5
  3486. --7-Decor
  3487. obj7=Instance.new("Part")
  3488. obj7.CFrame=CFrame.new(Vector3.new(12.3420124,1.55429673,36.0928192)) * CFrame.Angles(0.45686540007591,-1.1175870895386e-008,3.141592502594)
  3489. obj7.FormFactor=Enum.FormFactor.Custom
  3490. obj7.LeftSurface=10
  3491. obj7.TopSurface=10
  3492. obj7.RightSurface=10
  3493. obj7.Material="SmoothPlastic"
  3494. obj7.Size=Vector3.new(0.200000003,0.310000002,0.200000003)
  3495. obj7.FrontSurface=10
  3496. obj7.BottomSurface=10
  3497. obj7.BackSurface=10
  3498. obj7.BrickColor=BrickColor.new("Really blue")
  3499. obj7.Name="Decor"
  3500. obj7.Parent=gun
  3501. --8-Mesh
  3502. obj8=Instance.new("BlockMesh")
  3503. obj8.Scale=Vector3.new(0.600000024,1,0.200000003)
  3504. obj8.Parent=obj7
  3505. --9-Decor
  3506. obj9=Instance.new("Part")
  3507. obj9.CFrame=CFrame.new(Vector3.new(12.3420258,2.21372294,35.8965569)) * CFrame.Angles(0.76370096206665,-1.4901161193848e-008,-3.1415927410126)
  3508. obj9.FormFactor=Enum.FormFactor.Custom
  3509. obj9.LeftSurface=10
  3510. obj9.TopSurface=10
  3511. obj9.RightSurface=10
  3512. obj9.Material="SmoothPlastic"
  3513. obj9.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3514. obj9.FrontSurface=10
  3515. obj9.BottomSurface=10
  3516. obj9.BackSurface=10
  3517. obj9.BrickColor=BrickColor.new("Really blue")
  3518. obj9.Name="Decor"
  3519. obj9.Parent=gun
  3520. --10-Mesh
  3521. obj10=Instance.new("BlockMesh")
  3522. obj10.Scale=Vector3.new(0.400000006,0.200000003,1)
  3523. obj10.Parent=obj9
  3524. --11-Decor
  3525. obj11=Instance.new("Part")
  3526. obj11.CFrame=CFrame.new(Vector3.new(12.3420229,1.8633275,36.2927704)) * CFrame.Angles(1.5707963705063,-4.4703483581543e-008,3.1415927410126)
  3527. obj11.FormFactor=Enum.FormFactor.Custom
  3528. obj11.LeftSurface=10
  3529. obj11.TopSurface=10
  3530. obj11.RightSurface=10
  3531. obj11.Material="SmoothPlastic"
  3532. obj11.Size=Vector3.new(0.200000003,1.20000005,0.400000036)
  3533. obj11.FrontSurface=10
  3534. obj11.BottomSurface=10
  3535. obj11.BackSurface=10
  3536. obj11.BrickColor=BrickColor.new("Really blue")
  3537. obj11.Name="Decor"
  3538. obj11.Parent=gun
  3539. --12-Mesh
  3540. obj12=Instance.new("BlockMesh")
  3541. obj12.Offset=Vector3.new(0,-0.0700000003,0)
  3542. obj12.Scale=Vector3.new(0.995000005,0.949999988,1.20000005)
  3543. obj12.Parent=obj11
  3544. --13-Decor
  3545. obj13=Instance.new("Part")
  3546. obj13.CFrame=CFrame.new(Vector3.new(12.3420258,2.30202365,35.8373909)) * CFrame.Angles(1.756756901741,-1.0430812835693e-007,3.1415927410126)
  3547. obj13.FormFactor=Enum.FormFactor.Custom
  3548. obj13.LeftSurface=10
  3549. obj13.TopSurface=10
  3550. obj13.RightSurface=10
  3551. obj13.Material="SmoothPlastic"
  3552. obj13.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3553. obj13.FrontSurface=10
  3554. obj13.BottomSurface=10
  3555. obj13.BackSurface=10
  3556. obj13.BrickColor=BrickColor.new("Really blue")
  3557. obj13.Name="Decor"
  3558. obj13.Parent=gun
  3559. --14-Mesh
  3560. obj14=Instance.new("BlockMesh")
  3561. obj14.Scale=Vector3.new(0.400000006,0.200000003,0.400000006)
  3562. obj14.Parent=obj13
  3563. --15-BulletCase
  3564. obj15=Instance.new("Part")
  3565. obj15.CFrame=CFrame.new(Vector3.new(12.3420229,1.44165683,35.6482697)) * CFrame.Angles(1.8325955867767,-1.4901161193848e-008,-3.1415927410126)
  3566. obj15.FormFactor=Enum.FormFactor.Custom
  3567. obj15.LeftSurface=10
  3568. obj15.TopSurface=10
  3569. obj15.RightSurface=10
  3570. obj15.Material="SmoothPlastic"
  3571. obj15.Size=Vector3.new(0.200000003,0.200000003,1.60000014)
  3572. obj15.FrontSurface=10
  3573. obj15.BottomSurface=10
  3574. obj15.BackSurface=10
  3575. obj15.BrickColor=BrickColor.new("Really blue")
  3576. obj15.Name="BulletCase"
  3577. obj15.Parent=gun
  3578. --16-Mesh
  3579. obj16=Instance.new("BlockMesh")
  3580. obj16.Scale=Vector3.new(0.999499977,1,1)
  3581. obj16.Parent=obj15
  3582. --17-Flashlight
  3583. obj17=Instance.new("Part")
  3584. obj17.CFrame=CFrame.new(Vector3.new(12.3420115,0.729269207,35.601902)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3585. obj17.FormFactor=Enum.FormFactor.Custom
  3586. obj17.LeftSurface=10
  3587. obj17.TopSurface=10
  3588. obj17.RightSurface=10
  3589. obj17.Material="SmoothPlastic"
  3590. obj17.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3591. obj17.FrontSurface=10
  3592. obj17.BottomSurface=10
  3593. obj17.BackSurface=10
  3594. obj17.BrickColor=BrickColor.new("Pastel yellow")
  3595. obj17.Name="Flashlight"
  3596. obj17.Parent=gun
  3597. --18-Mesh
  3598. obj18=Instance.new("CylinderMesh")
  3599. obj18.Offset=Vector3.new(0,0,0.0500000007)
  3600. obj18.Scale=Vector3.new(0.5,1.01999998,0.5)
  3601. obj18.Parent=obj17
  3602. --19-Decor
  3603. obj19=Instance.new("Part")
  3604. obj19.CFrame=CFrame.new(Vector3.new(12.3420143,2.1178081,35.8290215)) * CFrame.Angles(1.832595705986,0,-3.1415927410126)
  3605. obj19.FormFactor=Enum.FormFactor.Custom
  3606. obj19.LeftSurface=10
  3607. obj19.TopSurface=10
  3608. obj19.RightSurface=10
  3609. obj19.Material="SmoothPlastic"
  3610. obj19.Size=Vector3.new(0.200000003,0.400000036,0.200000003)
  3611. obj19.FrontSurface=10
  3612. obj19.BottomSurface=10
  3613. obj19.BackSurface=10
  3614. obj19.BrickColor=BrickColor.new("Really black")
  3615. obj19.Name="Decor"
  3616. obj19.Parent=gun
  3617. --20-Mesh
  3618. obj20=Instance.new("BlockMesh")
  3619. obj20.Scale=Vector3.new(0.5,0.5,1.10000002)
  3620. obj20.Parent=obj19
  3621. --21-Decor
  3622. obj21=Instance.new("Part")
  3623. obj21.CFrame=CFrame.new(Vector3.new(12.2895117,2.05304575,35.6843338)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  3624. obj21.FormFactor=Enum.FormFactor.Custom
  3625. obj21.LeftSurface=10
  3626. obj21.TopSurface=10
  3627. obj21.RightSurface=10
  3628. obj21.Material="SmoothPlastic"
  3629. obj21.Size=Vector3.new(0.399999976,0.200000003,0.200000003)
  3630. obj21.FrontSurface=10
  3631. obj21.BottomSurface=10
  3632. obj21.BackSurface=10
  3633. obj21.BrickColor=BrickColor.new("Really blue")
  3634. obj21.Name="Decor"
  3635. obj21.Parent=gun
  3636. --22-Mesh
  3637. obj22=Instance.new("SpecialMesh")
  3638. obj22.MeshType=Enum.MeshType.Wedge
  3639. obj22.Scale=Vector3.new(1,0.25,0.50999999)
  3640. obj22.Parent=obj21
  3641. --23-Decor
  3642. obj23=Instance.new("Part")
  3643. obj23.CFrame=CFrame.new(Vector3.new(12.3420172,1.41577363,35.744442)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3644. obj23.FormFactor=Enum.FormFactor.Custom
  3645. obj23.LeftSurface=10
  3646. obj23.TopSurface=10
  3647. obj23.RightSurface=10
  3648. obj23.Material="SmoothPlastic"
  3649. obj23.Size=Vector3.new(0.200000003,1.60000002,0.200000003)
  3650. obj23.FrontSurface=10
  3651. obj23.BottomSurface=10
  3652. obj23.BackSurface=10
  3653. obj23.BrickColor=BrickColor.new("Really blue")
  3654. obj23.Name="Decor"
  3655. obj23.Parent=gun
  3656. --24-Mesh
  3657. obj24=Instance.new("CylinderMesh")
  3658. obj24.Parent=obj23
  3659. --25-ShellCaseSpawner
  3660. obj25=Instance.new("Part")
  3661. obj25.CFrame=CFrame.new(Vector3.new(12.3420172,1.75731552,35.6289024)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3662. obj25.FormFactor=Enum.FormFactor.Custom
  3663. obj25.LeftSurface=10
  3664. obj25.TopSurface=10
  3665. obj25.RightSurface=10
  3666. obj25.Material="SmoothPlastic"
  3667. obj25.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3668. obj25.FrontSurface=10
  3669. obj25.BottomSurface=10
  3670. obj25.BackSurface=10
  3671. obj25.Name="ShellCaseSpawner"
  3672. obj25.Parent=gun
  3673. --26-Mesh
  3674. obj26=Instance.new("CylinderMesh")
  3675. obj26.Offset=Vector3.new(0.0149999997,0,-0.0350000001)
  3676. obj26.Scale=Vector3.new(0.75,1,0.75)
  3677. obj26.Parent=obj25
  3678. --27-Decor
  3679. obj27=Instance.new("Part")
  3680. obj27.CFrame=CFrame.new(Vector3.new(12.3420115,0.765501678,35.4666672)) * CFrame.Angles(-2.8797931671143,-1.7763568394003e-015,-3.1415927410126)
  3681. obj27.FormFactor=Enum.FormFactor.Custom
  3682. obj27.LeftSurface=10
  3683. obj27.TopSurface=10
  3684. obj27.RightSurface=10
  3685. obj27.Material="SmoothPlastic"
  3686. obj27.Size=Vector3.new(0.200000003,0.200000003,0.200000003)
  3687. obj27.FrontSurface=10
  3688. obj27.BottomSurface=10
  3689. obj27.BackSurface=10
  3690. obj27.BrickColor=BrickColor.new("Really black")
  3691. obj27.Name="Decor"
  3692. obj27.Parent=gun
  3693. --28-Mesh
  3694. obj28=Instance.new("CylinderMesh")
  3695. obj28.Offset=Vector3.new(0,0,0.0500000007)
  3696. obj28.Scale=Vector3.new(0.5,1.01999998,0.5)
  3697. obj28.Parent=obj27
  3698. --29-Decor
  3699. obj29=Instance.new("Part")
  3700. obj29.CFrame=CFrame.new(Vector3.new(12.3920164,1.4734931,35.5290413)) * CFrame.Angles(-1.3089969158173,-1.5701057910919,-0)
  3701. obj29.FormFactor=Enum.FormFactor.Custom
  3702. obj29.LeftSurface=10
  3703. obj29.TopSurface=10
  3704. obj29.RightSurface=10
  3705. obj29.Material="SmoothPlastic"
  3706. obj29.Size=Vector3.new(1.60000002,0.200000003,0.200000003)
  3707. obj29.FrontSurface=10
  3708. obj29.BottomSurface=10
  3709. obj29.BackSurface=10
  3710. obj29.BrickColor=BrickColor.new("Really blue")
  3711. obj29.Name="Decor"
  3712. obj29.Parent=gun
  3713. --30-Mesh
  3714. obj30=Instance.new("SpecialMesh")
  3715. obj30.MeshType=Enum.MeshType.Wedge
  3716. obj30.Scale=Vector3.new(1,0.25,0.5)
  3717. obj30.Parent=obj29
  3718. --31-Decor
  3719. obj31=Instance.new("Part")
  3720. obj31.CFrame=CFrame.new(Vector3.new(12.2895117,1.18371284,35.4513969)) * CFrame.Angles(1.832595705986,1.5699505805969,-3.1415927410126)
  3721. obj31.FormFactor=Enum.FormFactor.Custom
  3722. obj31.LeftSurface=10
  3723. obj31.TopSurface=10
  3724. obj31.RightSurface=10
  3725. obj31.Material="SmoothPlastic"
  3726. obj31.Size=Vector3.new(1,0.200000003,0.200000003)
  3727. obj31.FrontSurface=10
  3728. obj31.BottomSurface=10
  3729. obj31.BackSurface=10
  3730. obj31.BrickColor=BrickColor.new("Really blue")
  3731. obj31.Name="Decor"
  3732. obj31.Parent=gun
  3733. --32-Mesh
  3734. obj32=Instance.new("SpecialMesh")
  3735. obj32.MeshType=Enum.MeshType.Wedge
  3736. obj32.Scale=Vector3.new(1,0.25,0.50999999)
  3737. obj32.Parent=obj31
  3738. gun:MakeJoints()
  3739. scan(gun)
  3740.  
  3741. local gun2 = gun:clone()
  3742. gun2.Parent = char
  3743.  
  3744. local torsoweld = Instance.new('Weld', char)
  3745. torsoweld.Part0 = torso
  3746. torsoweld.Part1 = holsters.TorsoWeld
  3747. torsoweld.C1 = CFrame.Angles(0,math.pi,0)
  3748.  
  3749. local gunweld = Instance.new('Weld', char)
  3750. gunweld.Part0 = gun.BulletCase
  3751. gunweld.Part1 = holsters.HolsterWeldTo
  3752.  
  3753. local gunweld2 = Instance.new('Weld', char)
  3754. gunweld2.Part0 = gun2.BulletCase
  3755. gunweld2.Part1 = holsters.HolsterWeldTo2
  3756.  
  3757. local bodygyro = Instance.new('BodyGyro')
  3758. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  3759. bodygyro.P = 15000
  3760.  
  3761. local rsc0 = rm.C0
  3762. local lsc0 = lm.C0
  3763. local angle = 0
  3764. local anglespeed = .5
  3765. local speed = .3
  3766. local side = 0
  3767. local Equipped = false
  3768. local origneckc0 = neck.C0
  3769. local origneckc1 = neck.C1
  3770. local neckc0 = CFrame.new(0, 1, 0)
  3771. local firing = false
  3772. local pistol = 1
  3773. local light = false
  3774.  
  3775. local gunlight = Instance.new('SpotLight', gun.Flashlight)
  3776. gunlight.Range = 40
  3777. gunlight.Angle = 60
  3778. gunlight.Face = 'Bottom'
  3779. gunlight.Shadows = true
  3780. gunlight.Enabled = false
  3781.  
  3782. local gunlight2 = gunlight:clone()
  3783. gunlight2.Parent = gun2.Flashlight
  3784.  
  3785. local fire = Instance.new('Sound', head)
  3786. fire.SoundId = "rbxassetid://260433746"
  3787. fire.Volume = 18000000
  3788.  
  3789. local song = Instance.new('Sound', head)
  3790. song.SoundId = "rbxassetid://142653441"
  3791. song.Volume = 10000000
  3792. song.Looped = true
  3793.  
  3794. local song2 = Instance.new('Sound', head)
  3795. song2.SoundId = "rbxassetid://408386283"
  3796. song2.Volume = 1000000
  3797. song2.Looped = true
  3798.  
  3799. local reload = Instance.new('Sound', head)
  3800. reload.SoundId = "rbxassetid://266022905"
  3801. reload.Volume = 180000
  3802.  
  3803. local ammo = 40
  3804. local scrgui = Instance.new('ScreenGui', plrgui)
  3805. scrgui.Name = 'DualGunsGui'
  3806.  
  3807. local ammonution = Instance.new('TextLabel', scrgui)
  3808. ammonution.Size = UDim2.new(0,150,0,50)
  3809. ammonution.Position = UDim2.new(1, -250, 1, -70)
  3810. ammonution.BackgroundTransparency = 1
  3811. ammonution.TextColor3 = Color3.new(1,1,1)
  3812. ammonution.TextStrokeTransparency = .1
  3813. ammonution.Text = ('| '):rep(ammo)
  3814. ammonution.TextXAlignment = 'Right'
  3815. ammonution.ZIndex = 2
  3816. ammonution.FontSize = 'Size18'
  3817.  
  3818. local ammonution2 = Instance.new('TextLabel', scrgui)
  3819. ammonution2.Size = UDim2.new(0,150,0,50)
  3820. ammonution2.Position = UDim2.new(1, -250, 1, -70)
  3821. ammonution2.BackgroundTransparency = 1
  3822. ammonution2.TextColor3 = Color3.new(.5,.5,.5)
  3823. ammonution2.TextStrokeTransparency = .1
  3824. ammonution2.TextXAlignment = 'Right'
  3825. ammonution2.Text = ('| '):rep(ammo)
  3826. ammonution2.FontSize = 'Size18'
  3827.  
  3828. local rel = Instance.new('TextButton', scrgui)
  3829. rel.Size = UDim2.new(0,500,0,250)
  3830. rel.Position = UDim2.new(.5, -250, .8, -250)
  3831. rel.BackgroundTransparency = 1
  3832. rel.TextColor3 = Color3.new(.7,0,0)
  3833. rel.Visible = false
  3834. rel.Text = 'Reload (r)'
  3835. rel.FontSize = 'Size24'
  3836.  
  3837. rel.MouseButton1Down:connect(function()
  3838. if ammo >= 40 or firing then return end
  3839. dontclerpneck = true
  3840. firing = true
  3841. local dropammo = gun.Handle:clone()
  3842. dropammo:ClearAllChildren()
  3843. dropammo.CanCollide = true
  3844. dropammo.BrickColor = BrickColor.Black()
  3845. dropammo.Parent = workspace
  3846. dropammo.CFrame = gun.Handle.CFrame
  3847. local dropammo2 = dropammo:clone()
  3848. dropammo2.Parent = workspace
  3849. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  3850. game:service'Debris':AddItem(dropammo,15)
  3851. game:service'Debris':AddItem(dropammo2,15)
  3852. wait(.5)
  3853. reload:play()
  3854. for i = 1, 65 do
  3855. firing = true
  3856. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3857. 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)
  3858. lm.C0 = clerp(lm.C0,lscf,speed)
  3859. rm.C0 = clerp(rm.C0,rscf,speed)
  3860. game:service'RunService'.RenderStepped:wait()
  3861. end
  3862. reload:play()
  3863. for i = 1, 65 do
  3864. firing = true
  3865. 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)
  3866. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3867. lm.C0 = clerp(lm.C0,lscf,speed)
  3868. rm.C0 = clerp(rm.C0,rscf,speed)
  3869. game:service'RunService'.RenderStepped:wait()
  3870. end
  3871. dontclerpneck = false
  3872. firing = false
  3873. ammo = 26
  3874. ammonution.Text = ('| '):rep(ammo)
  3875. end)
  3876. tool.Selected:connect(function(mouse)
  3877. Equipped = true
  3878. bodygyro.Parent = torso
  3879. bodygyro.cframe = torso.CFrame
  3880. rs.Parent = nil
  3881. ls.Parent = nil
  3882. rm.Parent = torso
  3883. lm.Parent = torso
  3884. neck.C0 = CFrame.new(0, 1, 0)
  3885. neck.C1 = CFrame.new(0, -0.5, 0)
  3886. gunweld.Part0 = gun.Handle
  3887. gunweld2.Part0 = gun2.Handle
  3888. gunweld.Part1 = ra
  3889. gunweld2.Part1 = la
  3890. gunweld.C1 = CFrame.new(0, -.8, 0)
  3891. gunweld.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  3892. gunweld2.C1 = CFrame.new(0, -.8, 0)
  3893. gunweld2.C0 = CFrame.Angles(math.pi/2-math.rad(15), 0, math.pi)
  3894. mouse.KeyDown:connect(function(k)
  3895. if k == "r" then
  3896. if ammo >= 40 or firing then return end
  3897. dontclerpneck = true
  3898. firing = true
  3899. local dropammo = gun.Handle:clone()
  3900. dropammo:ClearAllChildren()
  3901. dropammo.CanCollide = true
  3902. dropammo.BrickColor = BrickColor.Black()
  3903. dropammo.Parent = workspace
  3904. dropammo.CFrame = gun.Handle.CFrame
  3905. local dropammo2 = dropammo:clone()
  3906. dropammo2.Parent = workspace
  3907. dropammo2.CFrame = gun2.Handle.CFrame * CFrame.new(0, -.5, 0)
  3908. game:service'Debris':AddItem(dropammo,15)
  3909. game:service'Debris':AddItem(dropammo2,15)
  3910. wait(.5)
  3911. reload:play()
  3912. for i = 1, 65 do
  3913. firing = true
  3914. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3915. 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)
  3916. lm.C0 = clerp(lm.C0,lscf,speed)
  3917. rm.C0 = clerp(rm.C0,rscf,speed)
  3918. game:service'RunService'.RenderStepped:wait()
  3919. end
  3920. reload:play()
  3921. for i = 1, 65 do
  3922. firing = true
  3923. 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)
  3924. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, 0)
  3925. lm.C0 = clerp(lm.C0,lscf,speed)
  3926. rm.C0 = clerp(rm.C0,rscf,speed)
  3927. game:service'RunService'.RenderStepped:wait()
  3928. end
  3929. dontclerpneck = false
  3930. firing = false
  3931. ammo = 40
  3932. ammonution.Text = ('| '):rep(ammo)
  3933. end
  3934. if k == "f" then
  3935. game:GetService("Chat"):Chat(plr.Character.Head, "Boss Mode!", Enum.ChatColor.Red)
  3936. song:Play()
  3937. char.Head.face.Texture = "http://www.roblox.com/asset/?id=397016154"
  3938. else
  3939. if k == "g" then
  3940. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  3941. song:Stop()
  3942. char.Head.face.Texture = "http://www.roblox.com/asset/?id=479899397"
  3943. else
  3944. if k == "h" then
  3945. game:GetService("Chat"):Chat(plr.Character.Head, "Evil Mode!", Enum.ChatColor.Red)
  3946. song2:Play()
  3947. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152629683"
  3948. else
  3949. if k == "j" then
  3950. game:GetService("Chat"):Chat(plr.Character.Head, "Regular Mode!", Enum.ChatColor.Green)
  3951. song2:Stop()
  3952. char.Head.face.Texture = "http://www.roblox.com/asset/?id=479899397"
  3953. else
  3954. if k == "k" then
  3955. humanoid.WalkSpeed = 60
  3956. else
  3957. if k == "l" then
  3958. humanoid.WalkSpeed = 25
  3959. else
  3960. if k == "p" then
  3961. game:GetService("Chat"):Chat(plr.Character.Head, "Human Mode!", Enum.ChatColor.Green)
  3962. plr.Character.Humanoid.Health = (10000000000000000)
  3963. plr.Character.Humanoid.MaxHealth = (10000000000000000)
  3964. else
  3965. if k == "u" then
  3966. game:GetService("Chat"):Chat(plr.Character.Head, "Demi God Mode!", Enum.ChatColor.Red)
  3967. plr.Character.Humanoid.Health = (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  3968. plr.Character.Humanoid.MaxHealth = (1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
  3969. else
  3970. if k == "q" then
  3971. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Enabled", Enum.ChatColor.Red)
  3972. Value = true
  3973. else
  3974. if k == "e" then
  3975. game:GetService("Chat"):Chat(plr.Character.Head, "Destruct Bullets Disabled", Enum.ChatColor.Green)
  3976. Value = false
  3977. else
  3978. if k == "b" then
  3979. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Enabled!", Enum.ChatColor.Blue)
  3980. ff:Clone().Parent = char
  3981. else
  3982. if k == "v" then
  3983. game:GetService("Chat"):Chat(plr.Character.Head, "Force Field Disabled!", Enum.ChatColor.Blue)
  3984. char.ForceField:Destroy()
  3985. end
  3986. end
  3987. end
  3988. end
  3989. end
  3990. end
  3991. end
  3992. end
  3993. end
  3994. end
  3995. end
  3996. end
  3997. end)
  3998. mouse.Button1Down:connect(function()
  3999. if ammo <= 0 then
  4000. local sound = Instance.new('Sound', head)
  4001. sound.SoundId = "rbxassetid://260433746"
  4002. sound.Volume = 2
  4003. sound:play()
  4004. game:service'Debris':AddItem(sound,1)
  4005. end
  4006. if firing or ammo <= 0 then return end
  4007. ammo = ammo - 1
  4008. ammonution.Text = ('| '):rep(ammo)
  4009. firing = true
  4010. local pa = Instance.new('Part')
  4011. pa.CanCollide = false
  4012. pa.Anchored = true
  4013. pa.Locked = true
  4014. pa.FormFactor = 'Custom'
  4015. pa.Material = 'Neon'
  4016. pa.BrickColor = BrickColor.new('Cyan')
  4017. pa.Size = Vector3.new(.2,3,.2)
  4018. Instance.new('BlockMesh', pa).Scale = Vector3.new(.2,3,.2)
  4019. local thegun
  4020. if pistol == 1 then
  4021. thegun = gun.BulletCase
  4022. elseif pistol == 2 then
  4023. thegun = gun2.BulletCase
  4024. end
  4025. local muzzle = Instance.new('PointLight', thegun)
  4026. muzzle.Range = 1211111
  4027. muzzle.Color = Color3.new(0, 81, 255)
  4028. game:service'Debris':AddItem(muzzle, .05)
  4029. local shell = pa:clone()
  4030. shell:ClearAllChildren()
  4031. shell.Anchored = false
  4032. shell.CFrame = thegun.Parent.ShellCaseSpawner.CFrame
  4033. shell.Size = Vector3.new(.2,.5,.2)
  4034. shell.Parent = workspace
  4035. shell.Material = 'Neon'
  4036. shell.BrickColor = BrickColor.new('Cyan')
  4037. shell.CanCollide = true
  4038. game:service'Debris':AddItem(shell, 5)
  4039. local bulletpos = thegun.Position
  4040. local bulletvelocity = (mouse.Hit.p - bulletpos).unit*15
  4041. local lastbulletpos = thegun.Position
  4042. fire:play()
  4043. coroutine.wrap(function()
  4044. while game:service'RunService'.Stepped:wait() do
  4045. lastbulletpos = bulletpos
  4046. bulletpos = bulletpos + bulletvelocity
  4047. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  4048. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  4049. if (torso.Position - pa.Position).magnitude > 800 then
  4050. pa:Destroy()
  4051. break
  4052. end
  4053. pa.Anchored = true
  4054. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  4055. if hit then
  4056. local damage
  4057. local sound = Instance.new('Sound', pa)
  4058. sound.SoundId = "rbxassetid://166423137"
  4059. sound.Pitch = 1.2+math.random()/3
  4060. sound.Volume = 1
  4061. sound:play()
  4062. pa:Destroy()
  4063. if Value == true then
  4064. hit:Destroy()
  4065. end
  4066. game:service'Debris':AddItem(sound,4)
  4067. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  4068. local hitz, enz = workspace:FindPartOnRay(ray, char)
  4069. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  4070. if hum then
  4071. damage = math.random(40,90)
  4072. hum:TakeDamage(damage)
  4073. end
  4074. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  4075. if hum then
  4076. damage = math.random(40,90)
  4077. hum:TakeDamage(damage)
  4078. end
  4079. break
  4080. end
  4081. pa.Anchored = true
  4082. pa.Parent = char
  4083. pa.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  4084. end
  4085. end)()
  4086.  
  4087. if pistol == 1 then
  4088. pistol = 2
  4089. for i = 1, 4 do
  4090. 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)
  4091. 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)
  4092. lm.C0 = clerp(lm.C0,lscf,speed)
  4093. rm.C0 = clerp(rm.C0,rscf,speed)
  4094. game:service'RunService'.RenderStepped:wait()
  4095. end
  4096. elseif pistol == 2 then
  4097. for i = 1, 4 do
  4098. 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)
  4099. 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)
  4100. lm.C0 = clerp(lm.C0,lscf,speed)
  4101. rm.C0 = clerp(rm.C0,rscf,speed)
  4102. game:service'RunService'.RenderStepped:wait()
  4103. end
  4104. pistol = 1
  4105. end
  4106. firing = false
  4107. end)
  4108. end)
  4109. tool.Deselected:connect(function()
  4110. Equipped = false
  4111. rm.Parent = nil
  4112. lm.Parent = nil
  4113. rs.Parent = torso
  4114. ls.Parent = torso
  4115. neck.C0 = origneckc0
  4116. neck.C1 = origneckc1
  4117. lm.C0 = lsc0
  4118. rm.C0 = rsc0
  4119. gunweld.Part0 = gun.BulletCase
  4120. gunweld.Part1 = holsters.HolsterWeldTo
  4121. gunweld.C0 = CFrame.new()
  4122. gunweld.C1 = CFrame.new()
  4123. gunweld2.Part0 = gun2.BulletCase
  4124. gunweld2.Part1 = holsters.HolsterWeldTo2
  4125. gunweld2.C0 = CFrame.new()
  4126. gunweld2.C1 = CFrame.new()
  4127. bodygyro.Parent = nil
  4128. end)
  4129.  
  4130. game:service'RunService'.RenderStepped:connect(function()
  4131. if Equipped then
  4132. if ammo <= 0 then
  4133. rel.Visible = true
  4134. else
  4135. rel.Visible = false
  4136. end
  4137. if light then
  4138. gunlight.Enabled = true
  4139. gunlight2.Enabled = true
  4140. else
  4141. gunlight.Enabled = false
  4142. gunlight2.Enabled = false
  4143. end
  4144. angle = angle + (0.05+math.random()/20)
  4145. local rscf = rsc0
  4146. local lscf = lsc0
  4147. local ncf = neckc0
  4148. local rmx,rmy,rmz = rm.C0:toEulerAnglesXYZ()
  4149. if rmz >= 1 then
  4150. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  4151. elseif rmz <= -1 then
  4152. bodygyro.cframe = bodygyro.cframe * CFrame.Angles(0, -rmz/5, 0)
  4153. end
  4154. 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)
  4155. 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)
  4156. ncf = neckc0 * CFrame.new(Vector3.new(), torso.CFrame:pointToObjectSpace(plrmouse.Hit.p))
  4157. if not firing then
  4158. lm.C0 = clerp(lm.C0,lscf,speed)
  4159. rm.C0 = clerp(rm.C0,rscf,speed)
  4160. end
  4161. if not dontclerpneck then
  4162. neck.C0 = clerp(neck.C0,ncf,speed)
  4163. end
  4164. end
  4165. if light and not Equipped then
  4166. gunlight.Enabled = false
  4167. gunlight2.Enabled = false
  4168. end
  4169. end)
  4170.  
  4171. chatted = false
  4172.  
  4173. a = Instance.new("BillboardGui", plr.Character:FindFirstChild("Head"))
  4174. a.ExtentsOffset = Vector3.new(1,0,0)
  4175. a.Size = UDim2.new(1,0,1,0)
  4176. a.AlwaysOnTop = true
  4177. a.Enabled = true
  4178. b = Instance.new("ImageLabel", a)
  4179. b.BackgroundTransparency = 1
  4180. b.BorderSizePixel = 0
  4181. b.Image = "http://www.roblox.com/asset/?id=243503908"
  4182. b.ImageTransparency = 0.1
  4183. b.Position = UDim2.new(0.2,0,0.05,0)
  4184. b.Size = UDim2.new(5,0,1.2,0)
  4185. b.Visible = false
  4186. c = Instance.new("TextLabel", b)
  4187. c.BackgroundTransparency = 1
  4188. c.BorderSizePixel = 0
  4189. c.Position = UDim2.new(0.1,0,0)
  4190. c.Size = UDim2.new(0.5,0,0.4,0)
  4191. c.ZIndex = 2
  4192. c.Font = "SourceSans"
  4193. c.FontSize = "Size18"
  4194. c.Text = plr.Name..":"
  4195. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  4196. c.TextXAlignment = "Left"
  4197. c.TextYAlignment = "Center"
  4198. d = Instance.new("TextLabel", b)
  4199. d.BackgroundTransparency = 1
  4200. d.BorderSizePixel = 0
  4201. d.Position = UDim2.new(0.1,0,0.4,0)
  4202. d.Size = UDim2.new(0.9,0,0.6,0)
  4203. d.ZIndex = 2
  4204. d.Font = "SourceSans"
  4205. d.FontSize = "Size18"
  4206. d.Text = ""
  4207. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  4208. d.TextXAlignment = "Left"
  4209. d.TextYAlignment = "Top"
  4210. d.TextWrapped = true
  4211.  
  4212.  
  4213. function message(message)
  4214. repeat wait() until chatted == false
  4215. chatted = true
  4216. b.Visible = true
  4217. if string.find(message,"-r") ~=nil then
  4218. for i=1,string.len(message),1 do
  4219. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  4220. d.Text = string.sub(message,1,i)
  4221. wait(0.1)
  4222. end
  4223. elseif string.find(message,"-b") ~=nil then
  4224. for i=1,string.len(message),1 do
  4225. d.Text = string.sub(string.byte(message),1,i)
  4226. wait(0.05)
  4227. end
  4228. else
  4229. for i=1,string.len(message),1 do
  4230. d.Text = string.sub(message,1,i)
  4231. wait(0.05)
  4232. end
  4233. end
  4234. wait(2)
  4235. if string.find(message,"-t") ~=nil then
  4236. b.Visible = true
  4237. else
  4238. b.Visible = false
  4239. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  4240. end
  4241. chatted = false
  4242. end
  4243.  
  4244.  
  4245. wait(2.6)
  4246. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Blue Gust Blade!", "Red")
  4247. Player=game:GetService("Players").LocalPlayer
  4248. Character=Player.Character
  4249. PlayerGui=Player.PlayerGui
  4250. Backpack=Player.Backpack
  4251. Torso=Character.Torso
  4252. Head=Character.Head
  4253. Humanoid=Character.Humanoid
  4254. print('Player is Eliagable')
  4255. LeftArm=Character["Left Arm"]
  4256. LeftLeg=Character["Left Leg"]
  4257. RightArm=Character["Right Arm"]
  4258. RightLeg=Character["Right Leg"]
  4259. LS=Torso["Left Shoulder"]
  4260. LH=Torso["Left Hip"]
  4261. RS=Torso["Right Shoulder"]
  4262. RH=Torso["Right Hip"]
  4263. Neck=Torso.Neck
  4264. it=Instance.new
  4265. vt=Vector3.new
  4266. cf=CFrame.new
  4267. euler=CFrame.fromEulerAnglesXYZ
  4268. angles=CFrame.Angles
  4269. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4270. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4271. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  4272. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  4273. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  4274. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  4275. RootPart=Character.HumanoidRootPart
  4276. RootJoint=RootPart.RootJoint
  4277. RootCF=euler(-1.57,0,3.14)
  4278. attack=false
  4279. attackdebounce=false
  4280. MMouse=nil
  4281. combo=0
  4282. local Anim="Idle"
  4283. local Effects={}
  4284. equipped=false
  4285. local idle=0
  4286. local hold=false
  4287. local con1=nil
  4288. local con2=nil
  4289. local Mode="Binary"
  4290. local idleanim=0
  4291. local idleanim2=false
  4292. local impulse=1
  4293. local hitfloor,posfloor=nil,nil
  4294. local damcount=0
  4295. local guard=false
  4296. --player
  4297. player=nil
  4298. --save shoulders
  4299. RSH, LSH=nil, nil
  4300. --welds
  4301. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  4302. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  4303. LH=Torso["Left Hip"]
  4304. RH=Torso["Right Hip"]
  4305. Asset="http://www.roblox.com/asset/?id="
  4306. Health=879000
  4307. Humanoid.MaxHealth=879000
  4308. Humanoid.Health=879000
  4309. coroutine.resume(coroutine.create(function()
  4310. for i=1,20 do
  4311. Humanoid.MaxHealth=879000
  4312. Humanoid.Health=879000
  4313. end
  4314. Humanoid.MaxHealth=879000
  4315. Humanoid.Health=879000
  4316. Humanoid:TakeDamage(0)
  4317. Humanoid.Health=Health
  4318. end))
  4319. Humanoid.Health=Health
  4320.  
  4321. function swait(num)
  4322. if num==0 or num==nil then
  4323. game:service'RunService'.RenderStepped:wait()
  4324. else
  4325. for i=0,num do
  4326. game:service'RunService'.RenderStepped:wait()
  4327. end
  4328. end
  4329. end
  4330.  
  4331. if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
  4332. Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
  4333. end
  4334. if Character:findFirstChild("Demon Blade",true) ~= nil then
  4335. Character:findFirstChild("Demon Blade",true).Parent = nil
  4336. end
  4337. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  4338. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  4339. end
  4340.  
  4341.  
  4342. function NoOutline(Part)
  4343. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  4344. end
  4345.  
  4346. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  4347. local fp=it("Part")
  4348. fp.formFactor=formfactor
  4349. fp.Parent=parent
  4350. fp.Reflectance=reflectance
  4351. fp.Transparency=transparency
  4352. fp.CanCollide=false
  4353. fp.Locked=true
  4354. fp.BrickColor=brickcolor
  4355. fp.Name=name
  4356. fp.Size=size
  4357. fp.Position=Torso.Position
  4358. NoOutline(fp)
  4359. fp.Material="Granite"
  4360. fp:BreakJoints()
  4361. return fp
  4362. end
  4363.  
  4364. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4365. local mesh=it(Mesh)
  4366. mesh.Parent=part
  4367. if Mesh=="SpecialMesh" then
  4368. mesh.MeshType=meshtype
  4369. mesh.MeshId=meshid
  4370. end
  4371. mesh.Offset=offset
  4372. mesh.Scale=scale
  4373. return mesh
  4374. end
  4375.  
  4376. function weld(parent,part0,part1,c0)
  4377. local weld=it("Weld")
  4378. weld.Parent=parent
  4379. weld.Part0=part0
  4380. weld.Part1=part1
  4381. weld.C0=c0
  4382. return weld
  4383. end
  4384.  
  4385. local fengui=it("GuiMain")
  4386. fengui.Parent=Player.PlayerGui
  4387. fengui.Name="WeaponGUI"
  4388.  
  4389. local Color1=BrickColor.new("Really blue")
  4390. local Color2=BrickColor.new("Black")
  4391. local Colorr3=BrickColor.new("Black")
  4392. local Color4=BrickColor.new("Really blue")
  4393.  
  4394. local model1=Instance.new("Model")
  4395. model1.Parent=Character
  4396. model1.Name="Hades Judgement Blade"
  4397. BSword={}
  4398. BSwordWelds={}
  4399. local model2=Instance.new("Model")
  4400. model2.Parent=nil
  4401. model2.Name="Demon Blade"
  4402. DBlade={}
  4403. DBladeWelds={}
  4404.  
  4405. prt1=part(3,model1,0,1,Color1,"Part1",vt())
  4406. prt2=part(3,model1,0,0,Color2,"Part2",vt())
  4407. prt3=part(3,model1,0,0,Color2,"Part3",vt())
  4408. prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
  4409. prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
  4410. prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
  4411. prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
  4412. prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
  4413. prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
  4414. prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
  4415. prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
  4416. prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
  4417.  
  4418. prtd1=part(3,model2,0,0.4,BrickColor.new("Really blue"),"DPart1",vt())
  4419. prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
  4420. prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
  4421. prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
  4422. prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
  4423. prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
  4424. prtd7=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart7",vt())
  4425. prtd8=part(3,model2,0.8,0,BrickColor.new("Really blue"),"DPart8",vt())
  4426. prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart9",vt())
  4427. prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really blue"),"DPart10",vt())
  4428. prtd11=part(3,model2,0.5,0,BrickColor.new("Really blue"),"DPart11",vt())
  4429. prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
  4430. for _,c in pairs(model2:children()) do
  4431. if c.className=="Part" then
  4432. table.insert(DBlade,c)
  4433. end
  4434. end
  4435. light=it("PointLight")
  4436. light.Brightness=.8
  4437. light.Color=Color3.new(255/255,50/255,0)
  4438. --light.Color=BrickColor.new("Really red")
  4439. light.Range=10
  4440. light.Parent=prtd9
  4441.  
  4442. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  4443. msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
  4444. msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
  4445. msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
  4446. msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
  4447. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
  4448. msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
  4449. msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
  4450. msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
  4451. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
  4452. msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  4453. msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
  4454.  
  4455. mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
  4456. mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
  4457. mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  4458. mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
  4459. mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  4460. mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
  4461. mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
  4462. mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
  4463. mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
  4464. mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
  4465. mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
  4466. mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
  4467.  
  4468. wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
  4469. wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  4470. wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  4471. wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
  4472. wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
  4473. wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
  4474. wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
  4475. wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
  4476. wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
  4477. wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
  4478. wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
  4479. wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
  4480.  
  4481. wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
  4482. wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
  4483. wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
  4484. wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
  4485. wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
  4486. wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
  4487. wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
  4488. wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
  4489. wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
  4490. wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
  4491. wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
  4492. wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
  4493. for _,c in pairs(prtd1:children()) do
  4494. if c.className=="Weld" then
  4495. table.insert(DBladeWelds,c)
  4496. print(c)
  4497. end
  4498. end
  4499.  
  4500. for i=-.9,.9,0.2 do
  4501. prt13=part(3,model1,0,0,Color1,"Part13",vt())
  4502. msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
  4503. 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))
  4504. end
  4505.  
  4506. local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  4507. local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
  4508.  
  4509. if (script.Parent.className~="HopperBin") then
  4510. Tool=Instance.new("HopperBin")
  4511. Tool.Parent=Backpack
  4512. Tool.Name="Hades Judgement Blade"
  4513. script.Parent=Tool
  4514. end
  4515. Bin=script.Parent
  4516. --Bin=Tool
  4517.  
  4518. local bodvel=Instance.new("BodyVelocity")
  4519. bodvel.Name="FixerVel"
  4520. local bg=Instance.new("BodyGyro")
  4521. bg.Name="FixerGyro"
  4522.  
  4523. so = function(id,par,vol,pit)
  4524. coroutine.resume(coroutine.create(function()
  4525. local sou = Instance.new("Sound",par or workspace)
  4526. sou.Parent=par
  4527. sou.Volume=vol
  4528. sou.Pitch=pit or 1
  4529. sou.SoundId=id
  4530. swait()
  4531. sou:Play()
  4532. game:GetService("Debris"):AddItem(sou,6)
  4533. end))
  4534. end
  4535.  
  4536. function clerp(a,b,t)
  4537. local qa = {QuaternionFromCFrame(a)}
  4538. local qb = {QuaternionFromCFrame(b)}
  4539. local ax, ay, az = a.x, a.y, a.z
  4540. local bx, by, bz = b.x, b.y, b.z
  4541. local _t = 1-t
  4542. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4543. end
  4544.  
  4545. function QuaternionFromCFrame(cf)
  4546. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4547. local trace = m00 + m11 + m22
  4548. if trace > 0 then
  4549. local s = math.sqrt(1 + trace)
  4550. local recip = 0.5/s
  4551. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4552. else
  4553. local i = 0
  4554. if m11 > m00 then
  4555. i = 1
  4556. end
  4557. if m22 > (i == 0 and m00 or m11) then
  4558. i = 2
  4559. end
  4560. if i == 0 then
  4561. local s = math.sqrt(m00-m11-m22+1)
  4562. local recip = 0.5/s
  4563. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4564. elseif i == 1 then
  4565. local s = math.sqrt(m11-m22-m00+1)
  4566. local recip = 0.5/s
  4567. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4568. elseif i == 2 then
  4569. local s = math.sqrt(m22-m00-m11+1)
  4570. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4571. end
  4572. end
  4573. end
  4574.  
  4575. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4576. local xs, ys, zs = x + x, y + y, z + z
  4577. local wx, wy, wz = w*xs, w*ys, w*zs
  4578. local xx = x*xs
  4579. local xy = x*ys
  4580. local xz = x*zs
  4581. local yy = y*ys
  4582. local yz = y*zs
  4583. local zz = z*zs
  4584. 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))
  4585. end
  4586.  
  4587. function QuaternionSlerp(a, b, t)
  4588. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4589. local startInterp, finishInterp;
  4590. if cosTheta >= 0.0001 then
  4591. if (1 - cosTheta) > 0.0001 then
  4592. local theta = math.acos(cosTheta)
  4593. local invSinTheta = 1/math.sin(theta)
  4594. startInterp = math.sin((1-t)*theta)*invSinTheta
  4595. finishInterp = math.sin(t*theta)*invSinTheta
  4596. else
  4597. startInterp = 1-t
  4598. finishInterp = t
  4599. end
  4600. else
  4601. if (1+cosTheta) > 0.0001 then
  4602. local theta = math.acos(-cosTheta)
  4603. local invSinTheta = 1/math.sin(theta)
  4604. startInterp = math.sin((t-1)*theta)*invSinTheta
  4605. finishInterp = math.sin(t*theta)*invSinTheta
  4606. else
  4607. startInterp = t-1
  4608. finishInterp = t
  4609. end
  4610. end
  4611. 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
  4612. end
  4613.  
  4614. function hideanim()
  4615. equipped=false
  4616. attack=true
  4617. if Mode=="Binary" then
  4618. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  4619. for i=0,1,0.1 do
  4620. swait()
  4621. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  4622. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4623. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4624. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  4625. end
  4626. wld1.Part1=Torso
  4627. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  4628. for i=0,1,0.2 do
  4629. swait()
  4630. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
  4631. end
  4632. for i=0,1,0.1 do
  4633. swait()
  4634. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  4635. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  4636. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  4637. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  4638. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4639. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4640. end
  4641. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  4642. else
  4643. for i=0,1,0.1 do
  4644. swait()
  4645. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  4646. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  4647. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
  4648. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  4649. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  4650. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  4651. end
  4652. so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
  4653. so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
  4654. for i=0,1,0.015 do
  4655. swait()
  4656. for i=1,3 do
  4657. if math.random(1,5)==1 then
  4658. 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)
  4659. else
  4660. 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)
  4661. end
  4662. end
  4663. end
  4664. model2.Parent=nil
  4665. for i=0,1,0.1 do
  4666. swait()
  4667. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  4668. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  4669. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  4670. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  4671. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  4672. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  4673. end
  4674. end
  4675. Torso.Neck.C0=necko
  4676. Torso.Neck.C1=necko2
  4677. RootJoint.C0=RootCF
  4678. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  4679. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  4680. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  4681. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  4682. RH.C0=RHC0
  4683. RH.C1=RHC1
  4684. LH.C0=LHC0
  4685. LH.C1=LHC1
  4686. Mode="Binary"
  4687. attack=false
  4688. end
  4689.  
  4690. function equipanim()
  4691. equipped=true
  4692. attack=true
  4693. for i=0,1,0.2 do
  4694. swait()
  4695. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  4696. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
  4697. end
  4698. for i=0,1,0.1 do
  4699. swait()
  4700. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
  4701. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  4702. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  4703. end
  4704. so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
  4705. wld1.Part1=RightArm
  4706. wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
  4707. for i=0,1,0.1 do
  4708. swait()
  4709. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  4710. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
  4711. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
  4712. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  4713. end
  4714. for i=0,1,0.1 do
  4715. swait()
  4716. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4717. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  4718. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  4719. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
  4720. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
  4721. end
  4722. --wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
  4723. wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
  4724. Torso.Neck.C0=necko*euler(0,0,0.5)
  4725. RootJoint.C0=RootCF*euler(0,0,-0.5)
  4726. RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
  4727. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  4728. LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
  4729. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  4730. attack=false
  4731. end
  4732.  
  4733. function Stomp()
  4734. Humanoid.WalkSpeed=0
  4735. Torso.Velocity=RootPart.CFrame.lookVector*0
  4736. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  4737. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  4738. --so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
  4739. MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  4740. Dam=math.random(5,10)
  4741. Humanoid.Health=Humanoid.Health-Dam
  4742. MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
  4743. --[[for i=0,1,0.2 do
  4744. swait()
  4745. if Mode=="Binary" then
  4746. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  4747. end
  4748. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  4749. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  4750. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  4751. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  4752. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  4753. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  4754. end
  4755. for i=0,1,0.1 do
  4756. swait()
  4757. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
  4758. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
  4759. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
  4760. LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
  4761. end]]
  4762. swait(10)
  4763. Humanoid.WalkSpeed=16
  4764. end
  4765.  
  4766. function attackone()
  4767. attack=true
  4768. for i=0,1,0.1 do
  4769. swait()
  4770. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  4771. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  4772. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  4773. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
  4774. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
  4775. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4776. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4777. end
  4778. hitbox1.Parent=model1
  4779. hitbox1.Size=vt(1,5,1)
  4780. hitbox1.Transparency=1
  4781. hitbox1.CFrame=prt10.CFrame
  4782. --con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4783. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4784. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  4785. blcf=nil
  4786. scfr=nil
  4787. for i=0,1,0.25 do
  4788. swait()
  4789. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4790. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4791. local h = 5
  4792. 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)
  4793. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4794. 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)
  4795. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4796. scfr = blcf
  4797. elseif not scfr then
  4798. scfr = blcf
  4799. end
  4800. hitbox1.CFrame=prt10.CFrame
  4801. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
  4802. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
  4803. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  4804. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
  4805. LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
  4806. end
  4807. for i=0,1,0.1 do
  4808. swait()
  4809. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4810. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4811. local h = 5
  4812. 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)
  4813. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4814. 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)
  4815. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4816. scfr = blcf
  4817. elseif not scfr then
  4818. scfr = blcf
  4819. end
  4820. hitbox1.CFrame=prt10.CFrame
  4821. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
  4822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
  4823. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
  4824. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
  4825. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
  4826. end
  4827. con1:disconnect()
  4828. hitbox1.Parent=nil
  4829. attack=false
  4830. end
  4831.  
  4832. function attacktwo()
  4833. attack=true
  4834. for i=0,1,0.1 do
  4835. swait()
  4836. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  4837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  4838. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  4839. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  4840. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  4841. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4842. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4843. end
  4844. hitbox1.Parent=model1
  4845. hitbox1.Size=vt(1,5,1)
  4846. hitbox1.Transparency=1
  4847. hitbox1.CFrame=prt10.CFrame
  4848. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4849. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  4850. blcf=nil
  4851. scfr=nil
  4852. for i=0,1,0.1 do
  4853. swait()
  4854. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4855. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4856. local h = 5
  4857. 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)
  4858. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4859. 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)
  4860. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4861. scfr = blcf
  4862. elseif not scfr then
  4863. scfr = blcf
  4864. end
  4865. hitbox1.CFrame=prt10.CFrame
  4866. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
  4867. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  4868. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  4869. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  4870. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  4871. end
  4872. con1:disconnect()
  4873. hitbox1.Parent=nil
  4874. attack=false
  4875. end
  4876.  
  4877. function attackthree()
  4878. attack=true
  4879. for i=0,1,0.1 do
  4880. swait()
  4881. wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
  4882. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  4883. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  4884. RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
  4885. LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
  4886. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  4887. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  4888. end
  4889. hitbox1.Parent=model1
  4890. hitbox1.Size=vt(1,5,1)
  4891. hitbox1.Transparency=1
  4892. hitbox1.CFrame=prt10.CFrame
  4893. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
  4894. so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
  4895. blcf=nil
  4896. scfr=nil
  4897. for i=0,1,0.25 do
  4898. swait()
  4899. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4900. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4901. local h = 5
  4902. 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)
  4903. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4904. 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)
  4905. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4906. scfr = blcf
  4907. elseif not scfr then
  4908. scfr = blcf
  4909. end
  4910. hitbox1.CFrame=prt10.CFrame
  4911. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
  4912. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
  4913. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
  4914. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
  4915. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
  4916. end
  4917. for i=0,1,0.2 do
  4918. swait()
  4919. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4920. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4921. local h = 5
  4922. 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)
  4923. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4924. 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)
  4925. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4926. scfr = blcf
  4927. elseif not scfr then
  4928. scfr = blcf
  4929. end
  4930. hitbox1.CFrame=prt10.CFrame
  4931. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
  4932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
  4933. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  4934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
  4935. end
  4936. con1:disconnect()
  4937. hitbox1.Parent=nil
  4938. attack=false
  4939. end
  4940.  
  4941. function SpinSlash()
  4942. attack=true
  4943. for i=0,1,0.1 do
  4944. swait()
  4945. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  4946. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
  4947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
  4948. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
  4949. LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
  4950. --RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  4951. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  4952. end
  4953. hitbox1.Parent=model1
  4954. hitbox1.Size=vt(1,5,1)
  4955. hitbox1.Transparency=1
  4956. hitbox1.CFrame=prt10.CFrame
  4957. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
  4958. blcf=nil
  4959. scfr=nil
  4960. so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
  4961. repeat
  4962. hitbox1.Parent=model1
  4963. hitbox1.Size=vt(1,5,1)
  4964. hitbox1.Transparency=1
  4965. hitbox1.CFrame=prt10.CFrame
  4966. for i=0,1,0.15 do
  4967. swait()
  4968. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4969. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4970. local h = 5
  4971. 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)
  4972. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4973. 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)
  4974. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4975. scfr = blcf
  4976. elseif not scfr then
  4977. scfr = blcf
  4978. end
  4979. hitbox1.CFrame=prt10.CFrame
  4980. wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
  4981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
  4982. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
  4983. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
  4984. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
  4985. RH.C0=clerp(RH.C0,RHC0,.3)
  4986. LH.C0=clerp(LH.C0,LHC0,.3)
  4987. end
  4988. for i=0,1,0.05 do
  4989. swait()
  4990. if i>=0.45 and i<=0.5 then
  4991. so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
  4992. end
  4993. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  4994. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  4995. local h = 5
  4996. 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)
  4997. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  4998. 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)
  4999. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5000. scfr = blcf
  5001. elseif not scfr then
  5002. scfr = blcf
  5003. end
  5004. hitbox1.CFrame=prt10.CFrame
  5005. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
  5006. end
  5007. until hold==false
  5008. con1:disconnect()
  5009. hitbox1.Parent=nil
  5010. attack=false
  5011. end
  5012.  
  5013. function BinarySwing()
  5014. attack=true
  5015. for i=0,1,0.1 do
  5016. swait()
  5017. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  5018. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
  5019. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
  5020. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
  5021. LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
  5022. RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
  5023. LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
  5024. end
  5025. Humanoid.Jump=true
  5026. bodvol=Instance.new("BodyVelocity")
  5027. bodvol.Parent=RootPart
  5028. bodvol.velocity=vt(0,1,0)*100
  5029. bodvol.P=5000
  5030. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5031. --Torso.Velocity=vt(0,1,0)*100
  5032. hitbox1.Parent=model1
  5033. hitbox1.Size=vt(1,5,1)
  5034. hitbox1.Transparency=1
  5035. hitbox1.CFrame=prt10.CFrame
  5036. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
  5037. so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
  5038. blcf=nil
  5039. scfr=nil
  5040. for i=0,1,0.1 do
  5041. swait()
  5042. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5043. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5044. local h = 5
  5045. 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)
  5046. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5047. 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)
  5048. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5049. scfr = blcf
  5050. elseif not scfr then
  5051. scfr = blcf
  5052. end
  5053. hitbox1.CFrame=prt10.CFrame
  5054. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
  5055. LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
  5056. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
  5057. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
  5058. RH.C0=clerp(RH.C0,RHC0,.3)
  5059. LH.C0=clerp(LH.C0,LHC0,.3)
  5060. end
  5061. con1:disconnect()
  5062. hitbox1.Parent=nil
  5063. bodvol.Parent=nil
  5064. attack=false
  5065. end
  5066.  
  5067. function BinaryImpulse()
  5068. attack=true
  5069. if impulse==1 then
  5070. impulse=2
  5071. Humanoid.Jump=true
  5072. for i=0,1,0.2 do
  5073. swait()
  5074. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  5075. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  5076. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
  5077. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  5078. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  5079. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  5080. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  5081. end
  5082. blcf=nil
  5083. scfr=nil
  5084. hitbox1.Parent=model1
  5085. hitbox1.Size=vt(1,5,1)
  5086. hitbox1.Transparency=1
  5087. hitbox1.CFrame=prt10.CFrame
  5088. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
  5089. for i=1,3 do
  5090. so("http://roblox.com/asset/?id=161006212",prt10,1,1)
  5091. for i=0,1,0.1 do
  5092. swait()
  5093. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5094. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5095. local h = 5
  5096. 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)
  5097. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5098. 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)
  5099. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5100. scfr = blcf
  5101. elseif not scfr then
  5102. scfr = blcf
  5103. end
  5104. hitbox1.CFrame=prt10.CFrame
  5105. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  5106. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  5107. RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
  5108. end
  5109. end
  5110. con1:disconnect()
  5111. hitbox1.Parent=nil
  5112. elseif impulse==2 then
  5113. impulse=3
  5114. Humanoid.Jump=true
  5115. for i=0,1,0.2 do
  5116. swait()
  5117. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
  5118. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
  5119. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
  5120. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
  5121. LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
  5122. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  5123. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  5124. end
  5125. blcf=nil
  5126. scfr=nil
  5127. hitbox1.Parent=model1
  5128. hitbox1.Size=vt(1,5,1)
  5129. hitbox1.Transparency=1
  5130. hitbox1.CFrame=prt10.CFrame
  5131. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
  5132. for i=1,3 do
  5133. so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
  5134. for i=0,1,0.1 do
  5135. swait()
  5136. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5137. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5138. local h = 5
  5139. 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)
  5140. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5141. 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)
  5142. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5143. scfr = blcf
  5144. elseif not scfr then
  5145. scfr = blcf
  5146. end
  5147. hitbox1.CFrame=prt10.CFrame
  5148. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
  5149. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
  5150. RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
  5151. end
  5152. end
  5153. con1:disconnect()
  5154. hitbox1.Parent=nil
  5155. elseif impulse==3 then
  5156. impulse=1
  5157. for i=0,1,0.2 do
  5158. swait()
  5159. wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
  5160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
  5161. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
  5162. RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
  5163. LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
  5164. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
  5165. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
  5166. end
  5167. Humanoid.Jump=true
  5168. blcf=nil
  5169. scfr=nil
  5170. hitbox1.Parent=model1
  5171. hitbox1.Size=vt(1,5,1)
  5172. hitbox1.Transparency=1
  5173. hitbox1.CFrame=prt10.CFrame
  5174. con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
  5175. for i=1,3 do
  5176. so("http://roblox.com/asset/?id=161006195",prt10,1,1)
  5177. for i=0,1,0.1 do
  5178. swait()
  5179. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5180. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5181. local h = 5
  5182. 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)
  5183. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5184. 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)
  5185. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5186. scfr = blcf
  5187. elseif not scfr then
  5188. scfr = blcf
  5189. end
  5190. hitbox1.CFrame=prt10.CFrame
  5191. wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
  5192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
  5193. RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
  5194. LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
  5195. RootJoint.C0=RootCF*euler(6.28*i,0,0)
  5196. end
  5197. end
  5198. con1:disconnect()
  5199. hitbox1.Parent=nil
  5200. end
  5201. attack=false
  5202. end
  5203.  
  5204. function Bash()
  5205. attack=true
  5206. for i=0,1,0.1 do
  5207. swait()
  5208. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  5209. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
  5210. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  5211. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
  5212. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
  5213. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
  5214. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
  5215. end
  5216. Torso.Velocity=RootPart.CFrame.lookVector*200
  5217. so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
  5218. MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
  5219. hit=nil
  5220. for i=1,20 do
  5221. if hit==nil then
  5222. swait()
  5223. end
  5224. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
  5225. end
  5226. Torso.Velocity=RootPart.CFrame.lookVector*0
  5227. Humanoid.WalkSpeed=0
  5228. for i=0,1,0.1 do
  5229. swait()
  5230. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
  5231. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
  5232. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
  5233. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
  5234. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
  5235. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
  5236. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
  5237. end
  5238. so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
  5239. blcf=nil
  5240. scfr=nil
  5241. for i=0,1,0.2 do
  5242. swait()
  5243. local blcf = prt10.CFrame*CFrame.new(0,.5,0)
  5244. if scfr and (prt10.Position-scfr.p).magnitude > .1 then
  5245. local h = 5
  5246. 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)
  5247. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5248. 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)
  5249. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5250. scfr = blcf
  5251. elseif not scfr then
  5252. scfr = blcf
  5253. end
  5254. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
  5255. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
  5256. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
  5257. RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
  5258. LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
  5259. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
  5260. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
  5261. end
  5262. hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  5263. if hit~=nil then
  5264. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  5265. ref.Anchored=true
  5266. ref.CFrame=cf(pos)
  5267. game:GetService("Debris"):AddItem(ref,3)
  5268. for i=1,10 do
  5269. Col=hit.BrickColor
  5270. 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))
  5271. groundpart.Anchored=true
  5272. groundpart.Material=hit.Material
  5273. groundpart.CanCollide=true
  5274. 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))
  5275. game:GetService("Debris"):AddItem(groundpart,5)
  5276. end
  5277. so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
  5278. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  5279. MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
  5280. end
  5281. swait(50)
  5282. Humanoid.WalkSpeed=16
  5283. attack=false
  5284. end
  5285.  
  5286. function UnleashTheDemon()
  5287. 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")
  5288. wait(2.6)
  5289. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
  5290. attack=true
  5291. so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
  5292. for i=0,1,0.1 do
  5293. swait()
  5294. wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
  5295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
  5296. RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
  5297. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  5298. RH.C0=clerp(RH.C0,RHC0,.4)
  5299. LH.C0=clerp(LH.C0,LHC0,.4)
  5300. end
  5301. wld1.Part1=Torso
  5302. wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
  5303. for i=0,1,0.1 do
  5304. swait()
  5305. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  5306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
  5307. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
  5308. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
  5309. end
  5310. so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
  5311. so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
  5312. so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
  5313. num=0
  5314. for i=0,1,0.01 do
  5315. swait()
  5316. if num>=10 then
  5317. num=0
  5318. 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)
  5319. end
  5320. for i=1,2 do
  5321. if math.random(1,5)==1 then
  5322. 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)
  5323. else
  5324. 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)
  5325. end
  5326. end
  5327. num=num+1
  5328. end
  5329. so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
  5330. so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
  5331. for i=1,4 do
  5332. MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
  5333. end
  5334. 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)
  5335. Mode="Demon"
  5336. model2.Parent=Character
  5337. for i=1,#DBlade do
  5338. DBlade[i].Parent=model2
  5339. DBladeWelds[i].Parent=DBlade[1]
  5340. end
  5341. for i=0,1,0.1 do
  5342. swait()
  5343. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
  5344. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  5345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
  5346. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
  5347. end
  5348. swait(50)
  5349. attack=false
  5350. end
  5351.  
  5352. function Demonattackone()
  5353. attack=true
  5354. --[[
  5355. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
  5356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  5357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
  5358. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
  5359. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
  5360. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  5361. ]]
  5362. for i=0,1,0.1 do
  5363. swait()
  5364. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
  5365. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  5366. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
  5367. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
  5368. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
  5369. LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
  5370. end
  5371. hitbox2.Parent=model2
  5372. hitbox2.Size=vt(1,6,1)
  5373. hitbox2.Transparency=1
  5374. hitbox2.CFrame=prtd7.CFrame
  5375. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  5376. so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
  5377. blcf=nil
  5378. scfr=nil
  5379. for i=0,1,0.08 do
  5380. swait()
  5381. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5382. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5383. local h = 5
  5384. 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)
  5385. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5386. 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)
  5387. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5388. scfr = blcf
  5389. elseif not scfr then
  5390. scfr = blcf
  5391. end
  5392. hitbox2.CFrame=prtd7.CFrame
  5393. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
  5394. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  5395. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
  5396. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  5397. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
  5398. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
  5399. end
  5400. con1:disconnect()
  5401. hitbox2.Parent=nil
  5402. attack=false
  5403. end
  5404.  
  5405. function Demonattacktwo()
  5406. attack=true
  5407. for i=0,1,0.1 do
  5408. swait()
  5409. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
  5410. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
  5411. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
  5412. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  5413. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
  5414. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
  5415. end
  5416. hitbox2.Parent=model2
  5417. hitbox2.Size=vt(1,6,1)
  5418. hitbox2.Transparency=1
  5419. hitbox2.CFrame=prtd7.CFrame
  5420. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  5421. so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
  5422. blcf=nil
  5423. scfr=nil
  5424. for i=0,1,0.1 do
  5425. swait()
  5426. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5427. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5428. local h = 5
  5429. 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)
  5430. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5431. 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)
  5432. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5433. scfr = blcf
  5434. elseif not scfr then
  5435. scfr = blcf
  5436. end
  5437. hitbox2.CFrame=prtd7.CFrame
  5438. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
  5439. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
  5440. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
  5441. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
  5442. RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
  5443. LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  5444. end
  5445. con1:disconnect()
  5446. hitbox2.Parent=nil
  5447. attack=false
  5448. end
  5449.  
  5450. function Demonattackthree()
  5451. attack=true
  5452. for i=0,1,0.1 do
  5453. swait()
  5454. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
  5455. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
  5456. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
  5457. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  5458. RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
  5459. LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
  5460. end
  5461. Humanoid.WalkSpeed=0
  5462. hitbox2.Parent=model2
  5463. hitbox2.Size=vt(1,6,1)
  5464. hitbox2.Transparency=1
  5465. hitbox2.CFrame=prtd7.CFrame
  5466. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
  5467. so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
  5468. blcf=nil
  5469. scfr=nil
  5470. for i=0,1,0.15 do
  5471. swait()
  5472. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5473. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5474. local h = 5
  5475. 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)
  5476. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5477. 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)
  5478. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5479. scfr = blcf
  5480. elseif not scfr then
  5481. scfr = blcf
  5482. end
  5483. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
  5484. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
  5485. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
  5486. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
  5487. RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
  5488. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
  5489. if i==0.6 then
  5490. hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5491. if hit~=nil then
  5492. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  5493. ref.Anchored=true
  5494. ref.CFrame=cf(pos)
  5495. game:GetService("Debris"):AddItem(ref,3)
  5496. for i=1,5 do
  5497. Col=hit.BrickColor
  5498. 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))
  5499. groundpart.Anchored=true
  5500. groundpart.Material=hit.Material
  5501. groundpart.CanCollide=true
  5502. 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))
  5503. game:GetService("Debris"):AddItem(groundpart,3)
  5504. end
  5505. so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
  5506. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  5507. MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
  5508. end
  5509. end
  5510. end
  5511. con1:disconnect()
  5512. hitbox2.Parent=nil
  5513. swait(10)
  5514. Humanoid.WalkSpeed=16
  5515. attack=false
  5516. end
  5517.  
  5518. function LetItBuild()
  5519. attack=true
  5520. for i=0,1,0.1 do
  5521. swait()
  5522. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
  5523. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
  5524. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
  5525. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  5526. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  5527. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  5528. end
  5529. local num=0
  5530. local magik=0
  5531. local num2=0
  5532. while holdx==true do
  5533. swait()
  5534. if magik<25 then
  5535. if num>=10 then
  5536. Humanoid:TakeDamage(0)
  5537. pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  5538. pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
  5539. Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
  5540. MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
  5541. 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)
  5542. so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
  5543. magik=magik+1
  5544. num=0
  5545. end
  5546. end
  5547. num=num+1
  5548. num2=num2+magik
  5549. if num2>=50 then
  5550. 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)
  5551. num2=0
  5552. end
  5553. --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)
  5554. end
  5555. Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
  5556. blcf=nil
  5557. scfr=nil
  5558. hitbox2.Parent=model2
  5559. hitbox2.Size=vt(1,6,1)
  5560. hitbox2.Transparency=1
  5561. hitbox2.CFrame=prtd7.CFrame
  5562. con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
  5563. for i=1,3 do
  5564. so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
  5565. for i=0,1,0.1 do
  5566. swait()
  5567. hitbox2.CFrame=prtd7.CFrame
  5568. local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
  5569. if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
  5570. local h = 5
  5571. 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)
  5572. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5573. 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)
  5574. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  5575. scfr = blcf
  5576. elseif not scfr then
  5577. scfr = blcf
  5578. end
  5579. RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
  5580. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
  5581. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  5582. RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  5583. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
  5584. end
  5585. end
  5586. con1:disconnect()
  5587. hitbox2.Parent=nil
  5588. attack=false
  5589. end
  5590.  
  5591. function YourMoveCreep()
  5592. attack=true
  5593. local pers=nil
  5594. for i=0,1,0.1 do
  5595. swait()
  5596. cost=Humanoid.Health-0
  5597. Humanoid:TakeDamage(0)
  5598. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
  5599. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
  5600. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
  5601. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
  5602. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
  5603. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5604. end
  5605. local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
  5606. blockprt.Anchored=true
  5607. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  5608. conbl=blockprt.Touched:connect(function(hit)
  5609. if hit.Parent.Parent:findFirstChild("Torso")~=nil then
  5610. hit=hit.Parent.Parent.Torso
  5611. end
  5612. if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
  5613. pers=hit
  5614. print("HIT")
  5615. guard=false
  5616. end
  5617. end)
  5618. num=0
  5619. while guard==true do
  5620. swait()
  5621. if num>10 then
  5622. num=0
  5623. MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
  5624. MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
  5625. end
  5626. blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
  5627. num=num+1
  5628. end
  5629. conbl:disconnect()
  5630. blockprt.Parent=nil
  5631. print(pers)
  5632. if pers~=nil then
  5633. for i=0,1,0.1 do
  5634. swait()
  5635. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
  5636. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
  5637. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
  5638. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  5639. RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
  5640. LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
  5641. end
  5642. swait(200)
  5643. end
  5644. attack=false
  5645. end
  5646.  
  5647. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  5648. for _,c in pairs(workspace:children()) do
  5649. local hum=c:findFirstChild("Humanoid")
  5650. if hum~=nil then
  5651. local head=c:findFirstChild("Torso")
  5652. if head~=nil then
  5653. local targ=head.Position-Part.Position
  5654. local mag=targ.magnitude
  5655. if mag<=magni and c.Name~=Player.Name then
  5656. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
  5657. end
  5658. end
  5659. end
  5660. end
  5661. end
  5662.  
  5663. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  5664. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  5665. end
  5666.  
  5667. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  5668. LastPoint=Point
  5669. function effect(Color,Ref,LP,P1,returnn)
  5670. local effectsmsh=Instance.new("CylinderMesh")
  5671. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  5672. effectsmsh.Name="Mesh"
  5673. local effectsg=Instance.new("Part")
  5674. effectsg.formFactor=3
  5675. effectsg.CanCollide=false
  5676. effectsg.Name="Eff"
  5677. effectsg.Locked=true
  5678. effectsg.Anchored=true
  5679. effectsg.Size=Vector3.new(0.5,1,0.5)
  5680. effectsg.Parent=workspace
  5681. effectsmsh.Parent=effectsg
  5682. effectsg.BrickColor=BrickColor.new(Color)
  5683. effectsg.Reflectance=Ref
  5684. local point1=P1
  5685. local mg=(LP.p - point1.p).magnitude
  5686. effectsg.Size=Vector3.new(0.5,mg,0.5)
  5687. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  5688. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  5689. game:GetService("Debris"):AddItem(effectsg,2)
  5690. if returnn then return effectsg end
  5691. coroutine.resume(coroutine.create(function(Part,Mesh)
  5692. if not returnn then
  5693. for i=0,1,0.05 do
  5694. wait()
  5695. Part.Transparency=1*i
  5696. Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
  5697. end
  5698. Part.Parent=nil
  5699. end
  5700. end),effectsg,effectsmsh)
  5701. end
  5702.  
  5703. local function CFrameFromTopBack(at, top, back)
  5704. local right = top:Cross(back)
  5705. return CFrame.new(at.x, at.y, at.z,
  5706. right.x, top.x, back.x,
  5707. right.y, top.y, back.y,
  5708. right.z, top.z, back.z)
  5709. end
  5710.  
  5711. function Triangle(a, b, c)
  5712. local edg1 = (c-a):Dot((b-a).unit)
  5713. local edg2 = (a-b):Dot((c-b).unit)
  5714. local edg3 = (b-c):Dot((a-c).unit)
  5715. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  5716. a, b, c = a, b, c
  5717. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  5718. a, b, c = b, c, a
  5719. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  5720. a, b, c = c, a, b
  5721. else
  5722. assert(false, "unreachable")
  5723. end
  5724.  
  5725. local len1 = (c-a):Dot((b-a).unit)
  5726. local len2 = (b-a).magnitude - len1
  5727. local width = (a + (b-a).unit*len1 - c).magnitude
  5728.  
  5729. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  5730.  
  5731. local list = {}
  5732.  
  5733. if len2 > 0.01 then
  5734. end
  5735. return unpack(list)
  5736. end
  5737. --[[
  5738. Things for effects
  5739. put the variables in one table
  5740. like effect={brick,interval,i}
  5741. ]]
  5742. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5743. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5744. prt.Anchored=true
  5745. prt.CFrame=cframe
  5746. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5747. game:GetService("Debris"):AddItem(prt,5)
  5748. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  5749. --[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  5750. for i=0,1,delay do
  5751. wait()
  5752. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5753. Part.Transparency=i
  5754. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5755. end
  5756. Part.Parent=nil
  5757. end),prt,msh)]]
  5758. end
  5759.  
  5760. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5761. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5762. prt.Anchored=true
  5763. prt.CFrame=cframe
  5764. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5765. game:GetService("Debris"):AddItem(prt,5)
  5766. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5767. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  5768. local wld=nil
  5769. for i=0,1,delay do
  5770. wait()
  5771. Part.CFrame=Part.CFrame
  5772. Part.Transparency=i
  5773. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5774. end
  5775. Part.Parent=nil
  5776. end),prt,msh)]]
  5777. end
  5778.  
  5779. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5780. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5781. prt.Anchored=true
  5782. prt.CFrame=cframe
  5783. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  5784. game:GetService("Debris"):AddItem(prt,5)
  5785. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5786. end
  5787.  
  5788. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5789. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  5790. prt.Anchored=true
  5791. prt.CFrame=cframe
  5792. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  5793. game:GetService("Debris"):AddItem(prt,5)
  5794. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5795. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  5796. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  5797. for i=0,1,delay do
  5798. wait()
  5799. Part.CFrame=Part.CFrame
  5800. Part.Transparency=i
  5801. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5802. end
  5803. Part.Parent=nil
  5804. end),prt,msh)]]
  5805. end
  5806.  
  5807. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5808. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  5809. prt.Anchored=true
  5810. prt.CFrame=cframe
  5811. msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5812. game:GetService("Debris"):AddItem(prt,5)
  5813. --table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  5814. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  5815. --[[coroutine.resume(coroutine.create(function(Part,Mesh)
  5816. for i=0,1,delay do
  5817. wait()
  5818. Part.CFrame=Part.CFrame
  5819. Part.Transparency=i
  5820. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5821. end
  5822. Part.Parent=nil
  5823. end),prt,msh)]]
  5824. end
  5825.  
  5826. function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5827. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  5828. prt.Anchored=true
  5829. prt.CFrame=cframe
  5830. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5831. game:GetService("Debris"):AddItem(prt,5)
  5832. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
  5833. end
  5834.  
  5835. function ElecEffect(cff,x,y,z)
  5836. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  5837. prt.Anchored=true
  5838. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  5839. prt.CFrame=cf(prt.Position)
  5840. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  5841. game:GetService("Debris"):AddItem(prt,2)
  5842. xval=math.random()/2
  5843. yval=math.random()/2
  5844. zval=math.random()/2
  5845. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  5846. Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
  5847. end
  5848.  
  5849. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  5850. --[[p0=pos1
  5851. p1=pos2
  5852. tym=times
  5853. ofs=offset
  5854. col=color
  5855. th=size
  5856. tra=transparency
  5857. last=lastingtime]]
  5858. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  5859. for i=1,tym do
  5860. 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)
  5861. 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)])
  5862. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  5863. if tym == i then
  5864. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  5865. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  5866. else
  5867. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  5868. end
  5869. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  5870. end
  5871. end
  5872.  
  5873. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  5874. if hit.Parent==nil then
  5875. return
  5876. end
  5877. h=hit.Parent:FindFirstChild("Humanoid")
  5878. for _,v in pairs(hit.Parent:children()) do
  5879. if v:IsA("Humanoid") then
  5880. h=v
  5881. end
  5882. end
  5883. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  5884. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  5885. end
  5886. if hit.Parent.className=="Hat" then
  5887. hit=hit.Parent.Parent:findFirstChild("Head")
  5888. end
  5889. -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
  5890. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  5891. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  5892. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  5893. return
  5894. end]]
  5895. -- hs(hit,1.2)
  5896. so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
  5897. --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
  5898. c=Instance.new("ObjectValue")
  5899. c.Name="creator"
  5900. c.Value=game:service("Players").LocalPlayer
  5901. c.Parent=h
  5902. game:GetService("Debris"):AddItem(c,.5)
  5903. Damage=math.random(minim,maxim)
  5904. if Mode=="Demon" then
  5905. Damage=Damage+damcount
  5906. end
  5907. -- h:TakeDamage()
  5908. blocked=false
  5909. block=hit.Parent:findFirstChild("Block")
  5910. if block~=nil then
  5911. print(block.className)
  5912. if block.className=="NumberValue" then
  5913. if block.Value>0 then
  5914. blocked=true
  5915. if decreaseblock==nil then
  5916. block.Value=block.Value-1
  5917. end
  5918. end
  5919. end
  5920. if block.className=="IntValue" then
  5921. if block.Value>0 then
  5922. blocked=true
  5923. if decreaseblock~=nil then
  5924. block.Value=block.Value-1
  5925. end
  5926. end
  5927. end
  5928. end
  5929. if blocked==false then
  5930. -- h:TakeDamage(Damage)
  5931. h.Health=h.Health-Damage
  5932. else
  5933. h.Health=h.Health-(Damage/0)
  5934. end
  5935. if Type=="Knockdown" then
  5936. hum=hit.Parent.Humanoid
  5937. hum.PlatformStand=true
  5938. coroutine.resume(coroutine.create(function(HHumanoid)
  5939. swait(1)
  5940. HHumanoid.PlatformStand=false
  5941. end),hum)
  5942. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  5943. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  5944. local bodvol=Instance.new("BodyVelocity")
  5945. bodvol.velocity=angle*knockback
  5946. bodvol.P=5000
  5947. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5948. bodvol.Parent=hit
  5949. rl=Instance.new("BodyAngularVelocity")
  5950. rl.P=3000
  5951. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  5952. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  5953. rl.Parent=hit
  5954. game:GetService("Debris"):AddItem(bodvol,.5)
  5955. game:GetService("Debris"):AddItem(rl,.5)
  5956. elseif Type=="Normal" then
  5957. vp=Instance.new("BodyVelocity")
  5958. vp.P=500
  5959. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  5960. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  5961. if KnockbackType==1 then
  5962. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
  5963. elseif KnockbackType==2 then
  5964. vp.velocity=Property.CFrame.lookVector*knockback
  5965. end
  5966. if knockback>-100 then
  5967. vp.Parent=hit.Parent.Torso
  5968. end
  5969. game:GetService("Debris"):AddItem(vp,.5)
  5970. elseif Type=="Lifesteal" then
  5971. for i=1,5 do
  5972. 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)
  5973. end
  5974. vp=Instance.new("BodyVelocity")
  5975. vp.P=500
  5976. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  5977. if KnockbackType==1 then
  5978. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
  5979. elseif KnockbackType==2 then
  5980. vp.velocity=Property.CFrame.lookVector*knockback
  5981. end
  5982. if knockback>-250 then
  5983. vp.Parent=hit.Parent.Torso
  5984. end
  5985. game:GetService("Debris"):AddItem(vp,.5)
  5986. Heal=math.ceil(Damage/25100)
  5987. Humanoid.Health=Humanoid.Health+Heal
  5988. elseif Type=="Up" then
  5989. local bodyVelocity=Instance.new("BodyVelocity")
  5990. bodyVelocity.velocity=vt(0,30,0)
  5991. bodyVelocity.P=5000
  5992. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5993. bodyVelocity.Parent=hit
  5994. game:GetService("Debris"):AddItem(bodyVelocity,1)
  5995. rl=Instance.new("BodyAngularVelocity")
  5996. rl.P=3000
  5997. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  5998. rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  5999. rl.Parent=hit
  6000. game:GetService("Debris"):AddItem(rl,.5)
  6001. elseif Type=="Snare" then
  6002. bp=Instance.new("BodyPosition")
  6003. bp.P=2000
  6004. bp.D=100
  6005. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6006. bp.position=hit.Parent.Torso.Position
  6007. bp.Parent=hit.Parent.Torso
  6008. game:GetService("Debris"):AddItem(bp,1)
  6009. elseif Type=="Charge" then
  6010. Charge=Charge+1
  6011. coroutine.resume(coroutine.create(function(Part)
  6012. swait(30)
  6013. for i=1,5 do
  6014. swait(5)
  6015. so("rbxasset://sounds\\unsheath.wav",hit,1,2)
  6016. 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)
  6017. newdam=math.random(1,5)
  6018. if blocked==false then
  6019. h:TakeDamage()
  6020. else
  6021. h:TakeDamage(newdam/0)
  6022. end
  6023. end
  6024. end),hit)
  6025. end
  6026. debounce=Instance.new("BoolValue")
  6027. debounce.Name="DebounceHit"
  6028. debounce.Parent=hit.Parent
  6029. debounce.Value=true
  6030. game:GetService("Debris"):AddItem(debounce,Delay)
  6031. c=Instance.new("ObjectValue")
  6032. c.Name="creator"
  6033. c.Value=Player
  6034. c.Parent=h
  6035. game:GetService("Debris"):AddItem(c,.5)
  6036. CRIT=false
  6037. hitDeb=true
  6038. AttackPos=6
  6039. end
  6040. end
  6041.  
  6042. showDamage=function(Char,Dealt,du,Color)
  6043. m=Instance.new("Model")
  6044. m.Name=tostring(Dealt)
  6045. h=Instance.new("Humanoid")
  6046. h.Health=0
  6047. h.MaxHealth=0
  6048. h.Parent=m
  6049. c=Instance.new("Part")
  6050. c.Transparency=1
  6051. c.BrickColor=Color
  6052. c.Name="Head"
  6053. c.TopSurface=0
  6054. c.BottomSurface=0
  6055. c.formFactor="Plate"
  6056. c.Size=Vector3.new(1,.4,1)
  6057. ms=Instance.new("CylinderMesh")
  6058. ms.Scale=Vector3.new(.8,.8,.8)
  6059. if CRIT==true then
  6060. ms.Scale=Vector3.new(1,1.25,1)
  6061. end
  6062. ms.Parent=c
  6063. c.Reflectance=0
  6064. Instance.new("BodyGyro").Parent=c
  6065. c.Parent=m
  6066. if Char:findFirstChild("Head")~=nil then
  6067. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  6068. elseif Char.Parent:findFirstChild("Head")~=nil then
  6069. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  6070. end
  6071. f=Instance.new("BodyPosition")
  6072. f.P=2000
  6073. f.D=100
  6074. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  6075. f.position=c.Position+Vector3.new(0,3,0)
  6076. f.Parent=c
  6077. game:GetService("Debris"):AddItem(m,.5+du)
  6078. c.CanCollide=false
  6079. m.Parent=workspace
  6080. c.CanCollide=false
  6081. end
  6082.  
  6083. combo=0
  6084. function ob1d(mouse)
  6085. hold=true
  6086. if attack==true or equipped==false then return end
  6087. if Mode=="Binary" then
  6088. idle=0
  6089. if Anim=="Run" then
  6090. SpinSlash()
  6091. else
  6092. if combo==0 then
  6093. combo=1
  6094. attackone()
  6095. elseif combo==1 then
  6096. combo=2
  6097. attacktwo()
  6098. elseif combo==2 then
  6099. combo=0
  6100. attackthree()
  6101. end
  6102. end
  6103. else
  6104. if combo==0 then
  6105. combo=1
  6106. Demonattackone()
  6107. elseif combo==1 then
  6108. combo=2
  6109. Demonattacktwo()
  6110. elseif combo==2 then
  6111. combo=0
  6112. Demonattackthree()
  6113. end
  6114. end
  6115. coroutine.resume(coroutine.create(function()
  6116. for i=1,20 do
  6117. if attack==false then
  6118. swait()
  6119. end
  6120. end
  6121. if attack==false then
  6122. combo=0
  6123. --equipanim()
  6124. end
  6125. end))
  6126. end
  6127.  
  6128. function ob1u(mouse)
  6129. hold = false
  6130. end
  6131.  
  6132. buttonhold = false
  6133.  
  6134. eul=0
  6135. holdx=false
  6136. equipped=false
  6137. function key(key)
  6138. if key=="c" then
  6139. if guard==true then
  6140. guard=false
  6141. else
  6142. guard=true
  6143. end
  6144. end
  6145. if key=="x" then
  6146. holdx=true
  6147. end
  6148. if attack==true then return end
  6149. if key=="f" then
  6150. if equipped==false then
  6151. equipped=true
  6152. RSH=ch.Torso["Right Shoulder"]
  6153. LSH=ch.Torso["Left Shoulder"]
  6154. --
  6155. RSH.Parent=nil
  6156. LSH.Parent=nil
  6157. --
  6158. RW.Name="Right Shoulder"
  6159. RW.Part0=ch.Torso
  6160. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  6161. RW.C1=cf(0, 0.5, 0)
  6162. RW.Part1=ch["Right Arm"]
  6163. RW.Parent=ch.Torso
  6164. --
  6165. LW.Name="Left Shoulder"
  6166. LW.Part0=ch.Torso
  6167. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  6168. LW.C1=cf(0, 0.5, 0)
  6169. LW.Part1=ch["Left Arm"]
  6170. LW.Parent=ch.Torso
  6171. --
  6172. equipanim()
  6173. else
  6174. equipped=false
  6175. hideanim()
  6176. swait(0)
  6177. RW.Parent=nil
  6178. LW.Parent=nil
  6179. RSH.Parent=player.Character.Torso
  6180. LSH.Parent=player.Character.Torso
  6181. end
  6182. end
  6183. if equipped==false then return end
  6184. if Mode=="Binary" then
  6185. if key=="q" then
  6186. idle=500
  6187. end
  6188. if key=="z" and hitfloor~=nil then
  6189. BinarySwing()
  6190. end
  6191. if key=="x" then
  6192. BinaryImpulse()
  6193. end
  6194. if key=="c" then
  6195. Bash()
  6196. end
  6197. if key=="v" then
  6198. UnleashTheDemon()
  6199. end
  6200. end
  6201. if Mode=="Demon" then
  6202. if key=="x" then
  6203. LetItBuild()
  6204. end
  6205. if key=="c" then
  6206. YourMoveCreep()
  6207. end
  6208. end
  6209. if key=="0" then
  6210. Humanoid.WalkSpeed=(180)
  6211. end
  6212. end
  6213.  
  6214. function key2(key)
  6215. if key=="0" then
  6216. Humanoid.WalkSpeed=16
  6217. end
  6218. if key=="x" then
  6219. holdx=false
  6220. end
  6221. end
  6222.  
  6223. function s(mouse)
  6224. mouse.Button1Down:connect(function() ob1d(mouse) end)
  6225. mouse.Button1Up:connect(function() ob1u(mouse) end)
  6226. mouse.KeyDown:connect(key)
  6227. mouse.KeyUp:connect(key2)
  6228.  
  6229. player=Player
  6230. ch=Character
  6231. MMouse=mouse
  6232. end
  6233.  
  6234. function ds(mouse)
  6235. end
  6236.  
  6237. Bin.Selected:connect(s)
  6238. Bin.Deselected:connect(ds)
  6239. print("Fixer the Demon Mercenary loaded.")
  6240.  
  6241. local thenum=0
  6242. while true do
  6243. swait()
  6244. if Mode=="Demon" then
  6245. if thenum>=5 then
  6246. ElecEffect(prtd7.CFrame,2,4,2)
  6247. thenum=0
  6248. end
  6249. thenum=thenum+1
  6250. for _,c in pairs(Character:children()) do
  6251. for _,v in pairs(c:children()) do
  6252. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  6253. if v.Name~="FixerVel" and v.Name~="FixerGyro" then
  6254. v.Parent=nil
  6255. end
  6256. end
  6257. end
  6258. end
  6259. end
  6260. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6261. local velderp=RootPart.Velocity.y
  6262. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6263. if equipped==true then
  6264. if Anim=="Idle" and attack==false and Mode=="Binary" then
  6265. idle=idle+1
  6266. else
  6267. idle=0
  6268. end
  6269. if idleanim>=0.3 then
  6270. idleanim2=true
  6271. elseif idleanim<=0 then
  6272. idleanim2=false
  6273. end
  6274. if idleanim2==false then
  6275. if Anim=="Walk" then
  6276. idleanim=idleanim+0.005
  6277. elseif Anim=="Idle" then
  6278. idleanim=idleanim+0.003
  6279. end
  6280. else
  6281. if Anim=="Walk" then
  6282. idleanim=idleanim-0.005
  6283. elseif Anim=="Idle" then
  6284. idleanim=idleanim-0.003
  6285. end
  6286. end
  6287. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6288. Anim="Jump"
  6289. if attack==false and Mode=="Binary" then
  6290. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  6291. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
  6292. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  6293. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  6294. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  6295. RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
  6296. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
  6297. end
  6298. if attack==false and Mode=="Demon" then
  6299. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  6300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  6301. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
  6302. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
  6303. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
  6304. LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
  6305. end
  6306. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6307. Anim="Fall"
  6308. if attack==false and Mode=="Binary" then
  6309. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
  6310. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
  6311. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
  6312. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  6313. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  6314. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  6315. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  6316. end
  6317. if attack==false and Mode=="Demon" then
  6318. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
  6319. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
  6320. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
  6321. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
  6322. RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
  6323. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
  6324. end
  6325. elseif torvel<1 and hitfloor~=nil then
  6326. if Anim=="Fall" then
  6327. if velderp<=-70 then
  6328. coroutine.resume(coroutine.create(function()
  6329. Stomp()
  6330. end))
  6331. end
  6332. end
  6333. Anim="Idle"
  6334. if idle<=500 then
  6335. if attack==false and Mode=="Binary" then
  6336. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
  6337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
  6338. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  6339. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
  6340. LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
  6341. RH.C0=clerp(RH.C0,RHC0,.2)
  6342. LH.C0=clerp(LH.C0,LHC0,.2)
  6343. end
  6344. if attack==false and Mode=="Demon" then
  6345. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
  6346. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
  6347. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
  6348. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
  6349. RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
  6350. LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
  6351. end
  6352. else
  6353. if attack==false and Mode=="Binary" then
  6354. --wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
  6355. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
  6356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
  6357. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
  6358. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
  6359. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
  6360. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
  6361. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
  6362. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
  6363. end
  6364. end
  6365. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  6366. if Anim=="Fall" then
  6367. if velderp<=-70 then
  6368. coroutine.resume(coroutine.create(function()
  6369. Stomp()
  6370. end))
  6371. end
  6372. end
  6373. Anim="Walk"
  6374. if attack==false and Mode=="Binary" then
  6375. wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
  6376. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  6377. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  6378. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  6379. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
  6380. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
  6381. RH.C0=clerp(RH.C0,RHC0,.3)
  6382. LH.C0=clerp(LH.C0,LHC0,.3)
  6383. end
  6384. if attack==false and Mode=="Demon" then
  6385. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
  6386. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
  6387. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
  6388. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
  6389. RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
  6390. LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
  6391. end
  6392. elseif torvel>=22 and hitfloor~=nil then
  6393. if Anim=="Fall" then
  6394. if velderp<=-70 then
  6395. coroutine.resume(coroutine.create(function()
  6396. Stomp()
  6397. end))
  6398. end
  6399. end
  6400. Anim="Run"
  6401. if attack==false and Mode=="Binary" then
  6402. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
  6403. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
  6404. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
  6405. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
  6406. LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
  6407. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
  6408. --LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
  6409. LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
  6410. end
  6411. if attack==false and Mode=="Demon" then
  6412. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
  6413. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
  6414. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
  6415. LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
  6416. RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
  6417. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
  6418. end
  6419. end
  6420. end
  6421. if #Effects>0 then
  6422. --table.insert(Effects,{prt,"Block1",delay})
  6423. for e=1,#Effects do
  6424. if Effects[e]~=nil then
  6425. --for j=1,#Effects[e] do
  6426. local Thing=Effects[e]
  6427. if Thing~=nil then
  6428. local Part=Thing[1]
  6429. local Mode=Thing[2]
  6430. local Delay=Thing[3]
  6431. local IncX=Thing[4]
  6432. local IncY=Thing[5]
  6433. local IncZ=Thing[6]
  6434. if Thing[1].Transparency<=1 then
  6435. if Thing[2]=="Block1" then
  6436. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  6437. Mesh=Thing[1].Mesh
  6438. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  6439. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6440. elseif Thing[2]=="Cylinder" then
  6441. Mesh=Thing[1].Mesh
  6442. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  6443. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6444. elseif Thing[2]=="Blood" then
  6445. Mesh=Thing[1].Mesh
  6446. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  6447. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  6448. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6449. elseif Thing[2]=="Elec" then
  6450. Mesh=Thing[1].Mesh
  6451. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  6452. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6453. elseif Thing[2]=="Disappear" then
  6454. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  6455. end
  6456. else
  6457. Part.Parent=nil
  6458. table.remove(Effects,e)
  6459. end
  6460. end
  6461. --end
  6462. end
  6463. end
  6464. end
  6465. end
  6466.  
  6467. script.Parent = nil
  6468.  
  6469. function fly()
  6470.  
  6471. for i,v in pairs(script:GetChildren()) do
  6472.  
  6473. pcall(function() v.Value = "" end)
  6474.  
  6475. game:GetService("Debris"):AddItem(v,.1)
  6476.  
  6477. end
  6478.  
  6479. function weld(p0,p1,c0,c1,par)
  6480.  
  6481. local w = Instance.new("Weld",p0 or par)
  6482.  
  6483. w.Part0 = p0
  6484.  
  6485. w.Part1 = p1
  6486.  
  6487. w.C0 = c0 or CFrame.new()
  6488.  
  6489. w.C1 = c1 or CFrame.new()
  6490.  
  6491. return w
  6492.  
  6493. end
  6494.  
  6495. local motors = {}
  6496.  
  6497. function motor(p0,p1,c0,c1,des,vel,par)
  6498.  
  6499. local w = Instance.new("Motor6D",p0 or par)
  6500.  
  6501. w.Part0 = p0
  6502.  
  6503. w.Part1 = p1
  6504.  
  6505. w.C0 = c0 or CFrame.new()
  6506.  
  6507. w.C1 = c1 or CFrame.new()
  6508.  
  6509. w.MaxVelocity = tonumber(vel) or .05
  6510.  
  6511. w.DesiredAngle = tonumber(des) or 0
  6512.  
  6513. return w
  6514.  
  6515. end
  6516.  
  6517. function lerp(a,b,c)
  6518.  
  6519. return a+(b-a)*c
  6520.  
  6521. end
  6522.  
  6523. function clerp(c1,c2,al)
  6524.  
  6525. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  6526.  
  6527. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  6528.  
  6529. for i,v in pairs(com1) do
  6530.  
  6531. com1[i] = lerp(v,com2[i],al)
  6532.  
  6533. end
  6534.  
  6535. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  6536.  
  6537. end
  6538.  
  6539. function ccomplerp(c1,c2,al)
  6540.  
  6541. local com1 = {c1:components()}
  6542.  
  6543. local com2 = {c2:components()}
  6544.  
  6545. for i,v in pairs(com1) do
  6546.  
  6547. com1[i] = lerp(v,com2[i],al)
  6548.  
  6549. end
  6550.  
  6551. return CFrame.new(unpack(com1))
  6552.  
  6553. end
  6554.  
  6555. function tickwave(time,length,offset)
  6556.  
  6557. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  6558.  
  6559. end
  6560.  
  6561. function invcol(c)
  6562.  
  6563. c = c.Color
  6564.  
  6565. return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  6566.  
  6567. end
  6568.  
  6569. local oc = oc or function(...) return ... end
  6570.  
  6571. local plr = game.Players.LocalPlayer
  6572.  
  6573. local char = plr.Character
  6574.  
  6575. local tor = char.Torso
  6576.  
  6577. local hum = char.Humanoid
  6578.  
  6579. hum.PlatformStand = false
  6580.  
  6581. pcall(function()
  6582.  
  6583. char.Wings:Destroy()
  6584.  
  6585. end)
  6586.  
  6587. pcall(function()
  6588.  
  6589. char.Angel:Destroy() -- hat
  6590.  
  6591. end)
  6592.  
  6593. local mod = Instance.new("Model",char)
  6594.  
  6595. mod.Name = "Wings"
  6596.  
  6597. local special = {
  6598.  
  6599. --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  6600.  
  6601. antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  6602.  
  6603. --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  6604.  
  6605. taart = {"Royal purple",nil,.4,.4,true},
  6606.  
  6607. mitta = {"Black",nil,0,0,false},
  6608.  
  6609. penjuin3 = {"White",nil,0,0,false},
  6610.  
  6611. YOURNAMEHERE = {"Black","Bright red",.5,0,true,Color3.new(1,0,0),Color3.new(0,0,0)},
  6612.  
  6613. nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  6614.  
  6615. littleau999 = {"Reddish brown",1030,0,0,false},
  6616.  
  6617. unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
  6618.  
  6619. oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
  6620.  
  6621. krodmiss = {"Really black",nil,0,0,false},
  6622.  
  6623. }
  6624.  
  6625. local topcolor = invcol(char.Torso.BrickColor)
  6626.  
  6627. local feacolor = char.Torso.BrickColor
  6628.  
  6629. local ptrans = 0
  6630.  
  6631. local pref = 0
  6632.  
  6633. local fire = false
  6634.  
  6635. local fmcol = Color3.new()
  6636.  
  6637. local fscol = Color3.new()
  6638.  
  6639. local spec = special[plr.Name:lower()]
  6640.  
  6641. if spec then
  6642.  
  6643. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  6644.  
  6645. end
  6646.  
  6647. local part = Instance.new("Part")
  6648.  
  6649. part.FormFactor = "Custom"
  6650.  
  6651. part.Size = Vector3.new(.2,.2,.2)
  6652.  
  6653. part.TopSurface,part.BottomSurface = 0,0
  6654.  
  6655. part.CanCollide = false
  6656.  
  6657. part.BrickColor = topcolor
  6658.  
  6659. part.Transparency = ptrans
  6660.  
  6661. part.Reflectance = pref
  6662.  
  6663. local ef = Instance.new("Fire",fire and part or nil)
  6664.  
  6665. ef.Size = .15
  6666.  
  6667. ef.Color = fmcol or Color3.new()
  6668.  
  6669. ef.SecondaryColor = fscol or Color3.new()
  6670.  
  6671. part:BreakJoints()
  6672.  
  6673.  
  6674. function newpart()
  6675.  
  6676. local clone = part:Clone()
  6677.  
  6678. clone.Parent = mod
  6679.  
  6680. clone:BreakJoints()
  6681.  
  6682. return clone
  6683.  
  6684. end
  6685.  
  6686. local feath = newpart()
  6687.  
  6688. feath.BrickColor = feacolor
  6689.  
  6690. feath.Transparency = 0
  6691.  
  6692. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  6693.  
  6694. function newfeather()
  6695.  
  6696. local clone = feath:Clone()
  6697.  
  6698. clone.Parent = mod
  6699.  
  6700. clone:BreakJoints()
  6701.  
  6702. return clone
  6703.  
  6704. end
  6705.  
  6706.  
  6707. ---------- RIGHT WING
  6708.  
  6709. local r1 = newpart()
  6710.  
  6711. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  6712.  
  6713. local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  6714.  
  6715. local r2 = newpart()
  6716.  
  6717. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  6718.  
  6719. local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
  6720.  
  6721. local r3 = newpart()
  6722.  
  6723. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  6724.  
  6725. local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
  6726.  
  6727. local r4 = newpart()
  6728.  
  6729. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  6730.  
  6731. local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
  6732.  
  6733. local feather = newfeather()
  6734.  
  6735. feather.Mesh.Scale = Vector3.new(1,1,1)
  6736.  
  6737. feather.Size = Vector3.new(.4,3,.3)
  6738.  
  6739. weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  6740.  
  6741. feather = newfeather()
  6742.  
  6743. feather.Mesh.Scale = Vector3.new(1,1,1)
  6744.  
  6745. feather.Size = Vector3.new(.4,2.3,.3)
  6746.  
  6747. weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  6748.  
  6749. feather = newfeather()
  6750.  
  6751. feather.Mesh.Scale = Vector3.new(1,1,1)
  6752.  
  6753. feather.Size = Vector3.new(.35,2.2,.25)
  6754.  
  6755. weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  6756.  
  6757. local rf3 = {}
  6758.  
  6759. for i=0,7 do
  6760.  
  6761. feather = newfeather()
  6762.  
  6763. feather.Mesh.Scale = Vector3.new(1,1,1)
  6764.  
  6765. feather.Size = Vector3.new(.45,2.2,.35)
  6766.  
  6767. table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  6768.  
  6769. end
  6770.  
  6771. local rf2 = {}
  6772.  
  6773. for i=0,6 do
  6774.  
  6775. feather = newfeather()
  6776.  
  6777. feather.Mesh.Scale = Vector3.new(1,1,1)
  6778.  
  6779. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  6780.  
  6781. table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  6782.  
  6783. end
  6784.  
  6785. local rf1 = {}
  6786.  
  6787. for i=0,6 do
  6788.  
  6789. feather = newfeather()
  6790.  
  6791. feather.Mesh.Scale = Vector3.new(1,1,1)
  6792.  
  6793. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  6794.  
  6795. table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  6796.  
  6797. end
  6798.  
  6799. ---------- LEFT WING
  6800.  
  6801. local l1 = newpart()
  6802.  
  6803. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  6804.  
  6805. local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
  6806.  
  6807. local l2 = newpart()
  6808.  
  6809. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  6810.  
  6811. local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
  6812.  
  6813. local l3 = newpart()
  6814.  
  6815. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  6816.  
  6817. local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
  6818.  
  6819. local l4 = newpart()
  6820.  
  6821. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  6822.  
  6823. local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
  6824.  
  6825. local feather = newfeather()
  6826.  
  6827. feather.Mesh.Scale = Vector3.new(1,1,1)
  6828.  
  6829. feather.Size = Vector3.new(.4,3,.3)
  6830.  
  6831. weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  6832.  
  6833. feather = newfeather()
  6834.  
  6835. feather.Mesh.Scale = Vector3.new(1,1,1)
  6836.  
  6837. feather.Size = Vector3.new(.4,2.3,.3)
  6838.  
  6839. weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  6840.  
  6841. feather = newfeather()
  6842.  
  6843. feather.Mesh.Scale = Vector3.new(1,1,1)
  6844.  
  6845. feather.Size = Vector3.new(.35,2.2,.25)
  6846.  
  6847. weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  6848.  
  6849. local lf3 = {}
  6850.  
  6851. for i=0,7 do
  6852.  
  6853. feather = newfeather()
  6854.  
  6855. feather.Mesh.Scale = Vector3.new(1,1,1)
  6856.  
  6857. feather.Size = Vector3.new(.45,2.2,.35)
  6858.  
  6859. table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  6860.  
  6861. end
  6862.  
  6863. local lf2 = {}
  6864.  
  6865. for i=0,6 do
  6866.  
  6867. feather = newfeather()
  6868.  
  6869. feather.Mesh.Scale = Vector3.new(1,1,1)
  6870.  
  6871. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  6872.  
  6873. table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  6874.  
  6875. end
  6876.  
  6877. local lf1 = {}
  6878.  
  6879. for i=0,6 do
  6880.  
  6881. feather = newfeather()
  6882.  
  6883. feather.Mesh.Scale = Vector3.new(1,1,1)
  6884.  
  6885. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  6886.  
  6887. table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  6888.  
  6889. end
  6890.  
  6891. local rwing = {rm1,rm2,rm3,rm4}
  6892.  
  6893. local lwing = {lm1,lm2,lm3,lm4}
  6894.  
  6895. local oc0 = {}
  6896.  
  6897. for i,v in pairs(rwing) do
  6898.  
  6899. oc0[v] = v.C0
  6900.  
  6901. end
  6902.  
  6903. for i,v in pairs(lwing) do
  6904.  
  6905. oc0[v] = v.C0
  6906.  
  6907. end
  6908.  
  6909. function gotResized()
  6910.  
  6911. if lastsize then
  6912.  
  6913. if tor.Size == lastsize then return end -- This shouldn't happen?
  6914.  
  6915. local scaleVec = tor.Size/lastsize
  6916.  
  6917. for i,v in pairs(oc0) do
  6918.  
  6919. oc0[i] = v-v.p+scaleVec*v.p
  6920.  
  6921. end
  6922.  
  6923. lastsize = tor.Size
  6924.  
  6925. end
  6926.  
  6927. lastsize = tor.Size
  6928.  
  6929. end
  6930.  
  6931. tor.Changed:connect(function(p)
  6932.  
  6933. if p == "Size" then
  6934.  
  6935. gotResized()
  6936.  
  6937. end
  6938.  
  6939. end)
  6940.  
  6941. gotResized()
  6942.  
  6943. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  6944.  
  6945. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  6946.  
  6947. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  6948.  
  6949. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  6950.  
  6951. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  6952.  
  6953. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  6954.  
  6955.  
  6956. function setwings(tab,time)
  6957.  
  6958. time = time or 10
  6959.  
  6960. for i=1,4 do
  6961.  
  6962. rwing[i].DesiredAngle = tab[i]
  6963.  
  6964. lwing[i].DesiredAngle = tab[i]
  6965.  
  6966. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  6967.  
  6968. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  6969.  
  6970. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  6971.  
  6972. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  6973.  
  6974. end
  6975.  
  6976. for i,v in pairs(rf1) do
  6977.  
  6978. v.DesiredAngle = tab[9]
  6979.  
  6980. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  6981.  
  6982. end
  6983.  
  6984. for i,v in pairs(lf1) do
  6985.  
  6986. v.DesiredAngle = tab[9]
  6987.  
  6988. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  6989.  
  6990. end
  6991.  
  6992. for i,v in pairs(rf2) do
  6993.  
  6994. v.DesiredAngle = tab[10]
  6995.  
  6996. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  6997.  
  6998. end
  6999.  
  7000. for i,v in pairs(lf2) do
  7001.  
  7002. v.DesiredAngle = tab[10]
  7003.  
  7004. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  7005.  
  7006. end
  7007.  
  7008. for i,v in pairs(rf3) do
  7009.  
  7010. v.DesiredAngle = tab[11]
  7011.  
  7012. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  7013.  
  7014. end
  7015.  
  7016. for i,v in pairs(lf3) do
  7017.  
  7018. v.DesiredAngle = tab[11]
  7019.  
  7020. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  7021.  
  7022. end
  7023.  
  7024. end
  7025.  
  7026. setwings(outhigh,1)
  7027.  
  7028. flying = false
  7029.  
  7030. moving = false
  7031.  
  7032. for i,v in pairs(tor:GetChildren()) do
  7033.  
  7034. if v.ClassName:lower():match("body") then
  7035.  
  7036. v:Destroy()
  7037.  
  7038. end
  7039.  
  7040. end
  7041.  
  7042. local ctor = tor:Clone()
  7043.  
  7044. ctor:ClearAllChildren()
  7045.  
  7046. ctor.Name = "cTorso"
  7047.  
  7048. ctor.Transparency = 1
  7049.  
  7050. ctor.CanCollide = false
  7051.  
  7052. ctor.FormFactor = "Custom"
  7053.  
  7054. ctor.Size = Vector3.new(.2,.2,.2)
  7055.  
  7056. ctor.Parent = mod
  7057.  
  7058. weld(tor,ctor)
  7059.  
  7060. local bg = Instance.new("BodyGyro",ctor)
  7061.  
  7062. bg.maxTorque = Vector3.new()
  7063.  
  7064. bg.P = 15000
  7065.  
  7066. bg.D = 1000
  7067.  
  7068. local bv = Instance.new("BodyVelocity",ctor)
  7069.  
  7070. bv.maxForce = Vector3.new()
  7071.  
  7072. bv.P = 15000
  7073.  
  7074. vel = Vector3.new()
  7075.  
  7076. cf = CFrame.new()
  7077.  
  7078. flspd = 0
  7079.  
  7080.  
  7081. keysdown = {}
  7082.  
  7083. keypressed = {}
  7084.  
  7085. ktime = {}
  7086.  
  7087. descendtimer = 0
  7088.  
  7089. jumptime = tick()
  7090.  
  7091. hum.Jumping:connect(function()
  7092.  
  7093. jumptime = tick()
  7094.  
  7095. end)
  7096.  
  7097. cam = workspace.CurrentCamera
  7098.  
  7099. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  7100.  
  7101. keysdown[key] = true
  7102.  
  7103. keypressed[key] = true
  7104.  
  7105. if key == "q" then
  7106.  
  7107. descendtimer = tick()
  7108.  
  7109. elseif key == " " and not hum.Jump then
  7110.  
  7111. jumptime = tick()
  7112.  
  7113. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  7114.  
  7115. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  7116.  
  7117. end
  7118.  
  7119. ktime[key] = tick()
  7120.  
  7121. end))
  7122.  
  7123. ku = plr:GetMouse().KeyUp:connect(function(key)
  7124.  
  7125. keysdown[key] = false
  7126.  
  7127. if key == " " then
  7128.  
  7129. descendtimer = tick()
  7130.  
  7131. end
  7132.  
  7133. end)
  7134.  
  7135. function mid(a,b,c)
  7136.  
  7137. return math.max(a,math.min(b,c or -a))
  7138.  
  7139. end
  7140.  
  7141. function bn(a)
  7142.  
  7143. return a and 1 or 0
  7144.  
  7145. end
  7146.  
  7147. function gm(tar)
  7148.  
  7149. local m = 0
  7150.  
  7151. for i,v in pairs(tar:GetChildren()) do
  7152.  
  7153. if v:IsA("BasePart") then
  7154.  
  7155. m = m + v:GetMass()
  7156.  
  7157. end
  7158.  
  7159. m = m + gm(v)
  7160.  
  7161. end
  7162.  
  7163. return m
  7164.  
  7165. end
  7166.  
  7167. reqrotx = 0
  7168.  
  7169. local grav = 196.2
  7170.  
  7171. local con
  7172.  
  7173. con = game:GetService("RunService").Stepped:connect(oc(function()
  7174.  
  7175. --[[if not mod:IsDescendantOf(workspace) then
  7176.  
  7177. pcall(function() kd:disconnect() end)
  7178.  
  7179. pcall(function() ku:disconnect() end)
  7180.  
  7181. bg:Destroy()
  7182.  
  7183. bv:Destroy()
  7184.  
  7185. con:disconnect()
  7186.  
  7187. script:Destroy()
  7188.  
  7189. return
  7190.  
  7191. end]]
  7192.  
  7193. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  7194.  
  7195. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  7196.  
  7197. if flying then
  7198.  
  7199. local lfldir = fldir
  7200.  
  7201. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  7202.  
  7203. local lmoving = moving
  7204.  
  7205. moving = fldir.magnitude > .1
  7206.  
  7207. if lmoving and not moving then
  7208.  
  7209. idledir = lfldir*Vector3.new(1,0,1)
  7210.  
  7211. descendtimer = tick()
  7212.  
  7213. end
  7214.  
  7215. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  7216.  
  7217. if moving and keysdown["0"] and lmoving then
  7218.  
  7219. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  7220.  
  7221. end
  7222.  
  7223. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  7224.  
  7225. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  7226.  
  7227. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  7228.  
  7229. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  7230.  
  7231. hum.PlatformStand = true
  7232.  
  7233. bg.maxTorque = Vector3.new(1,1,1)*9e5
  7234.  
  7235. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  7236.  
  7237. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  7238.  
  7239. reqrotx = reqrotx - reqrotx/10
  7240.  
  7241. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  7242.  
  7243. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  7244.  
  7245. local ani = tickwave(1.5-anioff,1)
  7246.  
  7247. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  7248.  
  7249. vel = moving and cf.lookVector*flspd or Vector3.new()
  7250.  
  7251. flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
  7252.  
  7253. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  7254.  
  7255. for i=1,4 do
  7256.  
  7257. --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
  7258.  
  7259. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
  7260.  
  7261. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
  7262.  
  7263. end
  7264.  
  7265. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  7266.  
  7267. if hit and down.Y < -.85 and tick()-flystart > 1 then
  7268.  
  7269. flying = false
  7270.  
  7271. hum.PlatformStand = false
  7272.  
  7273. tor.Velocity = Vector3.new()
  7274.  
  7275. end
  7276.  
  7277. else
  7278.  
  7279. bg.maxTorque = Vector3.new()
  7280.  
  7281. bv.maxForce = Vector3.new()
  7282.  
  7283. local ani = tickwave(walking and .8 or 4.5,1)
  7284.  
  7285. setwings(idle,10)
  7286.  
  7287. local x,y,z = fspd/160,uspd/700,sspd/900
  7288.  
  7289. for i=1,4 do
  7290.  
  7291. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
  7292.  
  7293. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
  7294.  
  7295. end
  7296.  
  7297. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  7298.  
  7299. vel = Vector3.new(0,50,0)
  7300.  
  7301. bv.velocity = vel
  7302.  
  7303. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  7304.  
  7305. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  7306.  
  7307. tor.CFrame = cf
  7308.  
  7309. bg.cframe = cf
  7310.  
  7311. flystart = tick()
  7312.  
  7313. flying = true
  7314.  
  7315. end
  7316.  
  7317. end
  7318.  
  7319. keypressed = {}
  7320.  
  7321. end))
  7322.  
  7323.  
  7324.  
  7325. end fly()
  7326.  
  7327. --Bird Wings By Rosemarijohn2
  7328. jun = game.Players.LocalPlayer
  7329. Stuff = false
  7330. --password
  7331. function ssj()
  7332. if Stuff == false then
  7333. Stuff = true
  7334. for u, c in pairs (jun.Character:GetChildren()) do
  7335. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  7336. c.Handle.Transparency = 1
  7337. end
  7338. end
  7339. Hair22 = Instance.new("Part")
  7340. Hair22 = Instance.new("Part")
  7341. Hair22.Parent = jun.Character
  7342. Hair22.Name = "Hair"
  7343. Hair22.formFactor = "Symmetric"
  7344. Hair22.Size = Vector3.new(1, 1, 1)
  7345. Hair22.CFrame = jun.Character.Head.CFrame
  7346. Hair22:BreakJoints()
  7347. Hair22.CanCollide = false
  7348. Hair22.TopSurface = "Smooth"
  7349. Hair22.BottomSurface = "Smooth"
  7350. Hair22.BrickColor = BrickColor.new("Really black")
  7351. Weld = Instance.new("Weld")
  7352. Weld.Part0 = jun.Character.Head
  7353. Weld.Part1 = Hair22
  7354. Weld.Parent = jun.Character.Head
  7355. Weld.C0 = CFrame.new(0, 0.26, 0.2)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  7356. Mesh = Instance.new("SpecialMesh")
  7357. Mesh.Parent = Hair22
  7358. Mesh.MeshId = "http://www.roblox.com/asset/?id=62246019"
  7359. Mesh.Scale = Vector3.new(1, 1, 1)
  7360. BlastRing = Instance.new("Part")
  7361. BlastRing.Parent = game.Lighting
  7362. BlastRing.Name = "Blast"
  7363. BlastRing.formFactor = "Symmetric"
  7364. BlastRing.Size = Vector3.new(1, 1, 1)
  7365. BlastRing.CanCollide = false
  7366. BlastRing.TopSurface = "Smooth"
  7367. BlastRing.BottomSurface = "Smooth"
  7368. BlastRing.BrickColor = BrickColor.new("Really black")
  7369. BlastRing.Reflectance = 0
  7370. BlastRing.Anchored = true
  7371. Mesh2 = Instance.new("SpecialMesh")
  7372. Mesh2.Parent = BlastRing
  7373. Mesh2.MeshType = "FileMesh"
  7374. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  7375. Mesh2.Scale = Vector3.new(1, 5.8, 1)
  7376. blastring2 = BlastRing:clone()
  7377. Hair4 = Instance.new("Part")
  7378. Hair4.Parent = jun.Character
  7379. Hair4.Name = "Hair"
  7380. Hair4.CanCollide = false
  7381. Hair4.Locked = true
  7382. Hair4.TopSurface = "Smooth"
  7383. Hair4.BottomSurface = "Smooth"
  7384. Hair4.formFactor = "Symmetric"
  7385. Hair4.BrickColor = BrickColor.new("Really black")
  7386. Hair4.CFrame = jun.Character.Torso.CFrame
  7387. Hair4.Size = Vector3.new(1, 1, 1)
  7388. Weld = Instance.new("Weld")
  7389. Weld.Parent = jun.Character.Head
  7390. Weld.Part0 = jun.Character.Head
  7391. Weld.Part1 = Hair4
  7392. Weld.C0 = CFrame.new(0, 1, 0)
  7393. Mesh = Instance.new("SpecialMesh")
  7394. Mesh.Parent = Hair4
  7395. Mesh.Scale = Vector3.new(1.15, 1.8, 1.26)
  7396. Mesh.MeshType = "FileMesh"
  7397. Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
  7398. Mesh.TextureId = ""
  7399. Hair42 = Instance.new("Part")
  7400. Hair42.Parent = jun.Character
  7401. Hair42.Name = "Hair"
  7402. Hair42.CanCollide = false
  7403. Hair42.Locked = true
  7404. Hair42.TopSurface = "Smooth"
  7405. Hair42.BottomSurface = "Smooth"
  7406. Hair42.formFactor = "Symmetric"
  7407. Hair42.BrickColor = BrickColor.new("Bright black")
  7408. Hair42.CFrame = jun.Character.Torso.CFrame
  7409. Hair42.Size = Vector3.new(1, 1, 1)
  7410. Weld = Instance.new("Weld")
  7411. Weld.Parent = jun.Character.Torso
  7412. Weld.Part1 = Hair42
  7413. Weld.Part0 = jun.Character.Head
  7414. Weld.C0 = CFrame.new(0, -.6, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  7415. Mesh = Instance.new("SpecialMesh")
  7416. Mesh.Parent = Hair42
  7417. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  7418. Mesh.MeshType = "FileMesh"
  7419. Mesh.MeshId = "http://www.roblox.com/asset/?id=15392960"
  7420. Mesh.TextureId = ""
  7421. Effect = Instance.new("Part")
  7422. Effect.Parent = jun.Character
  7423. Effect.Anchored = true
  7424. Effect.CanCollide = false
  7425. Effect.Size = Vector3.new(1, 1, 1)
  7426. Effect.formFactor = "Symmetric"
  7427. Effect.Transparency = 0.5
  7428. Effect.BrickColor = BrickColor.new("Deepblue,Really black")
  7429. Effect.Reflectance = 0.3
  7430. Effect.TopSurface = "Smooth"
  7431. Effect.BottomSurface = "Smooth"
  7432. EffectMesh = Instance.new("CylinderMesh")
  7433. EffectMesh.Parent = Effect
  7434. EffectMesh.Scale = Vector3.new(1, 100, 1)
  7435. blastring2.Parent = jun.Character
  7436. blastring2.Position = jun.Character.Torso.Position
  7437. blastring2.BrickColor = BrickColor.new("Really black")
  7438. blastring2.Transparency = 0.7
  7439. blastring2.Reflectance = 0
  7440. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, -0.5, -1)
  7441. for i = 1 , 20 do
  7442. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  7443. blastring2.CFrame = CFrame.new(jun.Character.Torso.Position) * CFrame.new(0, 0.5, -0.8)
  7444. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0, 0.5)
  7445. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.7, 0, 0.7)
  7446. wait(0.001)
  7447. end
  7448. for i = 1 , 20 do
  7449. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(-0.5, 0, -0.5)
  7450. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(-0.7, 0, -0.7)
  7451. wait(0.001)
  7452. end
  7453. blastring2.BrickColor = BrickColor.new("White")
  7454. Effect.BrickColor = BrickColor.new("Really blue")
  7455. for i = 1 , 20 do
  7456. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.7, 0, 0.7)
  7457. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0, 0.5)
  7458. wait(0.001)
  7459. end
  7460. for i = 1 , 20 do
  7461. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(-0.5, 0, -0.5)
  7462. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(-0.7, 0, -0.7)
  7463. wait(0.001)
  7464. end
  7465. Effect:remove()
  7466. blastring2:remove()
  7467. lol = Instance.new("Explosion")
  7468. lol.Parent = game.Workspace
  7469. lol.Position = jun.Character.Torso.Position
  7470. lol.BlastRadius = 10
  7471. lol.BlastPressure = 0
  7472. --[[ex = Instance.new("Explosion")
  7473. ex.Position = jun.Character.Torso.Position
  7474. ex.BlastPressure = 0
  7475. ex.Parent = workspace]]
  7476. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
  7477. for i = 1 , 20 do
  7478. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  7479. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(0.5, 0, 0.5)
  7480. Effect.Transparency = Effect.Transparency + 0.01
  7481. wait(0.05)
  7482. end
  7483. for i = 1 , 20 do
  7484. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(-0.5, 0, -0.5)
  7485. Effect.BrickColor = BrickColor.new("Really black")
  7486. wait(0.05)
  7487. end
  7488. Effect:Remove()
  7489. game.Lighting.TimeOfDay = 15
  7490. game.Lighting.FogEnd = 10000
  7491. if jun.Character.Torso:findFirstChild("PwnFire") == nil then
  7492. local pie = Instance.new("Fire")
  7493. pie.Name = "PwnFire"
  7494. pie.Parent = jun.Character.Torso
  7495. pie.Size = 13
  7496. pie.Color = BrickColor.new("Really blue").Color
  7497. pie.SecondaryColor = BrickColor.new("Really blue").Color
  7498. end
  7499. if jun.Character.Torso:findFirstChild("PwnSparkles") == nil then
  7500. pie = Instance.new("Sparkles")
  7501. pie.Name = "PwnSparkles"
  7502. pie.Parent = jun.Character.Torso
  7503. pie.SparkleColor = BrickColor.new("White").Color
  7504. end
  7505. jun.Character.Humanoid.MaxHealth = 350
  7506. wait(0.3)
  7507. jun.Character.Humanoid.Health = 300
  7508. end
  7509. end
  7510. function nossj()
  7511. if Stuff == true then
  7512. Stuff = false
  7513. if jun.Character.Torso:findFirstChild("PwnFire") ~= nil then
  7514. jun.Character.Torso:findFirstChild("PwnFire"):Remove()
  7515. end
  7516. if jun.Character.Torso:findFirstChild("PwnSparkles") ~= nil then
  7517. jun.Character.Torso:findFirstChild("PwnSparkles"):Remove()
  7518. end
  7519. p = Instance.new("Part")
  7520. p.Parent = jun.Character
  7521. p.Anchored = true
  7522. p.CanCollide = false
  7523. p.Transparency = 0
  7524. p.formFactor = "Symmetric"
  7525. p.Size = Vector3.new(44, 44, 44)
  7526. p.TopSurface = "Smooth"
  7527. p.BottomSurface = "Smooth"
  7528. p.Name = "Sharingan"
  7529. p.Shape = "Ball"
  7530. p.CFrame = jun.Character.Torso.CFrame
  7531. p.BrickColor = BrickColor.new("Really black")
  7532. for i = 1 , 10 do
  7533. wait(0.05)
  7534. p.Size = p.Size + Vector3.new(-3, -3, -3)
  7535. p.Transparency = p.Transparency + 0.01
  7536. p.CFrame = jun.Character.Torso.CFrame
  7537. end
  7538. p:Remove()
  7539. for u, c in pairs (jun.Character:GetChildren()) do
  7540. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  7541. c.Handle.Transparency = 0
  7542. end
  7543. if c.Name == "Hair" then
  7544. c:Remove()
  7545. end
  7546. end
  7547. for u, c in pairs (game.Lighting:GetChildren()) do
  7548. if c.className == "Pants" then
  7549. c.Parent = game.Workspace.satic
  7550. end
  7551. end
  7552. for u, c in pairs (game.Lighting:GetChildren()) do
  7553. if c.className == "Shirt" then
  7554. c.Parent = game.Workspace.satic
  7555. end
  7556. end
  7557. jun.Character.Humanoid.Health = 80
  7558. wait()
  7559. jun.Character.Humanoid.MaxHealth = 100
  7560. wait()
  7561. jun.Character.Torso.fire1:remove()
  7562. wait()
  7563. jun.Character.Torso.fire2:remove()
  7564. wait()
  7565. jun.Character.Torso.fire3:remove()
  7566. wait()
  7567. jun.Character.Torso.fire4:remove()
  7568. wait()
  7569. jun.Character.Torso.fire5:remove()
  7570. end
  7571. end
  7572. jun.Chatted:connect(function(Msg)
  7573. msg = Msg:lower()
  7574. if string.sub(msg, 1, 7) == "!" then
  7575. game.Lighting.FogColor = BrickColor.new("Really black").Color
  7576. wait()
  7577. game.Lighting.TimeOfDay = 16
  7578. wait(0.3)
  7579. game.Lighting.TimeOfDay = 17
  7580. wait(0.3)
  7581. game.Lighting.TimeOfDay = 18
  7582. wait(0.3)
  7583. game.Lighting.TimeOfDay = 19
  7584. wait(0.3)
  7585. game.Lighting.FogEnd = 1000
  7586. wait(0.1)
  7587. game.Lighting.FogEnd = 800
  7588. wait(0.1)
  7589. game.Lighting.FogEnd = 600
  7590. wait(0.1)
  7591. game.Lighting.FogEnd = 500
  7592. wait(0.1)
  7593. game.Lighting.FogEnd = 400
  7594. wait(0.1)
  7595. game.Lighting.FogEnd = 300
  7596. ssj()
  7597. end
  7598. if string.sub(msg, 1, 4) == "5" then
  7599. game.Lighting.FogColor = BrickColor.new("Really black").Color
  7600. wait()
  7601. game.Lighting.TimeOfDay = 16
  7602. wait(0.3)
  7603. game.Lighting.TimeOfDay = 17
  7604. wait(0.3)
  7605. game.Lighting.TimeOfDay = 18
  7606. wait(0.3)
  7607. game.Lighting.TimeOfDay = 19
  7608. wait(0.3)
  7609. game.Lighting.FogEnd = 1000
  7610. wait(0.1)
  7611. game.Lighting.FogEnd = 800
  7612. wait(0.1)
  7613. game.Lighting.FogEnd = 600
  7614. wait(0.1)
  7615. game.Lighting.FogEnd = 500
  7616. wait(0.1)
  7617. game.Lighting.FogEnd = 400
  7618. wait(0.1)
  7619. game.Lighting.FogEnd = 300
  7620. wait(0.1)
  7621. ssj()
  7622. end
  7623. if string.sub(msg, 1, 6) == "Dark" then
  7624. wait(0.1)
  7625. ssj()
  7626. end
  7627. if string.sub(msg, 1, 10) == "off" then
  7628. wait(0.1)
  7629. nossj()
  7630. end
  7631. if string.sub(msg, 1, 3) == "stop" then
  7632. wait(0.1)
  7633. nossj()
  7634. end
  7635. end)
  7636. function OnDeath()
  7637. wait()
  7638. nossj()
  7639. end
  7640. jun.Character.Humanoid.Died:connect(OnDeath)
  7641. jun = game.Players.LocalPlayer
  7642. Stuff = false
  7643. --password
  7644. Instance.new("HopperBin",game.Players.LocalPlayer.Backpack).Name = "Earth-shattering kamehameha"
  7645. script.Parent = game.Players.LocalPlayer.Backpack:findFirstChild"Earth-shattering kamehameha"
  7646. local char = script.Parent.Parent.Parent.Character
  7647. local humanoid = char.Humanoid
  7648. local Head = char.Head
  7649. local Torso = char.Torso
  7650. local LeftArm = char["Left Arm"]
  7651. local RightArm = char["Right Arm"]
  7652. local LeftLeg = char["Left Leg"]
  7653. local RightLeg = char["Right Leg"]
  7654. local RightHip = Torso["Right Hip"]
  7655. local LeftHip = Torso["Left Hip"]
  7656. local Neck = Torso.Neck
  7657. local RightShoulder = Torso["Right Shoulder"]
  7658. local LeftShoulder = Torso["Left Shoulder"]
  7659. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  7660. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  7661. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  7662. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  7663. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7664. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7665. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1,0,1, 0, 1, 0, 0)
  7666. local LeftHipC1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1, 0, 0)
  7667. local RightHipC0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
  7668. local RightHipC1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
  7669. local taco = false
  7670. local taco2 = true
  7671. local time = game.Lighting.TimeOfDay
  7672. local h = tonumber(string.sub(time,1,2))
  7673. local m = tonumber(string.sub(time,4,5))+1
  7674. local s = tonumber(string.sub(time,7,8))
  7675. local function frame()
  7676. TiltX = 0
  7677. TiltY = 0
  7678. TiltZ = 0
  7679. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  7680. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ)
  7681. TiltX = -1.65
  7682. TiltY = 0
  7683. TiltZ = 0
  7684. MoveX = 0
  7685. MoveY = -0.31
  7686. MoveZ = -0.4
  7687. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ)
  7688. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ)
  7689. TiltX = -0.12
  7690. TiltY = -0.01
  7691. TiltZ = -0.1
  7692. MoveX = 0
  7693. MoveY = 0.2
  7694. MoveZ = 0
  7695. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ)
  7696. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ)
  7697. end
  7698. function switch(bool)
  7699. for i,v in pairs(char:GetChildren())do
  7700. if v == Torso or v == Head or v == LeftArm or v == RightArm or v == LeftLeg or v == RightLeg then
  7701. v.Anchored = bool
  7702. end end end
  7703. local function frame2()
  7704. TiltX = 0
  7705. TiltY = 0
  7706. TiltZ = 1.57
  7707. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  7708. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ)
  7709. TiltX = 0.6
  7710. TiltY = 0
  7711. TiltZ = 0
  7712. MoveX = 0
  7713. MoveY = 0
  7714. MoveZ = -0.3
  7715. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  7716. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  7717. TiltX = -0.05
  7718. TiltY = 0
  7719. TiltZ = 0
  7720. MoveX = 0
  7721. MoveY = 0.1
  7722. MoveZ = 0
  7723. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  7724. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  7725. end
  7726. local function RefreshWelds()
  7727. Neck.C0 = NeckC0
  7728. Neck.C1 = NeckC1
  7729. RightShoulder.C0 = RightShoulderC0
  7730. RightShoulder.C1 = RightShoulderC1
  7731. LeftShoulder.C0 = LeftShoulderC0
  7732. LeftShoulder.C1 = LeftShoulderC1
  7733. RightHip.C0 = RightHipC0
  7734. RightHip.C1 = RightHipC1
  7735. LeftHip.C0 = LeftHipC0
  7736. LeftHip.C1 = LeftHipC1
  7737. end
  7738. local function Button1Down(mouse)
  7739. if taco then return end
  7740. taco = true
  7741. humanoid.PlatformStand = true
  7742. local staystill = Instance.new("BodyPosition",Torso)
  7743. staystill.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  7744. staystill.position = Torso.Position
  7745. frame()
  7746. local energy = Instance.new("Part",char)
  7747. energy.Size = Vector3.new(0.1,0.1,0.1)
  7748. energy.CanCollide = false
  7749. energy.Anchored = true
  7750. energy.Locked = true
  7751. energy.Shape = "Ball"
  7752. energy.TopSurface = "Smooth"
  7753. energy.BottomSurface = "Smooth"
  7754. energy.Color = Color3.new(0/255,50/255,255/255)
  7755. energy.CFrame = RightArm.CFrame * CFrame.new(-0.1,-0.7,-0.6)
  7756. local energy2 = Instance.new("Part",char)
  7757. energy2.Size = Vector3.new(0.1,0.1,0.1)
  7758. energy2.CanCollide = false
  7759. energy2.Anchored = true
  7760. energy2.Locked = true
  7761. energy2.Shape = "Ball"
  7762. energy2.TopSurface = "Smooth"
  7763. energy2.BottomSurface = "Smooth"
  7764. energy2.Color = Color3.new(255/255,0/255,0/255)
  7765. energy2.CFrame = LeftArm.CFrame * CFrame.new(0,-0.7,-0.6)
  7766. local f1 = Instance.new("Fire",energy)
  7767. f1.Color = energy.Color
  7768. f1.SecondaryColor = Color3.new(0,0,0)
  7769. f1.Heat = 0
  7770. local f2 = Instance.new("Fire",energy2)
  7771. f2.Color = energy2.Color
  7772. f2.SecondaryColor = Color3.new(1,1,1)
  7773. f2.Heat = 0
  7774. local f1 = Instance.new("Fire",energy)
  7775. f1.Color = energy.Color
  7776. f1.SecondaryColor = Color3.new(0,0,0)
  7777. f1.Heat = 0
  7778. local f2 = Instance.new("Fire",energy2)
  7779. f2.Color = energy2.Color
  7780. f2.SecondaryColor = Color3.new(1,1,1)
  7781. f2.Heat = 0
  7782. local f1 = Instance.new("Fire",energy)
  7783. f1.Color = energy.Color
  7784. f1.SecondaryColor = Color3.new(0,0,0)
  7785. f1.Heat = 0
  7786. local f2 = Instance.new("Fire",energy2)
  7787. f2.Color = energy2.Color
  7788. f2.SecondaryColor = Color3.new(1,1,1)
  7789. f2.Heat = 0
  7790. switch(true)
  7791. wait(0.5)
  7792. repeat m = m * 2 if m >= 60 then m = 1 h = h + 1 end game.Lighting.TimeOfDay = ""..h..":"..m..":"..s.."" wait(0) until game.Lighting.TimeOfDay >= "18:00:00"
  7793. for i = 1,10 do
  7794. energy.CFrame = RightArm.CFrame * CFrame.new(-0.1,-0.7,-0.6)
  7795. energy2.CFrame = LeftArm.CFrame * CFrame.new(0,-0.7,-0.6)
  7796. energy.Size = energy.Size + Vector3.new(0.5,0.5,0.5)
  7797. energy2.Size = energy2.Size + Vector3.new(0.5,0.5,0.5)
  7798. energy.Reflectance = energy.Reflectance + 0.1
  7799. energy2.Reflectance = energy2.Reflectance + 0.1
  7800. wait()
  7801. energy.CFrame = RightArm.CFrame * CFrame.new(-0.1,-0.7,-0.6)
  7802. energy2.CFrame = LeftArm.CFrame * CFrame.new(0,-0.7,-0.6)
  7803. end
  7804. game:GetService("Chat"):Chat(Head,"EARTH SHATTERING!",0)
  7805. wait(0.6)
  7806. switch(false)
  7807. frame2()
  7808. wait()
  7809. switch(true)
  7810. for i = 1,10 do
  7811. wait()
  7812. energy.CFrame = energy.CFrame * CFrame.new(0,0.25,-0.25)
  7813. energy2.CFrame = energy2.CFrame * CFrame.new(0,0.25,-0.25)
  7814. end
  7815. for i = 1,20 do
  7816. energy.Size = energy.Size * Vector3.new(0.5,0.5,0.5)
  7817. energy2.Size = energy2.Size * Vector3.new(0.5,0.5,0.5)
  7818. energy.Reflectance = energy.Reflectance - 0.1
  7819. energy2.Reflectance = energy2.Reflectance - 0.1
  7820. wait()
  7821. energy.CFrame = Torso.CFrame * CFrame.new(0,0.2,-4.5)
  7822. energy2.CFrame = Torso.CFrame * CFrame.new(0,0.2,-4.5)
  7823. end
  7824. energy:Destroy()
  7825. energy2:Destroy()
  7826. wait(0.6)
  7827. game:GetService("Chat"):Chat(Head,"KAMEEHHHH",0)
  7828. local blast = Instance.new("Part",char)
  7829. blast.Size = Vector3.new(8,8,8)
  7830. blast.Shape = "Ball"
  7831. blast.TopSurface = "Smooth"
  7832. blast.BottomSurface = "Smooth"
  7833. blast.Anchored = true
  7834. blast.Locked = true
  7835. blast.CanCollide = false
  7836. blast.Color = Color3.new(255/255,0/255,125/255)
  7837. blast.Transparency = 0
  7838. blast.CFrame = Torso.CFrame * CFrame.new(0,0.2,-6.5)
  7839. wait(0.6)
  7840. game:GetService("Chat"):Chat(Head,"HAMEEHHHHH",1)
  7841. local xf = Instance.new("Fire",blast)
  7842. xf.Size = 25
  7843. xf.Color = blast.Color
  7844. xf.SecondaryColor = Color3.new(255/255,255/255,255/255)
  7845. xf.Heat = 0
  7846. local xf = Instance.new("Fire",blast)
  7847. xf.Size = 25
  7848. xf.Color = blast.Color
  7849. xf.SecondaryColor = Color3.new(255/255,255/255,255/255)
  7850. xf.Heat = 0
  7851. for i = 1,20 do
  7852. blast.Transparency = blast.Transparency + 0.05
  7853. blast.Reflectance = blast.Reflectance + 0.01
  7854. wait(0.1)
  7855. if blast.Transparency >= 1 then
  7856. blast.Transparency = blast.Transparency - 0.1
  7857. end end
  7858. blast.Transparency = 0.1
  7859. wait(0.5)
  7860. game:GetService("Chat"):Chat(Head,"HAAAAAAHHHHHHHHH!",2)
  7861. coroutine.resume(coroutine.create(function()
  7862. for i = 1,5 do wait(0)
  7863. local p = Instance.new("Part",blast)
  7864. p.Size = Vector3.new(0,0,0)
  7865. p.Anchored = true
  7866. p.CanCollide = false
  7867. p.Locked = true
  7868. p.BrickColor = BrickColor.new("Really red")
  7869. p.TopSurface = "Smooth"
  7870. p.Reflectance = 0.3
  7871. p.Transparency = 0.4
  7872. p.BottomSurface = "Smooth"
  7873. p.CFrame = blast.CFrame * CFrame.new(0,0,0)
  7874. local m1 = Instance.new("SpecialMesh",p)
  7875. m1.Scale = p.Size
  7876. m1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  7877. local p2 = Instance.new("Part",blast)
  7878. p2.CFrame = blast.CFrame * CFrame.new(0,0,0)
  7879. p2.Size = Vector3.new(0,0,0)
  7880. p2.Anchored = true
  7881. p2.CanCollide = false
  7882. p2.Locked = true
  7883. p2.BrickColor = BrickColor.new("Deep blue")
  7884. p2.TopSurface = "Smooth"
  7885. p2.Reflectance = 0.3
  7886. p2.Transparency = 0.4
  7887. p2.BottomSurface = "Smooth"
  7888. local m2 = Instance.new("SpecialMesh",p2)
  7889. m2.Scale = p2.Size
  7890. m2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  7891. local p3 = Instance.new("Part",blast)
  7892. p3.Size = Vector3.new(0,0,0)
  7893. p3.Anchored = true
  7894. p3.CanCollide = false
  7895. p3.Locked = true
  7896. p3.Color = blast.Color
  7897. p3.TopSurface = "Smooth"
  7898. p3.Reflectance = 0.3
  7899. p3.Transparency = 0.4
  7900. p3.BottomSurface = "Smooth"
  7901. p3.CFrame = blast.CFrame * CFrame.new(0,0,0)
  7902. local m3 = Instance.new("SpecialMesh",p3)
  7903. m3.Scale = p.Size
  7904. m3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  7905. coroutine.resume(coroutine.create(function()
  7906. for i = 1,20 do wait(0)
  7907. m1.Scale = m1.Scale + Vector3.new(5,5,5)
  7908. p.CFrame = p.CFrame * CFrame.new(0,0,-5)
  7909. end
  7910. p:Destroy()
  7911. end))
  7912. coroutine.resume(coroutine.create(function()
  7913. for i = 1,20 do wait(0)
  7914. m2.Scale = m2.Scale + Vector3.new(5,5,5)
  7915. p2.CFrame = p2.CFrame * CFrame.new(0,0,-5)
  7916. end
  7917. p2:Destroy()
  7918. end))
  7919. coroutine.resume(coroutine.create(function()
  7920. for i = 1,20 do wait(0)
  7921. m3.Scale = m3.Scale + Vector3.new(5,5,5)
  7922. p3.CFrame = p3.CFrame * CFrame.new(0,0,-5)
  7923. end
  7924. p3:Destroy()
  7925. end))end end))
  7926. local p = Instance.new("Part",blast)
  7927. p.Size = blast.Size
  7928. p.CanCollide = true
  7929. p.Anchored = true
  7930. p.Locked = true
  7931. p.Color = blast.Color
  7932. p.Reflectance = blast.Reflectance
  7933. p.Transparency = blast.Transparency
  7934. p.TopSurface = "Smooth"
  7935. p.BottomSurface = "Smooth"
  7936. p.CFrame = blast.CFrame * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  7937. p.Touched:connect(function(hit)
  7938. if not taco2 then return end
  7939. taco2 = false
  7940. if hit.Parent:findFirstChild("Humanoid")then
  7941. for i,v in pairs(hit.Parent:GetChildren())do
  7942. if v:IsA"Hat" then
  7943. v:Destroy()
  7944. elseif v:IsA"Part" then
  7945. v.Velocity = v.Position * Vector3.new(50,3,0)
  7946. v.RotVelocity = v.Position - v.Velocity
  7947. v.Parent:BreakJoints()
  7948. end end end
  7949. wait(8)
  7950. taco2 = true
  7951. end)
  7952. local mesh = Instance.new("CylinderMesh",p)
  7953. mesh.Scale = Vector3.new(1,0,1)
  7954. for i = 1,150 do
  7955. mesh.Scale = mesh.Scale + Vector3.new(-0.16,1.19,-0.16)
  7956. p.CFrame = p.CFrame * CFrame.new(0,-5,0)
  7957. wait(0)
  7958. mesh.Scale = mesh.Scale + Vector3.new(0.1599,0,0.1599)
  7959. end
  7960. blast:Destroy()
  7961. game.Lighting.TimeOfDay = 12
  7962. switch(false)
  7963. RefreshWelds()
  7964. humanoid.PlatformStand = false
  7965. staystill:Destroy()
  7966. wait(8)
  7967. taco = false
  7968. end
  7969. script.Parent.Selected:connect(function(mouse)mouse.Button1Down:connect(function(mouse)Button1Down(mouse)end)end)
  7970. math.randomseed(tick())
  7971. local pwn = game:service('Players').LocalPlayer
  7972. local char = pwn.Character
  7973. local pk = pwn.Backpack
  7974. local Human = char.Humanoid
  7975. local Torso = char.Torso
  7976. local Head = char.Head
  7977. local LeftArm = char["Left Arm"]
  7978. local RightArm = char["Right Arm"]
  7979. local LeftLeg = char["Left Leg"]
  7980. local RightLeg = char["Right Leg"]
  7981. local Neck = char.Torso["Neck"]
  7982. local RightShoulder = char.Torso["Right Shoulder"]
  7983. local LeftShoulder = char.Torso["Left Shoulder"]
  7984. local RightHip = char.Torso["Right Hip"]
  7985. local LeftHip = char.Torso["Left Hip"]
  7986. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  7987. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  7988. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  7989. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  7990. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7991. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7992. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1,0,1, 0, 1, 0, 0)
  7993. local LeftHipC1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1, 0, 0)
  7994. local RightHipC0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
  7995. local RightHipC1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
  7996. local Tewl = Instance.new("HopperBin",pk)
  7997. local Nim = "Time Blast"
  7998. local disabled = false
  7999. function ChargeWelds()
  8000. if Torso.Anchored then
  8001. Torso.CFrame = Torso.CFrame * CFrame.new(0,5,0)
  8002. else
  8003. Torso.Anchored = true
  8004. Torso.CFrame = Torso.CFrame * CFrame.new(0,5,0)
  8005. end
  8006. coroutine.resume(meshInsertion)
  8007. TiltX = 2
  8008. TiltY = 0
  8009. TiltZ = 2
  8010. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  8011. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  8012. TiltX = 2
  8013. TiltY = 0
  8014. TiltZ = 2
  8015. MoveX = 0
  8016. MoveY = 0
  8017. MoveZ = 0
  8018. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8019. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ)
  8020. TiltX = 0.3
  8021. TiltY = 0
  8022. TiltZ = 0.3
  8023. MoveX = 0
  8024. MoveY = 0
  8025. MoveZ = 0
  8026. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8027. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8028. end
  8029. function RefreshWelds()
  8030. Neck.C0 = NeckC0
  8031. Neck.C1 = NeckC1
  8032. RightShoulder.C0 = RightShoulderC0
  8033. RightShoulder.C1 = RightShoulderC1
  8034. LeftShoulder.C0 = LeftShoulderC0
  8035. LeftShoulder.C1 = LeftShoulderC1
  8036. RightHip.C0 = RightHipC0
  8037. RightHip.C1 = RightHipC1
  8038. LeftHip.C0 = LeftHipC0
  8039. LeftHip.C1 = LeftHipC1
  8040. end
  8041. function Welds1()
  8042. TiltX = 0
  8043. TiltY = 0
  8044. TiltZ = 1.57
  8045. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  8046. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ)
  8047. TiltX = 0.6
  8048. TiltY = 0
  8049. TiltZ = 0
  8050. MoveX = 0
  8051. MoveY = 0
  8052. MoveZ = -0.3
  8053. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8054. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8055. TiltX = -0.05
  8056. TiltY = 0
  8057. TiltZ = 0
  8058. MoveX = 0
  8059. MoveY = 0.1
  8060. MoveZ = 0
  8061. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8062. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8063. end
  8064. function Welds2()
  8065. TiltX = 100
  8066. TiltY = 20
  8067. TiltZ = -20
  8068. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  8069. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  8070. TiltX = 0.6
  8071. TiltY = 0
  8072. TiltZ = 0
  8073. MoveX = 0
  8074. MoveY = 0
  8075. MoveZ = -0.3
  8076. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8077. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8078. TiltX = 0
  8079. TiltY = 0
  8080. TiltZ = 0
  8081. MoveX = 0
  8082. MoveY = 0
  8083. MoveZ = 0
  8084. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8085. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  8086. end
  8087. function onButton1Down(mouse)
  8088. if disabled == true then
  8089. return
  8090. end
  8091. Torso.Anchored = true
  8092. Human.PlatformStand = true
  8093. Human.WalkSpeed = 0
  8094. disabled = true
  8095. narb = Instance.new("ForceField",char)
  8096. noob = narb:clone()
  8097. noobz = narb:clone()
  8098. nubz = narb:clone()
  8099. coroutine.resume(coroutine.create(function()
  8100. for x = 1,150 do
  8101. Torso.CFrame = Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.random(-100,100),0)
  8102. wait()
  8103. end
  8104. end))
  8105. chargeup()
  8106. local wow = Instance.new("Part",workspace)
  8107. wow.Anchored = true
  8108. wow.CanCollide = false
  8109. wow.Reflectance = 0.32
  8110. wow.formFactor = "Custom"
  8111. wow.Size = Vector3.new(0.2,0.2,0.2)
  8112. wow.TopSurface = "Smooth"
  8113. wow.Transparency = 0
  8114. wow.BottomSurface = "Smooth"
  8115. wow.CFrame = Torso.CFrame
  8116. wow.BrickColor = BrickColor.new("Really black")
  8117. local Mesh2 = Instance.new("SpecialMesh",wow)
  8118. Mesh2.MeshType = "FileMesh"
  8119. Mesh2.Scale = Vector3.new(4.5,0.5,4.5)
  8120. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  8121. Mesh2.TextureId = ""
  8122. for i = 1,30 do
  8123. wow.CFrame = Torso.CFrame * CFrame.new(0,-7.5,0)
  8124. wait()
  8125. wow.CFrame = wow.CFrame * CFrame.fromEulerAnglesXYZ(0,-6,0)
  8126. wow.Transparency = wow.Transparency + 0.1
  8127. end
  8128. local p = Instance.new("Part",char)
  8129. p.Anchored = true
  8130. p.CanCollide = false
  8131. p.Transparency = 0
  8132. p.Reflectance = 0.3
  8133. p.formFactor = "Symmetric"
  8134. p.Size = Vector3.new(12, 12, 12)
  8135. p.TopSurface = "Smooth"
  8136. p.BottomSurface = "Smooth"
  8137. p.Name = "Sharingan"
  8138. p.Shape = "Ball"
  8139. p.CFrame = Torso.CFrame
  8140. p.BrickColor = BrickColor.new("Lime green")
  8141. local lol = Instance.new("Explosion",workspace)
  8142. lol.Position = Torso.Position
  8143. lol.BlastRadius = 450
  8144. lol.BlastPressure = 0
  8145. for i = 1,10 do
  8146. wait()
  8147. p.Size = p.Size + Vector3.new(3,3,3)
  8148. p.CFrame = Torso.CFrame
  8149. p.Transparency = p.Transparency + 0.1
  8150. end
  8151. game.Lighting.TimeOfDay = 6
  8152. p:remove()
  8153. wow:remove()
  8154. Welds2()
  8155. wait(0.5)
  8156. Welds1()
  8157. wait(0.5)
  8158. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(0.1, 0, 2)
  8159. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(0.1, 0, -2)
  8160. wait(1)
  8161. for i = 1,20 do
  8162. game.Lighting.Ambient = Color3.new(math.random(),math.random(),math.random())
  8163. wait()
  8164. end
  8165. game.Lighting.Ambient = Color3.new(1,1,1)
  8166. local model = Instance.new("Model",char)
  8167. local fer = Instance.new("Fire",Torso)
  8168. fer.Size = 30
  8169. fer.Heat = 18
  8170. fer.Color = BrickColor.new("Really red").Color
  8171. fer.SecondaryColor = BrickColor.new("Really black").Color
  8172. local smk = Instance.new("Smoke",Torso)
  8173. smk.Opacity = 1
  8174. smk.RiseVelocity = 25
  8175. smk.Size = 12
  8176. smk.Color = BrickColor.new("Really red").Color
  8177. local O = Instance.new("Part",model)
  8178. O.Anchored = true
  8179. O.CanCollide = false
  8180. O.Transparency = 0
  8181. O.Reflectance = 0.3
  8182. O.formFactor = "Symmetric"
  8183. O.Size = Vector3.new(0, 0, 0)
  8184. O.TopSurface = "Smooth"
  8185. O.BottomSurface = "Smooth"
  8186. O.Name = "Sharingan"
  8187. O.Shape = "Ball"
  8188. O.CFrame = Torso.CFrame*CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
  8189. O.BrickColor = BrickColor.new("Really red")
  8190. local Mesh = Instance.new("SpecialMesh")
  8191. Mesh.Parent = O
  8192. Mesh.MeshType = "FileMesh"
  8193. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  8194. Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  8195. Mesh.TextureId = ""
  8196. local O2 = Instance.new("Part",model)
  8197. O2.Anchored = true
  8198. O2.CanCollide = false
  8199. O2.Transparency = 0
  8200. O2.Reflectance = 0.3
  8201. O2.formFactor = "Symmetric"
  8202. O2.Size = Vector3.new(0, 0, 0)
  8203. O2.TopSurface = "Smooth"
  8204. O2.BottomSurface = "Smooth"
  8205. O2.Name = "Sharingan"
  8206. O2.Shape = "Ball"
  8207. O2.CFrame = Torso.CFrame
  8208. O2.BrickColor = BrickColor.new("Really red")
  8209. local Mesh3 = Instance.new("SpecialMesh")
  8210. Mesh3.Parent = O2
  8211. Mesh3.MeshType = "FileMesh"
  8212. Mesh3.Scale = Vector3.new(1, 1, 1)
  8213. Mesh3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  8214. Mesh3.TextureId = ""
  8215. local O3 = Instance.new("Part",model)
  8216. O3.Anchored = true
  8217. O3.CanCollide = false
  8218. O3.Transparency = 0
  8219. O3.Reflectance = 0.3
  8220. O3.formFactor = "Symmetric"
  8221. O3.Size = Vector3.new(0, 0, 0)
  8222. O3.TopSurface = "Smooth"
  8223. O3.BottomSurface = "Smooth"
  8224. O3.Name = "Sharingan"
  8225. O3.Shape = "Ball"
  8226. O3.CFrame = Torso.CFrame*CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
  8227. O3.BrickColor = BrickColor.new("Really red")
  8228. local Mesh4 = Instance.new("SpecialMesh")
  8229. Mesh4.Parent = O3
  8230. Mesh4.MeshType = "FileMesh"
  8231. Mesh4.Scale = Vector3.new(1.3, 1.3, 1.3)
  8232. Mesh4.MeshId = "http://www.roblox.com/asset/?id=3270017"
  8233. Mesh4.TextureId = ""
  8234. local O4 = Instance.new("Part",model)
  8235. O4.Anchored = true
  8236. O4.CanCollide = false
  8237. O4.Transparency = 0
  8238. O4.Reflectance = 0.3
  8239. O4.formFactor = "Symmetric"
  8240. O4.Size = Vector3.new(0, 0, 0)
  8241. O4.TopSurface = "Smooth"
  8242. O4.BottomSurface = "Smooth"
  8243. O4.Name = "Sharingan"
  8244. O4.Shape = "Ball"
  8245. O4.CFrame = Torso.CFrame
  8246. O4.BrickColor = BrickColor.new("Really red")
  8247. local Mesh5 = Instance.new("SpecialMesh")
  8248. Mesh5.Parent = O4
  8249. Mesh5.MeshType = "FileMesh"
  8250. Mesh5.Scale = Vector3.new(1, 1, 1)
  8251. Mesh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  8252. Mesh5.TextureId = ""
  8253. local pro = Instance.new("Part",char)
  8254. pro.Anchored = true
  8255. pro.CanCollide = true
  8256. pro.Transparency = 0.2
  8257. pro.Reflectance = 0.3
  8258. pro.formFactor = "Symmetric"
  8259. pro.Size = Vector3.new(1, 1, 1)
  8260. pro.TopSurface = "Smooth"
  8261. pro.BottomSurface = "Smooth"
  8262. pro.Name = "Sharingan"
  8263. pro.Shape = "Ball"
  8264. pro.BrickColor = BrickColor.new("White")
  8265. pro.CFrame = Torso.CFrame
  8266. pro.Touched:connect(onTouched)
  8267. local lol = Instance.new("Explosion",workspace)
  8268. lol.Position = Torso.Position
  8269. lol.BlastRadius = 65
  8270. lol.BlastPressure = 900000
  8271. lol.Hit:connect(explhit)
  8272. local Effect = Instance.new("Part",pro)
  8273. Effect.Anchored = true
  8274. Effect.CanCollide = false
  8275. Effect.Size = Vector3.new(1, 1, 1)
  8276. Effect.formFactor = "Symmetric"
  8277. Effect.Transparency = 0.6
  8278. Effect.BrickColor = BrickColor.new("Toothpaste")
  8279. Effect.CFrame = Torso.CFrame
  8280. Effect.Reflectance = 0.6
  8281. Effect.TopSurface = "Smooth"
  8282. Effect.BottomSurface = "Smooth"
  8283. local EffectMesh = Instance.new("CylinderMesh",Effect)
  8284. EffectMesh.Scale = Vector3.new(3, 90000, 3)
  8285. local effect = Effect:Clone()
  8286. local effectmesh = EffectMesh:Clone()
  8287. effect.Parent = pro
  8288. effectmesh.Parent = effect
  8289. for i = 1,75 do
  8290. effect.Reflectance = math.random()
  8291. Effect.Reflectance = math.random()
  8292. effectmesh.Scale = effectmesh.Scale + Vector3.new(1,0,1)
  8293. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2,0,2)
  8294. Mesh.Scale = Mesh.Scale + Vector3.new(3, 3, 3)
  8295. Mesh3.Scale = Mesh.Scale
  8296. Mesh4.Scale = Mesh.Scale
  8297. Mesh5.Scale = Mesh.Scale
  8298. O.CFrame = O.CFrame * CFrame.fromEulerAnglesXYZ(6,0,0)
  8299. O2.CFrame = O2.CFrame * CFrame.fromEulerAnglesXYZ(0,6,0)
  8300. O3.CFrame = O3.CFrame * CFrame.fromEulerAnglesXYZ(0,6,6)
  8301. O4.CFrame = O4.CFrame * CFrame.fromEulerAnglesXYZ(6,0,6)
  8302. pro.Size = pro.Size + Vector3.new(3,3,3)
  8303. pro.CFrame = Torso.CFrame
  8304. O.BrickColor = BrickColor.new("Lime green")
  8305. O2.BrickColor = BrickColor.new("Lime green")
  8306. O3.BrickColor = BrickColor.new("Lime green")
  8307. O4.BrickColor = BrickColor.new("Lime green")
  8308. pro.BrickColor = BrickColor.new("Really black")
  8309. wait()
  8310. end
  8311. coroutine.resume(core)
  8312. for i = 1,10 do
  8313. Effect.Reflectance = 0 + 0.1
  8314. effect.Reflectance = 0 + 0.1
  8315. EffectMesh.Scale = EffectMesh.Scale - Vector3.new(12,30,12)
  8316. effectmesh.Scale = effectmesh.Scale - Vector3.new(11,29,11)
  8317. O.Transparency = O.Transparency + 0.1
  8318. O2.Transparency = O2.Transparency + 0.1
  8319. O3.Transparency = O3.Transparency + 0.1
  8320. O4.Transparency = O4.Transparency + 0.1
  8321. pro.Transparency = p.Transparency + 0.01
  8322. wait()
  8323. end
  8324. Effect:remove()
  8325. pro:remove()
  8326. fer:remove()
  8327. smk:remove()
  8328. noob:remove()
  8329. noobz:remove()
  8330. nubz:remove()
  8331. narb:remove()
  8332. RefreshWelds()
  8333. game.Lighting.TimeOfDay = 14
  8334. game.Lighting.Brightness = 0
  8335. model:remove()
  8336. Human.PlatformStand = false
  8337. Torso.Anchored = false
  8338. Human.WalkSpeed = 16
  8339. wait(10)
  8340. disabled = false
  8341. end
  8342. function lul(mouse)
  8343. mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
  8344. mouse.Button1Down:connect(onButton1Down)
  8345. end
  8346. function explhit(drumstep)
  8347. for d,s in pairs (drumstep:children()) do
  8348. if s.className == "Humanoid" then
  8349. s:takeDamage(80)
  8350. end
  8351. end
  8352. end
  8353. function chargeup()
  8354. Welds1()
  8355. wait(0.4)
  8356. ChargeWelds()
  8357. wait(0.3)
  8358. StartCharge()
  8359. wait()
  8360. MidCharge()
  8361. wait(0.5)
  8362. EndCharge()
  8363. wait(0.4)
  8364. end
  8365. function EndCharge()
  8366. local p = Instance.new("Part",char)
  8367. p.Anchored = true
  8368. p.CanCollide = false
  8369. p.Transparency = 0
  8370. p.Reflectance = 0.3
  8371. p.formFactor = "Symmetric"
  8372. p.Size = Vector3.new(12, 12, 12)
  8373. p.TopSurface = "Smooth"
  8374. p.BottomSurface = "Smooth"
  8375. p.Name = "Sharingan"
  8376. p.Shape = "Ball"
  8377. p.CFrame = Torso.CFrame
  8378. p.BrickColor = BrickColor.new("Really black")
  8379. for i = 1,10 do
  8380. p.Size = p.Size - Vector3.new(3,3,3)
  8381. p.CFrame = Torso.CFrame
  8382. wait()
  8383. end
  8384. p:remove()
  8385. end
  8386. function MidCharge()
  8387. local wow = Instance.new("Part",workspace)
  8388. wow.Anchored = true
  8389. wow.CanCollide = false
  8390. wow.Reflectance = 0.32
  8391. wow.formFactor = "Custom"
  8392. wow.Size = Vector3.new(12,12,12)
  8393. wow.TopSurface = "Smooth"
  8394. wow.Transparency = 0.5
  8395. wow.BottomSurface = "Smooth"
  8396. wow.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  8397. wow.BrickColor = BrickColor.new("Really black")
  8398. local wow2 = Instance.new("Part",workspace)
  8399. wow2.Anchored = true
  8400. wow2.CanCollide = false
  8401. wow2.Reflectance = 0.32
  8402. wow2.formFactor = "Custom"
  8403. wow2.Size = Vector3.new(12,12,12)
  8404. wow2.TopSurface = "Smooth"
  8405. wow2.Transparency = 0.5
  8406. wow2.BottomSurface = "Smooth"
  8407. wow2.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  8408. wow2.BrickColor = BrickColor.new("Lime green")
  8409. local wow11 = Instance.new("Part",workspace)
  8410. wow11.Anchored = true
  8411. wow11.CanCollide = false
  8412. wow11.Reflectance = 0.32
  8413. wow11.formFactor = "Custom"
  8414. wow11.Size = Vector3.new(12,12,12)
  8415. wow11.TopSurface = "Smooth"
  8416. wow11.Transparency = 0.5
  8417. wow11.BottomSurface = "Smooth"
  8418. wow11.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  8419. wow11.BrickColor = BrickColor.new("Lavender")
  8420. local wow4 = Instance.new("Part",workspace)
  8421. wow4.Anchored = true
  8422. wow4.CanCollide = false
  8423. wow4.Reflectance = 0.32
  8424. wow4.formFactor = "Custom"
  8425. wow4.Size = Vector3.new(12,12,12)
  8426. wow4.TopSurface = "Smooth"
  8427. wow4.Transparency = 0.5
  8428. wow4.BottomSurface = "Smooth"
  8429. wow4.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  8430. wow4.BrickColor = BrickColor.new("Toothpaste")
  8431. local Taco = Instance.new("SelectionBox",wow)
  8432. Taco.Visible = true
  8433. Taco.Color = BrickColor.new("Lime green")
  8434. Taco.Adornee = Taco.Parent
  8435. local Tacoz = Taco:clone()
  8436. Tacoz.Parent = wow2
  8437. Tacoz.Color = BrickColor.new("Really black")
  8438. Tacoz.Adornee = Tacoz.Parent
  8439. local Taco5 = Tacoz:clone()
  8440. Taco5.Parent = wow4
  8441. Taco5.Adornee = Taco5.Parent
  8442. Taco5.Color = BrickColor.new("Lavender")
  8443. local Tacosh = Tacoz:clone()
  8444. Tacosh.Parent = wow11
  8445. Tacosh.Adornee = Tacosh.Parent
  8446. Tacosh.Color = BrickColor.new("Really blue")
  8447. for i = 1,20 do
  8448. wait()
  8449. wow11.CFrame = wow11.CFrame * CFrame.fromEulerAnglesXYZ(6,6,6)
  8450. wow4.CFrame = wow4.CFrame * CFrame.fromEulerAnglesXYZ(-6,-6,-6)
  8451. wow2.CFrame = wow2.CFrame * CFrame.fromEulerAnglesXYZ(-3,2,6)
  8452. wow.CFrame = wow.CFrame * CFrame.fromEulerAnglesXYZ(5,1,-6)
  8453. end
  8454. wow:remove()
  8455. wow2:remove()
  8456. wow4:remove()
  8457. wow11:remove()
  8458. end
  8459. function StartCharge()
  8460. local p = Instance.new("Part",char)
  8461. p.Anchored = true
  8462. p.CanCollide = false
  8463. p.Transparency = 0.6
  8464. p.Reflectance = 0.3
  8465. p.formFactor = "Symmetric"
  8466. p.Size = Vector3.new(3,3,3)
  8467. p.TopSurface = "Smooth"
  8468. p.BottomSurface = "Smooth"
  8469. p.Name = "Sharingan"
  8470. p.Shape = "Ball"
  8471. p.CFrame = Torso.CFrame
  8472. p.BrickColor = BrickColor.new("Really black")
  8473. local O = Instance.new("Part",model)
  8474. O.Anchored = true
  8475. O.CanCollide = false
  8476. O.Transparency = 0
  8477. O.Reflectance = 0.3
  8478. O.formFactor = "Symmetric"
  8479. O.Size = Vector3.new(0, 0, 0)
  8480. O.TopSurface = "Smooth"
  8481. O.BottomSurface = "Smooth"
  8482. O.Name = "Sharingan"
  8483. O.Shape = "Ball"
  8484. O.CFrame = Torso.CFrame
  8485. O.BrickColor = BrickColor.new("Lime green")
  8486. local Mesh = Instance.new("SpecialMesh")
  8487. Mesh.Parent = O
  8488. Mesh.MeshType = "FileMesh"
  8489. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  8490. Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  8491. Mesh.TextureId = ""
  8492. for i = 1,10 do
  8493. p.Size = p.Size + Vector3.new(3,3,3)
  8494. p.CFrame = Torso.CFrame
  8495. p.Transparency = p.Transparency + 0.1
  8496. O.Transparency = O.Transparency + 0.1
  8497. Mesh.Scale = Mesh.Scale + Vector3.new(4, 4, 4)
  8498. wait()
  8499. end
  8500. p:remove()
  8501. O:remove()
  8502. end
  8503. function onTouched(Taco)
  8504. if Taco.Parent.Name ~= pwn.Name and Taco.Parent.Parent.Name ~= pwn.Name then
  8505. if Taco.Parent.className == "Model" or Taco.Parent.Parent.className == "Model" then
  8506. for k,f in pairs(Taco.Parent:children()) do
  8507. if f.className == "Part" then
  8508. f.Anchored = false
  8509. coroutine.resume(coroutine.create(function()
  8510. f.Velocity = (Head.Position - f.Position).unit * -150
  8511. wait(0.4)
  8512. f.Veclovity = Vector3.new(0,0,0)
  8513. end))
  8514. elseif f.className == "ForceField" then
  8515. f:remove()
  8516. elseif f.className == "Hat" then
  8517. f:remove()
  8518. end
  8519. end
  8520. end
  8521. end
  8522. end
  8523. function shock()
  8524. local wowz = Instance.new("Part",workspace)
  8525. wowz.Anchored = true
  8526. wowz.CanCollide = false
  8527. wowz.Reflectance = 0.32
  8528. wowz.formFactor = "Custom"
  8529. wowz.Size = Vector3.new(0.2,0.2,0.2)
  8530. wowz.TopSurface = "Smooth"
  8531. wowz.Transparency = 0
  8532. wowz.BottomSurface = "Smooth"
  8533. wowz.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  8534. wowz.BrickColor = BrickColor.new("Really black")
  8535. local Mesh2 = Instance.new("SpecialMesh",wow)
  8536. Mesh2.MeshType = "FileMesh"
  8537. Mesh2.Scale = Vector3.new(6,0.5,6)
  8538. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  8539. Mesh2.TextureId = ""
  8540. for i = 1,30 do
  8541. wowz.CFrame = Torso.CFrame * CFrame.new(0,-2.5,0)
  8542. wait()
  8543. wowz.CFrame = wow.CFrame * CFrame.fromEulerAnglesXYZ(0,6,0)
  8544. wowz.BrickColor = BrickColor.Random()
  8545. end
  8546. wowz:remove()
  8547. end
  8548. function spinmesh()
  8549. local wowz = Instance.new("Part",char)
  8550. wowz.Anchored = true
  8551. wowz.CanCollide = false
  8552. wowz.Reflectance = 0.32
  8553. wowz.Shape = "Ball"
  8554. wowz.Transparency = 0
  8555. wowz.formFactor = "Custom"
  8556. wowz.Size = Vector3.new(9,9,9)
  8557. wowz.TopSurface = "Smooth"
  8558. wowz.BottomSurface = "Smooth"
  8559. wowz.CFrame = Torso.CFrame
  8560. wowz.BrickColor = BrickColor.new("Really black")
  8561. wait(3)
  8562. wowz:remove()
  8563. end
  8564. meshInsertion = coroutine.create(spinmesh)
  8565. core = coroutine.create(shock)
  8566. Tewl.Name = Nim
  8567. Tewl.Selected:connect(lul)
  8568.  
  8569. --bird wings Gifted by deadropz, Local Script!
  8570. --Jump Two Time
  8571. --Down Press Q
  8572. --Wings Spin Press A Two Time
  8573. --Wings Spin Press D Two Time
  8574.  
  8575. script.Parent = nil
  8576.  
  8577. function fly()
  8578.  
  8579. for i,v in pairs(script:GetChildren()) do
  8580.  
  8581. pcall(function() v.Value = "" end)
  8582.  
  8583. game:GetService("Debris"):AddItem(v,.1)
  8584.  
  8585. end
  8586.  
  8587. function weld(p0,p1,c0,c1,par)
  8588.  
  8589. local w = Instance.new("Weld",p0 or par)
  8590.  
  8591. w.Part0 = p0
  8592.  
  8593. w.Part1 = p1
  8594.  
  8595. w.C0 = c0 or CFrame.new()
  8596.  
  8597. w.C1 = c1 or CFrame.new()
  8598.  
  8599. return w
  8600.  
  8601. end
  8602.  
  8603. local motors = {}
  8604.  
  8605. function motor(p0,p1,c0,c1,des,vel,par)
  8606.  
  8607. local w = Instance.new("Motor6D",p0 or par)
  8608.  
  8609. w.Part0 = p0
  8610.  
  8611. w.Part1 = p1
  8612.  
  8613. w.C0 = c0 or CFrame.new()
  8614.  
  8615. w.C1 = c1 or CFrame.new()
  8616.  
  8617. w.MaxVelocity = tonumber(vel) or .05
  8618.  
  8619. w.DesiredAngle = tonumber(des) or 0
  8620.  
  8621. return w
  8622.  
  8623. end
  8624.  
  8625. function lerp(a,b,c)
  8626.  
  8627. return a+(b-a)*c
  8628.  
  8629. end
  8630.  
  8631. function clerp(c1,c2,al)
  8632.  
  8633. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  8634.  
  8635. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  8636.  
  8637. for i,v in pairs(com1) do
  8638.  
  8639. com1[i] = lerp(v,com2[i],al)
  8640.  
  8641. end
  8642.  
  8643. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  8644.  
  8645. end
  8646.  
  8647. function ccomplerp(c1,c2,al)
  8648.  
  8649. local com1 = {c1:components()}
  8650.  
  8651. local com2 = {c2:components()}
  8652.  
  8653. for i,v in pairs(com1) do
  8654.  
  8655. com1[i] = lerp(v,com2[i],al)
  8656.  
  8657. end
  8658.  
  8659. return CFrame.new(unpack(com1))
  8660.  
  8661. end
  8662.  
  8663. function tickwave(time,length,offset)
  8664.  
  8665. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  8666.  
  8667. end
  8668.  
  8669. function invcol(c)
  8670.  
  8671. c = c.Color
  8672.  
  8673. return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  8674.  
  8675. end
  8676.  
  8677. local oc = oc or function(...) return ... end
  8678.  
  8679. local plr = game.Players.LocalPlayer
  8680.  
  8681. local char = plr.Character
  8682.  
  8683. local tor = char.Torso
  8684.  
  8685. local hum = char.Humanoid
  8686.  
  8687. hum.PlatformStand = false
  8688.  
  8689. pcall(function()
  8690.  
  8691. char.Wings:Destroy()
  8692.  
  8693. end)
  8694.  
  8695. pcall(function()
  8696.  
  8697. char.Angel:Destroy() -- hat
  8698.  
  8699. end)
  8700.  
  8701. local mod = Instance.new("Model",char)
  8702.  
  8703. mod.Name = "Wings"
  8704.  
  8705. local special = {
  8706.  
  8707. --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  8708.  
  8709. antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  8710.  
  8711. --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  8712.  
  8713. taart = {"Royal purple",nil,.4,.4,true},
  8714.  
  8715. mitta = {"Black",nil,0,0,false},
  8716.  
  8717. penjuin3 = {"White",nil,0,0,false},
  8718.  
  8719. thepc8110 = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  8720.  
  8721. nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  8722.  
  8723. littleau999 = {"Reddish brown",1030,0,0,false},
  8724.  
  8725. unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
  8726.  
  8727. oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
  8728.  
  8729. krodmiss = {"Really black",nil,0,0,false},
  8730.  
  8731. }
  8732.  
  8733. local topcolor = invcol(char.Torso.BrickColor)
  8734.  
  8735. local feacolor = char.Torso.BrickColor
  8736.  
  8737. local ptrans = 0
  8738.  
  8739. local pref = 0
  8740.  
  8741. local fire = false
  8742.  
  8743. local fmcol = Color3.new()
  8744.  
  8745. local fscol = Color3.new()
  8746.  
  8747. local spec = special[plr.Name:lower()]
  8748.  
  8749. if spec then
  8750.  
  8751. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  8752.  
  8753. end
  8754.  
  8755. local part = Instance.new("Part")
  8756.  
  8757. part.FormFactor = "Custom"
  8758.  
  8759. part.Size = Vector3.new(.2,.2,.2)
  8760.  
  8761. part.TopSurface,part.BottomSurface = 0,0
  8762.  
  8763. part.CanCollide = false
  8764.  
  8765. part.BrickColor = topcolor
  8766.  
  8767. part.Transparency = ptrans
  8768.  
  8769. part.Reflectance = pref
  8770.  
  8771. local ef = Instance.new("Fire",fire and part or nil)
  8772.  
  8773. ef.Size = .15
  8774.  
  8775. ef.Color = fmcol or Color3.new()
  8776.  
  8777. ef.SecondaryColor = fscol or Color3.new()
  8778.  
  8779. part:BreakJoints()
  8780.  
  8781.  
  8782. function newpart()
  8783.  
  8784. local clone = part:Clone()
  8785.  
  8786. clone.Parent = mod
  8787.  
  8788. clone:BreakJoints()
  8789.  
  8790. return clone
  8791.  
  8792. end
  8793.  
  8794. local feath = newpart()
  8795.  
  8796. feath.BrickColor = feacolor
  8797.  
  8798. feath.Transparency = 0
  8799.  
  8800. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  8801.  
  8802. function newfeather()
  8803.  
  8804. local clone = feath:Clone()
  8805.  
  8806. clone.Parent = mod
  8807.  
  8808. clone:BreakJoints()
  8809.  
  8810. return clone
  8811.  
  8812. end
  8813.  
  8814.  
  8815. ---------- RIGHT WING
  8816.  
  8817. local r1 = newpart()
  8818.  
  8819. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  8820.  
  8821. local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  8822.  
  8823. local r2 = newpart()
  8824.  
  8825. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  8826.  
  8827. local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
  8828.  
  8829. local r3 = newpart()
  8830.  
  8831. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  8832.  
  8833. local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
  8834.  
  8835. local r4 = newpart()
  8836.  
  8837. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  8838.  
  8839. local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
  8840.  
  8841. local feather = newfeather()
  8842.  
  8843. feather.Mesh.Scale = Vector3.new(1,1,1)
  8844.  
  8845. feather.Size = Vector3.new(.4,3,.3)
  8846.  
  8847. weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  8848.  
  8849. feather = newfeather()
  8850.  
  8851. feather.Mesh.Scale = Vector3.new(1,1,1)
  8852.  
  8853. feather.Size = Vector3.new(.4,2.3,.3)
  8854.  
  8855. weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  8856.  
  8857. feather = newfeather()
  8858.  
  8859. feather.Mesh.Scale = Vector3.new(1,1,1)
  8860.  
  8861. feather.Size = Vector3.new(.35,2.2,.25)
  8862.  
  8863. weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  8864.  
  8865. local rf3 = {}
  8866.  
  8867. for i=0,7 do
  8868.  
  8869. feather = newfeather()
  8870.  
  8871. feather.Mesh.Scale = Vector3.new(1,1,1)
  8872.  
  8873. feather.Size = Vector3.new(.45,2.2,.35)
  8874.  
  8875. table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  8876.  
  8877. end
  8878.  
  8879. local rf2 = {}
  8880.  
  8881. for i=0,6 do
  8882.  
  8883. feather = newfeather()
  8884.  
  8885. feather.Mesh.Scale = Vector3.new(1,1,1)
  8886.  
  8887. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  8888.  
  8889. table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  8890.  
  8891. end
  8892.  
  8893. local rf1 = {}
  8894.  
  8895. for i=0,6 do
  8896.  
  8897. feather = newfeather()
  8898.  
  8899. feather.Mesh.Scale = Vector3.new(1,1,1)
  8900.  
  8901. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  8902.  
  8903. table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  8904.  
  8905. end
  8906.  
  8907. ---------- LEFT WING
  8908.  
  8909. local l1 = newpart()
  8910.  
  8911. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  8912.  
  8913. local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
  8914.  
  8915. local l2 = newpart()
  8916.  
  8917. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  8918.  
  8919. local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
  8920.  
  8921. local l3 = newpart()
  8922.  
  8923. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  8924.  
  8925. local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
  8926.  
  8927. local l4 = newpart()
  8928.  
  8929. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  8930.  
  8931. local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
  8932.  
  8933. local feather = newfeather()
  8934.  
  8935. feather.Mesh.Scale = Vector3.new(1,1,1)
  8936.  
  8937. feather.Size = Vector3.new(.4,3,.3)
  8938.  
  8939. weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  8940.  
  8941. feather = newfeather()
  8942.  
  8943. feather.Mesh.Scale = Vector3.new(1,1,1)
  8944.  
  8945. feather.Size = Vector3.new(.4,2.3,.3)
  8946.  
  8947. weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  8948.  
  8949. feather = newfeather()
  8950.  
  8951. feather.Mesh.Scale = Vector3.new(1,1,1)
  8952.  
  8953. feather.Size = Vector3.new(.35,2.2,.25)
  8954.  
  8955. weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  8956.  
  8957. local lf3 = {}
  8958.  
  8959. for i=0,7 do
  8960.  
  8961. feather = newfeather()
  8962.  
  8963. feather.Mesh.Scale = Vector3.new(1,1,1)
  8964.  
  8965. feather.Size = Vector3.new(.45,2.2,.35)
  8966.  
  8967. table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  8968.  
  8969. end
  8970.  
  8971. local lf2 = {}
  8972.  
  8973. for i=0,6 do
  8974.  
  8975. feather = newfeather()
  8976.  
  8977. feather.Mesh.Scale = Vector3.new(1,1,1)
  8978.  
  8979. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  8980.  
  8981. table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  8982.  
  8983. end
  8984.  
  8985. local lf1 = {}
  8986.  
  8987. for i=0,6 do
  8988.  
  8989. feather = newfeather()
  8990.  
  8991. feather.Mesh.Scale = Vector3.new(1,1,1)
  8992.  
  8993. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  8994.  
  8995. table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  8996.  
  8997. end
  8998.  
  8999. local rwing = {rm1,rm2,rm3,rm4}
  9000.  
  9001. local lwing = {lm1,lm2,lm3,lm4}
  9002.  
  9003. local oc0 = {}
  9004.  
  9005. for i,v in pairs(rwing) do
  9006.  
  9007. oc0[v] = v.C0
  9008.  
  9009. end
  9010.  
  9011. for i,v in pairs(lwing) do
  9012.  
  9013. oc0[v] = v.C0
  9014.  
  9015. end
  9016.  
  9017. function gotResized()
  9018.  
  9019. if lastsize then
  9020.  
  9021. if tor.Size == lastsize then return end -- This shouldn't happen?
  9022.  
  9023. local scaleVec = tor.Size/lastsize
  9024.  
  9025. for i,v in pairs(oc0) do
  9026.  
  9027. oc0[i] = v-v.p+scaleVec*v.p
  9028.  
  9029. end
  9030.  
  9031. lastsize = tor.Size
  9032.  
  9033. end
  9034.  
  9035. lastsize = tor.Size
  9036.  
  9037. end
  9038.  
  9039. tor.Changed:connect(function(p)
  9040.  
  9041. if p == "Size" then
  9042.  
  9043. gotResized()
  9044.  
  9045. end
  9046.  
  9047. end)
  9048.  
  9049. gotResized()
  9050.  
  9051. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  9052.  
  9053. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  9054.  
  9055. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  9056.  
  9057. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  9058.  
  9059. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  9060.  
  9061. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  9062.  
  9063.  
  9064. function setwings(tab,time)
  9065.  
  9066. time = time or 10
  9067.  
  9068. for i=1,4 do
  9069.  
  9070. rwing[i].DesiredAngle = tab[i]
  9071.  
  9072. lwing[i].DesiredAngle = tab[i]
  9073.  
  9074. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  9075.  
  9076. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  9077.  
  9078. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  9079.  
  9080. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  9081.  
  9082. end
  9083.  
  9084. for i,v in pairs(rf1) do
  9085.  
  9086. v.DesiredAngle = tab[9]
  9087.  
  9088. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  9089.  
  9090. end
  9091.  
  9092. for i,v in pairs(lf1) do
  9093.  
  9094. v.DesiredAngle = tab[9]
  9095.  
  9096. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  9097.  
  9098. end
  9099.  
  9100. for i,v in pairs(rf2) do
  9101.  
  9102. v.DesiredAngle = tab[10]
  9103.  
  9104. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  9105.  
  9106. end
  9107.  
  9108. for i,v in pairs(lf2) do
  9109.  
  9110. v.DesiredAngle = tab[10]
  9111.  
  9112. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  9113.  
  9114. end
  9115.  
  9116. for i,v in pairs(rf3) do
  9117.  
  9118. v.DesiredAngle = tab[11]
  9119.  
  9120. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  9121.  
  9122. end
  9123.  
  9124. for i,v in pairs(lf3) do
  9125.  
  9126. v.DesiredAngle = tab[11]
  9127.  
  9128. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  9129.  
  9130. end
  9131.  
  9132. end
  9133.  
  9134. setwings(outhigh,1)
  9135.  
  9136. flying = false
  9137.  
  9138. moving = false
  9139.  
  9140. for i,v in pairs(tor:GetChildren()) do
  9141.  
  9142. if v.ClassName:lower():match("body") then
  9143.  
  9144. v:Destroy()
  9145.  
  9146. end
  9147.  
  9148. end
  9149.  
  9150. local ctor = tor:Clone()
  9151.  
  9152. ctor:ClearAllChildren()
  9153.  
  9154. ctor.Name = "cTorso"
  9155.  
  9156. ctor.Transparency = 1
  9157.  
  9158. ctor.CanCollide = false
  9159.  
  9160. ctor.FormFactor = "Custom"
  9161.  
  9162. ctor.Size = Vector3.new(.2,.2,.2)
  9163.  
  9164. ctor.Parent = mod
  9165.  
  9166. weld(tor,ctor)
  9167.  
  9168. local bg = Instance.new("BodyGyro",ctor)
  9169.  
  9170. bg.maxTorque = Vector3.new()
  9171.  
  9172. bg.P = 15000
  9173.  
  9174. bg.D = 1000
  9175.  
  9176. local bv = Instance.new("BodyVelocity",ctor)
  9177.  
  9178. bv.maxForce = Vector3.new()
  9179.  
  9180. bv.P = 15000
  9181.  
  9182. vel = Vector3.new()
  9183.  
  9184. cf = CFrame.new()
  9185.  
  9186. flspd = 0
  9187.  
  9188.  
  9189. keysdown = {}
  9190.  
  9191. keypressed = {}
  9192.  
  9193. ktime = {}
  9194.  
  9195. descendtimer = 0
  9196.  
  9197. jumptime = tick()
  9198.  
  9199. hum.Jumping:connect(function()
  9200.  
  9201. jumptime = tick()
  9202.  
  9203. end)
  9204.  
  9205. cam = workspace.CurrentCamera
  9206.  
  9207. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  9208.  
  9209. keysdown[key] = true
  9210.  
  9211. keypressed[key] = true
  9212.  
  9213. if key == "q" then
  9214.  
  9215. descendtimer = tick()
  9216.  
  9217. elseif key == " " and not hum.Jump then
  9218.  
  9219. jumptime = tick()
  9220.  
  9221. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  9222.  
  9223. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  9224.  
  9225. end
  9226.  
  9227. ktime[key] = tick()
  9228.  
  9229. end))
  9230.  
  9231. ku = plr:GetMouse().KeyUp:connect(function(key)
  9232.  
  9233. keysdown[key] = false
  9234.  
  9235. if key == " " then
  9236.  
  9237. descendtimer = tick()
  9238.  
  9239. end
  9240.  
  9241. end)
  9242.  
  9243. function mid(a,b,c)
  9244.  
  9245. return math.max(a,math.min(b,c or -a))
  9246.  
  9247. end
  9248.  
  9249. function bn(a)
  9250.  
  9251. return a and 1 or 0
  9252.  
  9253. end
  9254.  
  9255. function gm(tar)
  9256.  
  9257. local m = 0
  9258.  
  9259. for i,v in pairs(tar:GetChildren()) do
  9260.  
  9261. if v:IsA("BasePart") then
  9262.  
  9263. m = m + v:GetMass()
  9264.  
  9265. end
  9266.  
  9267. m = m + gm(v)
  9268.  
  9269. end
  9270.  
  9271. return m
  9272.  
  9273. end
  9274.  
  9275. reqrotx = 0
  9276.  
  9277. local grav = 196.2
  9278.  
  9279. local con
  9280.  
  9281. con = game:GetService("RunService").Stepped:connect(oc(function()
  9282.  
  9283. --[[if not mod:IsDescendantOf(workspace) then
  9284.  
  9285. pcall(function() kd:disconnect() end)
  9286.  
  9287. pcall(function() ku:disconnect() end)
  9288.  
  9289. bg:Destroy()
  9290.  
  9291. bv:Destroy()
  9292.  
  9293. con:disconnect()
  9294.  
  9295. script:Destroy()
  9296.  
  9297. return
  9298.  
  9299. end]]
  9300.  
  9301. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  9302.  
  9303. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  9304.  
  9305. if flying then
  9306.  
  9307. local lfldir = fldir
  9308.  
  9309. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  9310.  
  9311. local lmoving = moving
  9312.  
  9313. moving = fldir.magnitude > .1
  9314.  
  9315. if lmoving and not moving then
  9316.  
  9317. idledir = lfldir*Vector3.new(1,0,1)
  9318.  
  9319. descendtimer = tick()
  9320.  
  9321. end
  9322.  
  9323. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  9324.  
  9325. if moving and keysdown["0"] and lmoving then
  9326.  
  9327. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  9328.  
  9329. end
  9330.  
  9331. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  9332.  
  9333. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  9334.  
  9335. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  9336.  
  9337. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  9338.  
  9339. hum.PlatformStand = true
  9340.  
  9341. bg.maxTorque = Vector3.new(1,1,1)*9e5
  9342.  
  9343. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  9344.  
  9345. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  9346.  
  9347. reqrotx = reqrotx - reqrotx/10
  9348.  
  9349. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  9350.  
  9351. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  9352.  
  9353. local ani = tickwave(1.5-anioff,1)
  9354.  
  9355. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  9356.  
  9357. vel = moving and cf.lookVector*flspd or Vector3.new()
  9358.  
  9359. flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
  9360.  
  9361. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  9362.  
  9363. for i=1,4 do
  9364.  
  9365. --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
  9366.  
  9367. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
  9368.  
  9369. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
  9370.  
  9371. end
  9372.  
  9373. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  9374.  
  9375. if hit and down.Y < -.85 and tick()-flystart > 1 then
  9376.  
  9377. flying = false
  9378.  
  9379. hum.PlatformStand = false
  9380.  
  9381. tor.Velocity = Vector3.new()
  9382.  
  9383. end
  9384.  
  9385. else
  9386.  
  9387. bg.maxTorque = Vector3.new()
  9388.  
  9389. bv.maxForce = Vector3.new()
  9390.  
  9391. local ani = tickwave(walking and .8 or 4.5,1)
  9392.  
  9393. setwings(idle,10)
  9394.  
  9395. local x,y,z = fspd/160,uspd/700,sspd/900
  9396.  
  9397. for i=1,4 do
  9398.  
  9399. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
  9400.  
  9401. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
  9402.  
  9403. end
  9404.  
  9405. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  9406.  
  9407. vel = Vector3.new(0,50,0)
  9408.  
  9409. bv.velocity = vel
  9410.  
  9411. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  9412.  
  9413. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  9414.  
  9415. tor.CFrame = cf
  9416.  
  9417. bg.cframe = cf
  9418.  
  9419. flystart = tick()
  9420.  
  9421. flying = true
  9422.  
  9423. end
  9424.  
  9425. end
  9426.  
  9427. keypressed = {}
  9428.  
  9429. end))
  9430.  
  9431.  
  9432.  
  9433. end fly()
  9434.  
  9435. --Bird Wings By deadropz
  9436.  
  9437.  
  9438.  
  9439. plr.Chatted:connect(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement