Advertisement
hunterwhitney85

phoenix sword script

Jul 15th, 2016
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.62 KB | None | 0 0
  1. ----------------------------------------------------------------------------------------------------------------------------------------------
  2. --mediafire
  3. plr=game.Players.LocalPlayer
  4. char=plr.Character
  5. char.Humanoid.WalkSpeed=20
  6. pcall(function() char.MainParts:Remove() end)
  7. bin=Instance.new("HopperBin",plr.Backpack)
  8. bin.Name="Pheonix Sword"
  9. script.Parent=bin
  10. attacking=false
  11. pcall(function() workspace.MainParts:Destroy() end)
  12. function makepart(name,parent,s1,s2,s3,color)
  13. p=Instance.new("Part",parent)
  14. p.Name=name
  15. p.formFactor="Custom"
  16. p.Anchored=false
  17. p.Locked=true
  18. p.CanCollide=false
  19. p.Size=Vector3.new(s1,s2,s3)
  20. p.BrickColor=BrickColor.new(color)
  21. p:BreakJoints()
  22. return p
  23. end
  24. function cylinder(part)
  25. bm=Instance.new("CylinderMesh",part)
  26. return bm
  27. end
  28. function blockmesh(part)
  29. bm=Instance.new("BlockMesh",part)
  30. return bm
  31. end
  32. function specmesh(part,type,s1,s2,s3)
  33. spec=Instance.new("SpecialMesh",part)
  34. spec.MeshType=type
  35. spec.Scale=Vector3.new(s1,s2,s3)
  36. return spec
  37. end
  38. chosen="Bright red"
  39. main=Instance.new("Model",char)
  40. main.Name="MainParts"
  41. handle = makepart("Handle",main,.2,2,.2,"Dark stone grey")
  42. cylinder(handle)
  43. wd1=Instance.new("Weld",handle)
  44. wd1.Part1=handle
  45. wd1.Part0=nil
  46. handlep = makepart("HandlePart",main,.22,0.02,.22,chosen)
  47. cyl1 = cylinder(handlep)
  48. cyl1.Scale=Vector3.new(1,.5,1)
  49. w1=Instance.new("Weld",handlep)
  50. w1.Part1=handle
  51. w1.Part0=handlep
  52. w1.C1=CFrame.new(0,1,0) * CFrame.Angles(0,0,0)
  53. handlep2 = makepart("HandlePart2",main,.25,.25,.25,chosen)
  54. specmesh(hanelp2,"Sphere",1,1,1)
  55. w1=Instance.new("Weld",handlep2)
  56. w1.Part1=handlep
  57. w1.Part0=handlep2
  58. w1.C1=CFrame.new(0,.05,0) * CFrame.Angles(0,0,0)
  59. handlep3 = makepart("HandlePart3",main,.22,0.02,.22,chosen)
  60. cyl1 = cylinder(handlep3)
  61. cyl1.Scale=Vector3.new(1,.3,1)
  62. w1=Instance.new("Weld",handlep3)
  63. w1.Part1=handle
  64. w1.Part0=handlep3
  65. w1.C1=CFrame.new(0,-.5,0) * CFrame.Angles(0,0,0)
  66. handlep4 = makepart("HandlePart4",main,.24,0.02,.24,chosen)
  67. cyl1 = cylinder(handlep4)
  68. cyl1.Scale=Vector3.new(1,.3,1)
  69. w1=Instance.new("Weld",handlep4)
  70. w1.Part1=handle
  71. w1.Part0=handlep4
  72. w1.C1=CFrame.new(0,-.54,0) * CFrame.Angles(0,0,0)
  73. handlep5 = makepart("HandlePart5",main,.26,0.02,.26,chosen)
  74. cyl1 = cylinder(handlep5)
  75. cyl1.Scale=Vector3.new(1,.3,1)
  76. w1=Instance.new("Weld",handlep5)
  77. w1.Part1=handle
  78. w1.Part0=handlep5
  79. w1.C1=CFrame.new(0,-.57,0) * CFrame.Angles(0,0,0)
  80. handlep6 = makepart("HandlePart6",main,.02,0.02,.02,chosen)
  81. bm6=blockmesh(handlep6)
  82. bm6.Scale=Vector3.new(2,2.6,1.3)
  83. w1=Instance.new("Weld",handlep6)
  84. w1.Part1=handle
  85. w1.Part0=handlep6
  86. w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
  87. handlep7 = makepart("HandlePart7",main,.02,0.02,.02,chosen)
  88. bm7=blockmesh(handlep7)
  89. bm7.Scale=Vector3.new(3,1.6,1.3)
  90. w1=Instance.new("Weld",handlep7)
  91. w1.Part1=handle
  92. w1.Part0=handlep7
  93. w1.C1=CFrame.new(.5,-.84,0) * CFrame.Angles(0,0,0)
  94. handlep8 = makepart("HandlePart8",main,.02,0.02,.02,chosen)
  95. bm8=blockmesh(handlep8)
  96. bm8.Scale=Vector3.new(3,1.6,1.3)
  97. w1=Instance.new("Weld",handlep8)
  98. w1.Part1=handle
  99. w1.Part0=handlep8
  100. w1.C1=CFrame.new(-.5,-.84,0) * CFrame.Angles(0,0,0)
  101. handlep11 = makepart("HandlePart11",main,.02,0.02,.02,"Dark stone grey")
  102. bm11=blockmesh(handlep11)
  103. bm11.Scale=Vector3.new(1.4,1.4,1.61)
  104. w1=Instance.new("Weld",handlep11)
  105. w1.Part1=handle
  106. w1.Part0=handlep11
  107. w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
  108. bladep1 = makepart("BladePart1",main,.02,4,.02,"Dark stone grey")
  109. bp1=blockmesh(bladep1)
  110. bp1.Scale=Vector3.new(4,1,.5)
  111. w1=Instance.new("Weld",bladep1)
  112. w1.Part1=handle
  113. w1.Part0=bladep1
  114. w1.C1=CFrame.new(0,-3,0) * CFrame.Angles(0,0,0)
  115. bladep2 = makepart("BladePart2",main,.02,.02,.02,chosen)
  116. bp2=specmesh(bladep2,"Wedge",.6,1,1)
  117. w1=Instance.new("Weld",bladep2)
  118. w1.Part1=handle
  119. w1.Part0=bladep2
  120. w1.C1=CFrame.new(-0.2,-4.6,0)
  121. w1.C0=CFrame.Angles(0,math.rad(90),0)
  122. bladep3 = makepart("BladePart3",main,.02,.02,.02,chosen)
  123. bp3=specmesh(bladep3,"Wedge",.6,1,1)
  124. w1=Instance.new("Weld",bladep3)
  125. w1.Part1=handle
  126. w1.Part0=bladep3
  127. w1.C1=CFrame.new(0.2,-4.6,0)
  128. w1.C0=CFrame.Angles(0,math.rad(270),0)
  129. bladep4 = makepart("BladePart4",main,.02,.02,.02,chosen)
  130. bp4=specmesh(bladep4,"Wedge",.6,1,1)
  131. w1=Instance.new("Weld",bladep4)
  132. w1.Part1=handle
  133. w1.Part0=bladep4
  134. w1.C1=CFrame.new(0.2,-4.3,0)
  135. w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
  136. bladep5 = makepart("BladePart5",main,.02,.02,.02,chosen)
  137. bp5=specmesh(bladep5,"Wedge",.6,1,1)
  138. w1=Instance.new("Weld",bladep5)
  139. w1.Part1=handle
  140. w1.Part0=bladep5
  141. w1.C1=CFrame.new(-0.2,-4.3,0)
  142. w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
  143. bladep6 = makepart("BladePart6",main,.02,.02,.02,chosen)
  144. bp6=cylinder(bladep6)
  145. bp6.Scale=Vector3.new(1,.6,1)
  146. w1=Instance.new("Weld",bladep6)
  147. w1.Part1=handle
  148. w1.Part0=bladep6
  149. w1.C1=CFrame.new(0,-4.45,0)
  150. w1.C0=CFrame.Angles(math.rad(90),0,math.rad(90))
  151. bladep7 = makepart("BladePart7",main,.02,.02,.02,chosen)
  152. bp7=blockmesh(bladep7)
  153. bp7.Scale=Vector3.new(.6,16.6,.6)
  154. w1=Instance.new("Weld",bladep7)
  155. w1.Part1=handle
  156. w1.Part0=bladep7
  157. w1.C1=CFrame.new(0,-2.72,0)
  158. bladep8 = makepart("BladePart8",main,.02,.02,.02,"Dark stone grey")
  159. bp8=specmesh(bladep8,"Wedge",.51,2,3)
  160. w1=Instance.new("Weld",bladep8)
  161. w1.Part1=handle
  162. w1.Part0=bladep8
  163. w1.C1=CFrame.new(0.20,-5.3,0)
  164. w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
  165. bladep9 = makepart("BladePart9",main,.02,.02,.02,"Dark stone grey")
  166. bp9=specmesh(bladep9,"Wedge",.51,2,3)
  167. w1=Instance.new("Weld",bladep9)
  168. w1.Part1=handle
  169. w1.Part0=bladep9
  170. w1.C1=CFrame.new(-0.20,-5.3,0)
  171. w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
  172. --[[ Ghost Sword ]]
  173. function ghost()
  174. main2=Instance.new("Model",char)
  175. main2.Name="GhostMainParts"
  176. handleg = makepart("Handle",main2,.2,2,.2,"Dark stone grey")
  177. cylinder(handleg)
  178. wd12=Instance.new("Weld",handleg)
  179. wd12.Part1=handleg
  180. wd12.Name="Weldd"
  181. wd12.Part0=nil
  182. handlep = makepart("HandlePart",main2,.22,0.02,.22,chosen)
  183. cyl1 = cylinder(handlep)
  184. cyl1.Scale=Vector3.new(1,.5,1)
  185. w1=Instance.new("Weld",handlep)
  186. w1.Part1=handleg
  187. w1.Part0=handlep
  188. w1.C1=CFrame.new(0,1,0) * CFrame.Angles(0,0,0)
  189. handlep2 = makepart("HandlePart2",main2,.25,.25,.25,chosen)
  190. specmesh(hanelp2,"Sphere",1,1,1)
  191. w1=Instance.new("Weld",handlep2)
  192. w1.Part1=handlep
  193. w1.Part0=handlep2
  194. w1.C1=CFrame.new(0,.05,0) * CFrame.Angles(0,0,0)
  195. handlep3 = makepart("HandlePart3",main2,.22,0.02,.22,chosen)
  196. cyl1 = cylinder(handlep3)
  197. cyl1.Scale=Vector3.new(1,.3,1)
  198. w1=Instance.new("Weld",handlep3)
  199. w1.Part1=handleg
  200. w1.Part0=handlep3
  201. w1.C1=CFrame.new(0,-.5,0) * CFrame.Angles(0,0,0)
  202. handlep4 = makepart("HandlePart4",main2,.24,0.02,.24,chosen)
  203. cyl1 = cylinder(handlep4)
  204. cyl1.Scale=Vector3.new(1,.3,1)
  205. w1=Instance.new("Weld",handlep4)
  206. w1.Part1=handleg
  207. w1.Part0=handlep4
  208. w1.C1=CFrame.new(0,-.54,0) * CFrame.Angles(0,0,0)
  209. handlep5 = makepart("HandlePart5",main2,.26,0.02,.26,chosen)
  210. cyl1 = cylinder(handlep5)
  211. cyl1.Scale=Vector3.new(1,.3,1)
  212. w1=Instance.new("Weld",handlep5)
  213. w1.Part1=handleg
  214. w1.Part0=handlep5
  215. w1.C1=CFrame.new(0,-.57,0) * CFrame.Angles(0,0,0)
  216. handlep6 = makepart("HandlePart6",main2,.02,0.02,.02,chosen)
  217. bm6=blockmesh(handlep6)
  218. bm6.Scale=Vector3.new(2,2.6,1.3)
  219. w1=Instance.new("Weld",handlep6)
  220. w1.Part1=handleg
  221. w1.Part0=handlep6
  222. w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
  223. handlep7 = makepart("HandlePart7",main2,.02,0.02,.02,chosen)
  224. bm7=blockmesh(handlep7)
  225. bm7.Scale=Vector3.new(3,1.6,1.3)
  226. w1=Instance.new("Weld",handlep7)
  227. w1.Part1=handleg
  228. w1.Part0=handlep7
  229. w1.C1=CFrame.new(.5,-.84,0) * CFrame.Angles(0,0,0)
  230. handlep8 = makepart("HandlePart8",main2,.02,0.02,.02,chosen)
  231. bm8=blockmesh(handlep8)
  232. bm8.Scale=Vector3.new(3,1.6,1.3)
  233. w1=Instance.new("Weld",handlep8)
  234. w1.Part1=handleg
  235. w1.Part0=handlep8
  236. w1.C1=CFrame.new(-.5,-.84,0) * CFrame.Angles(0,0,0)
  237. handlep11 = makepart("HandlePart11",main2,.02,0.02,.02,"Dark stone grey")
  238. bm11=blockmesh(handlep11)
  239. bm11.Scale=Vector3.new(1.4,1.4,1.61)
  240. w1=Instance.new("Weld",handlep11)
  241. w1.Part1=handleg
  242. w1.Part0=handlep11
  243. w1.C1=CFrame.new(0,-.84,0) * CFrame.Angles(0,0,0)
  244. bladep1 = makepart("BladePart1",main2,.02,4,.02,"Dark stone grey")
  245. bp1=blockmesh(bladep1)
  246. bp1.Scale=Vector3.new(4,1,.5)
  247. w1=Instance.new("Weld",bladep1)
  248. w1.Part1=handleg
  249. w1.Part0=bladep1
  250. w1.C1=CFrame.new(0,-3,0) * CFrame.Angles(0,0,0)
  251. bladep2 = makepart("BladePart2",main2,.02,.02,.02,chosen)
  252. bp2=specmesh(bladep2,"Wedge",.6,1,1)
  253. w1=Instance.new("Weld",bladep2)
  254. w1.Part1=handleg
  255. w1.Part0=bladep2
  256. w1.C1=CFrame.new(-0.2,-4.6,0)
  257. w1.C0=CFrame.Angles(0,math.rad(90),0)
  258. bladep3 = makepart("BladePart3",main2,.02,.02,.02,chosen)
  259. bp3=specmesh(bladep3,"Wedge",.6,1,1)
  260. w1=Instance.new("Weld",bladep3)
  261. w1.Part1=handleg
  262. w1.Part0=bladep3
  263. w1.C1=CFrame.new(0.2,-4.6,0)
  264. w1.C0=CFrame.Angles(0,math.rad(270),0)
  265. bladep4 = makepart("BladePart4",main2,.02,.02,.02,chosen)
  266. bp4=specmesh(bladep4,"Wedge",.6,1,1)
  267. w1=Instance.new("Weld",bladep4)
  268. w1.Part1=handleg
  269. w1.Part0=bladep4
  270. w1.C1=CFrame.new(0.2,-4.3,0)
  271. w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
  272. bladep5 = makepart("BladePart5",main2,.02,.02,.02,chosen)
  273. bp5=specmesh(bladep5,"Wedge",.6,1,1)
  274. w1=Instance.new("Weld",bladep5)
  275. w1.Part1=handleg
  276. w1.Part0=bladep5
  277. w1.C1=CFrame.new(-0.2,-4.3,0)
  278. w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
  279. bladep6 = makepart("BladePart6",main2,.02,.02,.02,chosen)
  280. bp6=cylinder(bladep6)
  281. bp6.Scale=Vector3.new(1,.6,1)
  282. w1=Instance.new("Weld",bladep6)
  283. w1.Part1=handleg
  284. w1.Part0=bladep6
  285. w1.C1=CFrame.new(0,-4.45,0)
  286. w1.C0=CFrame.Angles(math.rad(90),0,math.rad(90))
  287. bladep7 = makepart("BladePart7",main2,.02,.02,.02,chosen)
  288. bp7=blockmesh(bladep7)
  289. bp7.Scale=Vector3.new(.6,16.6,.6)
  290. w1=Instance.new("Weld",bladep7)
  291. w1.Part1=handleg
  292. w1.Part0=bladep7
  293. w1.C1=CFrame.new(0,-2.72,0)
  294. bladep8 = makepart("BladePart8",main2,.02,.02,.02,"Dark stone grey")
  295. bp8=specmesh(bladep8,"Wedge",.51,2,3)
  296. w1=Instance.new("Weld",bladep8)
  297. w1.Part1=handleg
  298. w1.Part0=bladep8
  299. w1.C1=CFrame.new(0.20,-5.3,0)
  300. w1.C0=CFrame.Angles(math.rad(90),math.rad(90),0)
  301. bladep9 = makepart("BladePart9",main2,.02,.02,.02,"Dark stone grey")
  302. bp9=specmesh(bladep9,"Wedge",.51,2,3)
  303. w1=Instance.new("Weld",bladep9)
  304. w1.Part1=handleg
  305. w1.Part0=bladep9
  306. w1.C1=CFrame.new(-0.20,-5.3,0)
  307. w1.C0=CFrame.Angles(math.rad(90),math.rad(270),0)
  308. return main2
  309. end
  310. hold=false
  311. --[[Key/Mouse]]
  312. mode="normal"
  313. function select()
  314. mode="normal"
  315. equipanim()
  316. end
  317. function unselect()
  318. char.Humanoid.WalkSpeed=20
  319. hideanim()
  320. end
  321. combo=0
  322. bin.Selected:connect(function(mouse)
  323. select()
  324. mouse.Button1Down:connect(function()
  325. if combo==0 then
  326. slashanim()
  327. combo = 1
  328. elseif combo==1 then
  329. slashanim2()
  330. combo = 0
  331. end
  332. end)
  333. mouse.KeyDown:connect(function(key)
  334. hold=true
  335. if mode=="normal" then
  336. if key == "q" then
  337. move3()
  338. elseif key=="e" then
  339. move4()
  340. elseif key=="r" then
  341. move5()
  342. end
  343. end
  344. end)
  345. mouse.KeyUp:connect(function()
  346. hold=false
  347. end)
  348. end)
  349. bin.Deselected:connect(function()
  350. unselect()
  351. end)
  352. --[[DMG]]
  353. function damagesplat(dmg,hit)
  354. local mo = Instance.new("Model")
  355. mo.Name = dmg
  356. local pa = Instance.new("Part",mo)
  357. pa.formFactor = 3
  358. pa.Size = Vector3.new(0.8,0.3,0.8)
  359. pa.BrickColor = BrickColor.new(chosen)
  360. pa.CanCollide=false
  361. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  362. pa.Name = "Head"
  363. cm=Instance.new("CylinderMesh",pa)
  364. local hah = Instance.new("Humanoid")
  365. hah.Parent = mo
  366. hah.MaxHealth = 0
  367. hah.Health = 0
  368. local bp = Instance.new("BodyPosition")
  369. bp.P = 14000
  370. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  371. bp.position = hit.Position + Vector3.new(0, 5, 0)
  372. coroutine.resume(coroutine.create(function()
  373. wait()
  374. mo.Parent = workspace
  375. bp.Parent = pa
  376. wait(1.4)
  377. mo:remove()
  378. end))
  379. end
  380. con = nil
  381. con2 = nil
  382. hitd=0
  383. hitd2=0
  384. function OT(hit)
  385. if hit.Parent == nil then return end
  386. local hum = hit.Parent:findFirstChild("Humanoid")
  387. local head = hit.Parent:findFirstChild("Head")
  388. if hum ~= nil then
  389. dm=math.random(3,12)
  390. hum:TakeDamage(dm)
  391. if head ~= nil then
  392. damagesplat(dm,head)
  393. end
  394. end
  395. hitd=1
  396. end
  397. function OT2(hit)
  398. if hit.Parent == nil then return end
  399. local hum = hit.Parent:findFirstChild("Humanoid")
  400. local head = hit.Parent:findFirstChild("Head")
  401. if hum ~= nil then
  402. dm=math.random(3,18)
  403. hum:TakeDamage(dm)
  404. if head ~= nil then
  405. damagesplat(dm,head)
  406. end
  407. end
  408. hitd2=1
  409. end
  410. function dmgcnnct(p)
  411. con = p.Touched:connect(OT)
  412. end
  413. function dmgcnnct2(p)
  414. con2 = p.Touched:connect(OT2)
  415. end
  416. function dmgdc2()
  417. if con2 ~= nil then
  418. con2:disconnect()
  419. hitd2=0
  420. end
  421. end
  422. function dmgdc()
  423. if con ~= nil then
  424. con:disconnect()
  425. hitd=0
  426. end
  427. end
  428. --[[Anims]]--
  429. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  430. ch = char
  431. player=plr
  432. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  433. RW.Part0 = ch.Torso
  434. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  435. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  436. RW.Parent = main
  437. --
  438. LW.Part0 = ch.Torso
  439. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  440. LW.C1 = CFrame.new(0, 0.5, 0)
  441. LW.Parent = main
  442. --
  443. RWL.Part0 = ch.Torso
  444. RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  445. RWL.C1 = CFrame.new(0.5, 1, 0)
  446. RWL.Parent = main
  447. --
  448. LWL.Part0 = ch.Torso
  449. LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  450. LWL.C1 = CFrame.new(-0.5, 1, 0)
  451. LWL.Parent = main
  452. function RWFunc()
  453. RW.Part1 = ch["Right Arm"]
  454. RSH.Part1 = nil
  455. end
  456. function LWFunc()
  457. LW.Part1 = ch["Left Arm"]
  458. LSH.Part1 = nil
  459. end
  460. function RWLFunc()
  461. RWL.Part1 = ch["Right Leg"]
  462. RHL.Part1 = nil
  463. ch["Right Leg"].Name = "RightLeg"
  464. RightLeg.CanCollide = false
  465. end
  466. function LWLFunc()
  467. LWL.Part1 = ch["Left Leg"]
  468. LHL.Part1 = nil
  469. ch["Left Leg"].Name = "LeftLeg"
  470. LeftLeg.CanCollide = true
  471. end
  472. function RWLRem()
  473. RightLeg.Name = "Right Leg"
  474. RWL.Part1 = nil
  475. RHL.Part1 = ch["Right Leg"]
  476. RightLeg.CanCollide = false
  477. end
  478. function LWLRem()
  479. LeftLeg.Name = "Left Leg"
  480. LWL.Part1 = nil
  481. LHL.Part1 = ch["Left Leg"]
  482. LeftLeg.CanCollide = false
  483. end
  484. function RWRem()
  485. RW.Part1 = nil
  486. RSH.Part1 = ch["Right Arm"]
  487. end
  488. function LWRem()
  489. LW.Part1 = nil
  490. LSH.Part1 = ch["Left Arm"]
  491. end
  492. local RAP = Instance.new("Part")
  493. RAP.formFactor = 0
  494. RAP.CanCollide = false
  495. RAP.Name = "RAPart"
  496. RAP.Locked = true
  497. RAP.Size = Vector3.new(1,1,1)
  498. RAP.Parent = main
  499. RAP.Transparency = 1
  500. local w = Instance.new("Weld")
  501. w.Parent = RAP
  502. w.Part0 = RAP
  503. w.Part1 = char["Right Arm"]
  504. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  505. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  506. local LAP = Instance.new("Part")
  507. LAP.formFactor = 0
  508. LAP.CanCollide = false
  509. LAP.Name = "LAPart"
  510. LAP.Locked = true
  511. LAP.Size = Vector3.new(1,1,1)
  512. LAP.Parent = main
  513. LAP.Transparency = 1
  514. local ww = Instance.new("Weld")
  515. ww.Parent = LAP
  516. ww.Part0 = LAP
  517. ww.Part1 = char["Left Arm"]
  518. ww.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  519. ww.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  520. function unequipweld()
  521. wd1.Part0 = char.Torso
  522. wd1.C1=CFrame.new(0,-1.5,-.6) * CFrame.Angles(0,0,.8)
  523. wd1.C0=CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  524. end
  525. unequipweld()
  526. function equipweld()
  527. wd1.Part0 = RAP
  528. wd1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  529. wd1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
  530. end
  531. function hideanim()
  532. RWFunc()
  533. for i = 0 , 1 , 0.2 do
  534. wait()
  535. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i))
  536. end
  537. for i = 0 , 1 , 0.15 do
  538. wait()
  539. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i))
  540. end
  541. unequipweld()
  542. wait(0.1)
  543. for i = 0 , 1 , 0.1 do
  544. wait()
  545. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i))
  546. end
  547. RWRem()
  548. LWRem()
  549. end
  550. function equipanim()
  551. RWFunc()
  552. for i = 0 , 1 , 0.1 do
  553. wait(.05)
  554. RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i))
  555. end
  556. equipweld()
  557. for i = 0 , 1 , 0.2 do
  558. wait(.05)
  559. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i))
  560. end
  561. for i = 0 , 1 , 0.15 do
  562. wait(.05)
  563. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i))
  564. end
  565. for i = 0 , 1 , 0.1 do
  566. wait(.05)
  567. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(35), math.rad(45-90*i))
  568. end
  569. end
  570. function slashanim()
  571. RWFunc()
  572. if attacking==true then return end
  573. attacking=true
  574. for i = 0 , 1 , 0.1 do
  575. wait()
  576. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i))
  577. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0))
  578. end
  579. dmgcnnct(bladep1)
  580. for i = 0 , 1 , 0.3 do
  581. wait()
  582. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  583. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0))
  584. end
  585. for i = 0 , 1 , 0.2 do
  586. wait()
  587. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  588. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0))
  589. end
  590. dmgdc()
  591. if mode=="normal" then
  592. wait(0.15)
  593. wait()
  594. for i = 0 , 1 , 0.1 do
  595. wait()
  596. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  597. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0))
  598. end
  599. end
  600. attacking=false
  601. end
  602. function test(f)
  603. local a,b=coroutine.resume(coroutine.create(f))
  604. if not a then
  605. local h=Instance.new("Hint",workspace)
  606. h.Text="LOCAL: "..b
  607. wait(10)
  608. h:remove()
  609. end
  610. end
  611. function slashanim2()
  612. test(function()
  613. RWFunc()
  614. LWFunc()
  615. if attacking==true then return end
  616. attacking=true
  617. for i=0,1,0.1 do
  618. wait()
  619. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,0,math.rad(30*i))
  620. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,0,math.rad(-30*i))
  621. end
  622. fake=ghost()
  623. fake.Handle.Weldd.Part0=LAP
  624. fake.Handle.Weldd.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  625. fake.Handle.Weldd.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
  626. for i,d in pairs(fake:GetChildren()) do
  627. d.Transparency=0.5
  628. d.BrickColor=BrickColor.new("White")
  629. end
  630. for i=0,1,0.1 do
  631. wait()
  632. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(0+120*i),0,math.rad(30))
  633. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(0+120*i),0,math.rad(-30))
  634. end
  635. dmgcnnct(bladep1)
  636. dmgcnnct2(fake.BladePart1)
  637. for i=0,1,0.2 do
  638. wait()
  639. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(120 - 120*i),0,math.rad(30 - 30*i))
  640. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(120 - 120*i),0,math.rad(-30 - -30*i))
  641. end
  642. dmgdc()
  643. dmgdc2()
  644. for i=0,1,0.1 do
  645. wait()
  646. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,0,math.rad(0 + 90*i))
  647. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,0,math.rad(-0 + -90*i))
  648. end
  649. dmgcnnct(bladep1)
  650. dmgcnnct2(fake.BladePart1)
  651. for i=0,1,0.1 do
  652. wait()
  653. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(0 + 60*i),math.rad(90 + 0))
  654. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(-0 + -60*i),math.rad(-80 + -0))
  655. end
  656. dmgdc()
  657. dmgdc2()
  658. for i=0,1,0.1 do
  659. wait()
  660. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(60 - 60*i),math.rad(90 + 0))
  661. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(-60 - -60*i),math.rad(-80 + -0))
  662. end
  663. for i=0,1,0.1 do
  664. wait()
  665. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(0,0,math.rad(90 - 90*i))
  666. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(0,0,math.rad(-90 - -90*i))
  667. end
  668. fake:Remove()
  669. LWRem()
  670. for i = 0 , 1 , 0.1 do
  671. wait()
  672. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(35*i), math.rad(-35 + -10*i))
  673. end
  674. attacking=false
  675. end)
  676. end
  677. function move3()
  678. RWFunc()
  679. LWFunc()
  680. if attacking==true then return end
  681. attacking=true
  682. fake2=ghost()
  683. fake2.Handle.Weldd.Part0=LAP
  684. fake2.Handle.Weldd.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  685. fake2.Handle.Weldd.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
  686. for i,d in pairs(fake2:GetChildren()) do
  687. d.Transparency=0.5
  688. d.BrickColor=BrickColor.new("Royal purple")
  689. end
  690. for i=0,1,0.1 do
  691. wait()
  692. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(50+50*i),0,math.rad(40+43*i))
  693. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(50+50*i),0,math.rad(-40+-43*i))
  694. wd1.C0 = CFrame.Angles(0,0,math.rad(90*i))
  695. fake2.Handle.Weldd.C0 = CFrame.Angles(0,0,math.rad(90*i))
  696. end
  697. dmgcnnct(bladep1)
  698. dmgcnnct2(fake2.BladePart1)
  699. local TorsCF = char.Torso.CFrame
  700. local bg = Instance.new("BodyGyro",char.Torso)
  701. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  702. bg.P = bg.p * 25
  703. bg.cframe = TorsCF
  704. char.Humanoid.WalkSpeed=30
  705. for i=0,50,0.2 do
  706. wait()
  707. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180+180*i),0)
  708. end
  709. char.Humanoid.WalkSpeed=20
  710. game.Debris:AddItem(bg,0.02)
  711. dmgdc()
  712. dmgdc2()
  713. for i=0,1,0.1 do
  714. wait()
  715. RW.C0 = CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(100 - 0*i),0,math.rad(-83 + 83*i))
  716. LW.C0 = CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(100 - 0*i),0,math.rad(-83 + 83*i))
  717. end
  718. fake2:Remove()
  719. LWRem()
  720. for i=0,1,0.1 do
  721. wait()
  722. wd1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(90 + 0*i)) * CFrame.new(0, 0, 0.2)
  723. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(100 + -20*i), math.rad(35*i), math.rad(-35 + -10*i))
  724. end
  725. attacking=false
  726. end
  727. function move4()
  728. RWFunc()
  729. LWFunc()
  730. if attacking==true then return end
  731. attacking=true
  732. for i=0,1,0.1 do
  733. wait()
  734. RW.C0=CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(10 + 5*i),math.rad(50+50*i))
  735. LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(80 + 0*i),math.rad(0+-50*i))
  736. end
  737. for i=0,1,0.1 do
  738. wait()
  739. LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(80 + 0*i),math.rad(-50 + 150*i))
  740. end
  741. function Burn(Part)
  742. if Part.Anchored == true and Part.Name == "Base" then return end
  743. if Part:IsDescendantOf(char) then return end
  744. if Part.Name =="Fireball" then return end
  745. local Fire = Instance.new("Fire")
  746. Fire.Heat = 2
  747. Fire.Size = 5
  748. Fire.Parent = Part
  749. Part:BreakJoints()
  750. Part.BrickColor = BrickColor.new("Royal purple")
  751. wait(2)
  752. game.Debris:AddItem(Part,0.02)
  753. end
  754. function Ignite(Part)
  755. if Part.Anchored == true and Part.Name == "Base" then return end
  756. if Part:IsDescendantOf(char) then return end
  757. if Part:FindFirstChild("Fire") == nil then
  758. Part.Anchored = false
  759. local Fire = Instance.new("Fire")
  760. Fire.Heat = 2
  761. Fire.Size = 5
  762. Fire.Parent = Part
  763. Part:BreakJoints()
  764. Part.Touched:connect(function(Hit) Burn(Hit) end)
  765. Part.BrickColor = BrickColor.new("Royal purple")
  766. end
  767. end
  768. for i = 1, 150 do
  769. local Source = char.Torso
  770. local Fireball = Instance.new("Part", Workspace)
  771. Fireball.Name = "Fireball"
  772. Fireball.CanCollide = false
  773. Fireball.TopSurface = 0
  774. Fireball.BottomSurface = 0
  775. Fireball.FormFactor = "Custom"
  776. Fireball.Shape = "Ball"
  777. Fireball.Size = Vector3.new(5, 5, 5)
  778. Fireball.CFrame = Source.CFrame * CFrame.new(0, 0, -5)
  779. local Velocity = Instance.new("BodyVelocity")
  780. Velocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  781. Velocity.velocity = (Source.CFrame.lookVector * 50) + Vector3.new(math.random(-25,25), math.random(-10,10), math.random(-10,10))
  782. Velocity.Parent = Fireball
  783. Ignite(Fireball)
  784. Fireball.BrickColor = BrickColor.new("Royal purple")
  785. coroutine.wrap(function() wait(math.random(1, 9) / 10) for i = 0, 1, 0.1 do Fireball.Transparency = i wait() end Fireball.Fire.Enabled = false Fireball.Anchored = true wait(1) Fireball:Remove() end)()
  786. wait()
  787. end
  788. for i=0,1,0.1 do
  789. wait()
  790. RW.C0 = CFrame.new(1.5-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(15+15+50*i), math.rad(35*i), math.rad(100-140*i))
  791. LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(80 - 80*i),math.rad(100-100*i))
  792. end
  793. LWRem()
  794. attacking=false
  795. end
  796. function move5()
  797. RWFunc()
  798. LWFunc()
  799. if attacking==true then return end
  800. attacking=true
  801. fake3=ghost()
  802. fake3.Handle.Weldd.Part0=LAP
  803. fake3.Handle.Weldd.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  804. fake3.Handle.Weldd.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, -0.2)
  805. for i,d in pairs(fake3:GetChildren()) do
  806. d.Transparency=0.5
  807. d.BrickColor=BrickColor.new("Royal purple")
  808. end
  809. for i=0,1,0.1 do
  810. wait()
  811. RW.C0=CFrame.new(1.5,.5,0) * CFrame.Angles(0,math.rad(-50+-50*i),math.rad(30+30*i))
  812. LW.C0=CFrame.new(-1.5,.5,0) * CFrame.Angles(0,math.rad(50+50*i),math.rad(-30+-30*i))
  813. end
  814. f=0
  815. powermod=Instance.new("Model",char)
  816. powermod.Name="PowerMode"
  817. for i=0,3,0.1 do
  818. f=f+1
  819. wait()
  820. ball=Instance.new("Part",powermod)
  821. ball.formFactor="Custom"
  822. ball.Shape="Ball"
  823. ball.TopSurface="Smooth"
  824. ball.BottomSurface="Smooth"
  825. ball.BrickColor=BrickColor.new(chosen)
  826. ball.Transparency=0.5
  827. ball.Anchored=true
  828. ball.CanCollide=false
  829. ball.Size=Vector3.new(f,f,f)
  830. ball.CFrame=char.Torso.CFrame
  831. end
  832. wait(.1)
  833. powermod:Remove()
  834. function Burn(Part)
  835. if Part.Anchored == true and Part.Name == "Base" then return end
  836. if Part:IsDescendantOf(char) then return end
  837. if Part.Name =="Fireball" then return end
  838. local Fire = Instance.new("Fire")
  839. Fire.Heat = 2
  840. Fire.Size = 5
  841. Fire.Parent = Part
  842. Part:BreakJoints()
  843. Part.BrickColor = BrickColor.new("Royal purple")
  844. wait(2)
  845. game.Debris:AddItem(Part,0.02)
  846. end
  847. function Ignite(Part)
  848. if Part.Anchored == true and Part.Name == "Base" then return end
  849. if Part:IsDescendantOf(char) then return end
  850. if Part:FindFirstChild("Fire") == nil then
  851. Part.Anchored = false
  852. local Fire = Instance.new("Fire")
  853. Fire.Heat = 100
  854. Fire.Size = 100
  855. Fire.Parent = Part
  856. Part:BreakJoints()
  857. Part.Touched:connect(function(Hit) Burn(Hit) end)
  858. Part.BrickColor = BrickColor.new("Royal purple")
  859. end
  860. end
  861. for i = 1, 250 do
  862. local Source = char.Torso
  863. local Fireball = Instance.new("Part", Workspace)
  864. Fireball.Name = "Fireball"
  865. Fireball.CanCollide = false
  866. Fireball.TopSurface = 0
  867. Fireball.BottomSurface = 0
  868. Fireball.FormFactor = "Custom"
  869. Fireball.Shape = "Ball"
  870. Fireball.Size = Vector3.new(50, 50, 50)
  871. Fireball.CFrame = Source.CFrame * CFrame.new(0, 0, -30)
  872. local Velocity = Instance.new("BodyVelocity")
  873. Velocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  874. Velocity.velocity = (Source.CFrame.lookVector * 250) + Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2))
  875. Velocity.Parent = Fireball
  876. Ignite(Fireball)
  877. Fireball.BrickColor = BrickColor.new("Royal purple")
  878. coroutine.wrap(function() wait(math.random(1, 9) / 10) for i = 0, 1, 0.1 do Fireball.Transparency = i wait() end Fireball.Fire.Enabled = false Fireball.Anchored = true wait(1) Fireball:Remove() end)()
  879. wait(0.02)
  880. end
  881. fake3:Remove()
  882. LWRem()
  883. attacking=false
  884. end
  885. function swordmode()
  886. RWFunc()
  887. char.Humanoid.WalkSpeed=20
  888. bin.Name="Pheonix Sword"
  889. hitdeb=1
  890. hitdeb=0
  891. wd1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  892. wd1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90)) * CFrame.new(0, 0, 0.2)
  893. for i = 0 , 1 , 0.1 do
  894. wait()
  895. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(35), math.rad(45-90*i))
  896. end
  897. mode="normal"
  898. end --[[Filterd, May Error]]-- --[[Filterd, May Error]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement