Advertisement
GangHaning

Phoenix Transformation

Dec 8th, 2016
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.58 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = game.Workspace:WaitForChild(plr.Name)
  3. local m = plr:GetMouse()
  4. local trans = false
  5. local realdeb = false
  6. local PGui = plr:WaitForChild("PlayerGui")
  7. local chat = game:GetService"Chat"
  8. local Head = char:WaitForChild"Head"
  9. local Torso = char:WaitForChild"Torso"
  10. local HRP = char:WaitForChild"HumanoidRootPart"
  11. local RArm = char:WaitForChild"Right Arm"
  12. local LArm = char:WaitForChild"Left Arm"
  13. local RLeg = char:WaitForChild"Right Leg"
  14. local LLeg = char:WaitForChild"Left Leg"
  15. local Hum = char:WaitForChild'Humanoid'
  16. local lastspeed = Hum.WalkSpeed
  17. msgz = Instance.new("Message", PGui)
  18. msgz.Text = "BONUS TRANSFORMATION! Press \'M\' TO TRANSFORM!"
  19. game.Debris:AddItem(msgz, 6.5)
  20. local part = Instance.new"Part"
  21. part.Name = "TransformationPart"
  22. part.FormFactor = "Custom"
  23. part.Size = Vector3.new(1,1,1)
  24. part.Material = "SmoothPlastic"
  25. part.TopSurface = "Smooth"
  26. part.BottomSurface = "Smooth"
  27. part.Anchored = true
  28. part.CanCollide = false
  29.  
  30. local Joints = {Head = Torso.Neck, Torso = HRP.RootJoint, RArm = Torso["Right Shoulder"], LArm = Torso["Left Shoulder"], RLeg = Torso["Right Hip"], LLeg = Torso["Left Hip"]}
  31. local Refresh = function()
  32. Joints.Head.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  33. Joints.Torso.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  34. Joints.RArm.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35. Joints.LArm.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  36. Joints.RLeg.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  37. Joints.LLeg.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  38. Joints.Head.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  39. Joints.Torso.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  40. Joints.RArm.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  41. Joints.LArm.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  42. Joints.RLeg.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  43. Joints.LLeg.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  44. end
  45.  
  46. local Anims = {Scrunch = function(active)
  47. if active then
  48. for i = 0, 10, 0.5 do
  49. wait(0.016666666666667)
  50. Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(math.rad(-30) / 10, 0, 0)
  51. Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(math.rad(-30) / 10, 0, 0)
  52. Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.01, -0.02, 0.01)
  53. Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.01, 0.02, 0.01)
  54. end
  55. else
  56. do
  57. for i = 0, 10, 0.5 do
  58. wait(0.016666666666667)
  59. Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(math.rad(-30) / 10, 0, 0):inverse()
  60. Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(math.rad(-30) / 10, 0, 0):inverse()
  61. Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.01, -0.02, 0.01):inverse()
  62. Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.01, 0.02, 0.01):inverse()
  63. end
  64. Refresh()
  65. end
  66. end
  67. end
  68. , Implode = function(active)
  69. if active then
  70. for i = 0, 10, 0.75 do
  71. wait(0.016666666666667)
  72. Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(-0.025, -0.055, 0.155)
  73. Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(-0.025, 0.055, -0.155)
  74. Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.015, -0.025, -0.015)
  75. Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.015, 0.025, -0.015)
  76. end
  77. else
  78. do
  79. for i = 0, 10, 0.75 do
  80. wait(0.016666666666667)
  81. Joints.RArm.C0 = Joints.RArm.C0 * CFrame.Angles(-0.025, -0.055, 0.155):inverse()
  82. Joints.LArm.C0 = Joints.LArm.C0 * CFrame.Angles(-0.025, 0.055, -0.155):inverse()
  83. Joints.RLeg.C0 = Joints.RLeg.C0 * CFrame.Angles(-0.015, -0.025, -0.015):inverse()
  84. Joints.LLeg.C0 = Joints.LLeg.C0 * CFrame.Angles(-0.015, 0.025, -0.015):inverse()
  85. end
  86. end
  87. end
  88. end
  89. }
  90.  
  91. local transform = function()
  92. if (trans == false and realdeb == false) then
  93. trans = true
  94. Hum.WalkSpeed = 0
  95. local area = part:Clone()
  96. area.CFrame = Torso.CFrame
  97. area.Parent = workspace
  98. Torso.Anchored = true
  99. for i=1,10 do
  100. area.CFrame = area.CFrame * CFrame.new(0,1,0)
  101. Torso.CFrame = area.CFrame
  102. wait()
  103. end
  104. local weld2 = Instance.new("Weld", area)
  105. weld2.Part0 = area
  106. weld2.Part1 = Torso
  107. weld2.C0 = CFrame.new()
  108. Torso.Anchored = false
  109. delay(0,function()
  110. end)
  111. delay(0,function()
  112. chat:Chat(char["Head"],"You... Mortals.. Dare to defie a KING!","Red")
  113. wait(1.4)
  114. chat:Chat(char["Head"],"AAAAAAAGH, You're a pathetic weakling who needs to face an immortal being....","Red")
  115. wait(1.4)
  116. chat:Chat(char["Head"],"This is the ancient arcs true form... Phoenix Transformation!!!","Red")
  117. end)
  118. delay(0,function()
  119. for i=1,5 do
  120. wait()
  121. delay(0,function()
  122. local dzI = 100
  123. while dzI > 10 do
  124. dzI = dzI - 1
  125. local p = Instance.new("Part", char.Head)
  126. p.Anchored = false
  127. p.CanCollide = false
  128. p.Size = Vector3.new(math.random(1,4),math.random(1,4),math.random(1,4))
  129. p.Material = "Neon"
  130. local kekz2 = math.random(1,2)
  131. if kekz2 == 2 then
  132. p.BrickColor = BrickColor.new("Really red")
  133. else
  134. p.BrickColor = BrickColor.new("Dark red")
  135. end
  136. p.CFrame = char.Torso.CFrame*CFrame.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  137. local t = Instance.new("BodyPosition", p)
  138. t.P = 20000
  139. t.Position = char.Torso.Position
  140. game:service("Debris"):AddItem(p, 0.4)
  141. wait()
  142. delay(0,function()
  143. for i=1,10 do
  144. p.Transparency = i/10
  145. p.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  146. wait()
  147. end
  148. p:Remove()
  149. end)
  150. end
  151. end)
  152. end
  153. end)
  154. delay(0,function()
  155. for q=1,120 do
  156. local xz = Instance.new("Part",plr.Character)
  157. xz.CFrame = plr.Character.Torso.CFrame*CFrame.new(math.random(-450,450),math.random(-450,450),math.random(-450,450))
  158. xz.Anchored = true
  159. xz.Transparency = 1
  160. xz.CanCollide = false
  161. wait(0.04)
  162. local pos2 = xz.Position
  163. local pos = plr.Character.Torso.Position
  164. local radius = math.random(1,1.5)
  165. local numParts = math.random(5,15)
  166. local model = plr.Character.Torso
  167. local lv = CFrame.new(pos,pos2).lookVector
  168. local dist = (pos-pos2).magnitude
  169. local dbp = dist/numParts
  170. local last = pos
  171. for i = 1,numParts do
  172. local p = Instance.new("Part",model)
  173. p.FormFactor = "Symmetric"
  174. p.Size = Vector3.new(1,1,1)
  175. p.CanCollide = false
  176. p.Anchored = true
  177. p.Material = "Neon"
  178. local kekz2 = math.random(1,2)
  179. if kekz2 == 2 then
  180. p.BrickColor = BrickColor.new("Really red")
  181. else
  182. p.BrickColor = BrickColor.new("Dark red")
  183. end
  184. p.Transparency = 0.5
  185. local x = math.random(-2,2)/2*dbp/4
  186. local y = math.random(-2,2)/2*dbp/4
  187. local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
  188. local dist2 = (p2.p-last).magnitude
  189. local mid = (p2.p+last)/2
  190. local m = Instance.new("BlockMesh",p)
  191. m.Scale = Vector3.new(radius,radius,dist2)
  192. p.CFrame = CFrame.new(mid,p2.p)
  193. last = p2.p
  194. game:GetService("Debris"):AddItem(p,0.2)
  195. end
  196. wait()
  197. xz:remove()
  198. end
  199.  
  200. kekd = false
  201. end)
  202. Anims.Scrunch(true)
  203. for i = 1, 8 do
  204. wait(0.9)
  205. for i = 1, math.random(4, 6) do
  206. local p = part:Clone()
  207. p.Parent = Torso
  208. p.Anchored = false
  209. p.CFrame = Torso.CFrame
  210. p.CanCollide = false
  211. -- game:service("Debris"):AddItem(p, 0.2)
  212. local kekz2 = math.random(1,2)
  213. if kekz2 == 2 then
  214. p.BrickColor = BrickColor.new("Really red")
  215. else
  216. p.BrickColor = BrickColor.new("Dark red")
  217. end
  218. local w = Instance.new("Weld", p)
  219. w.Part0 = p
  220. w.Part1 = Torso
  221. w.C0 = w.C0 * CFrame.Angles(math.random() * 6.28, math.random() * 6.28, math.random() * 6.28)
  222. local m = Instance.new("CylinderMesh", p)
  223. m.Scale = Vector3.new(math.random() * 3, 320, math.random() * 3)
  224. coroutine.resume(coroutine.create(function()
  225. for i = 1, 25 do
  226. wait(0.071428571428571)
  227. w.C0 = w.C0 * CFrame.Angles(0.05, 0.05, 0.05)
  228. p.Transparency = i / 25
  229. end
  230. pcall(game.Destroy, p)
  231. end
  232. ))
  233. end
  234. end
  235. coroutine.resume(coroutine.create(function()
  236. for i = 1, 6 do
  237. wait(0.9)
  238. --Player.Character.Torso.Anchored = true
  239. coroutine.resume(coroutine.create(function()
  240. local p = part:Clone()
  241. p.Parent = Torso
  242. p.Anchored = false
  243. p.CanCollide = false
  244. p.CFrame = Torso.CFrame
  245. local kekz2 = math.random(1,2)
  246. if kekz2 == 2 then
  247. p.BrickColor = BrickColor.new("Really red")
  248. else
  249. p.BrickColor = BrickColor.new("Dark red")
  250. end
  251. --game:service("Debris"):AddItem(p, 0.2)
  252. local w = Instance.new("Weld", p)
  253. w.Part0 = p
  254. w.Part1 = Torso
  255. w.C0 = w.C0 * CFrame.Angles(0, math.rad(90), 0)
  256. local m = Instance.new("SpecialMesh", p)
  257. m.MeshId = "rbxassetid://3270017"
  258. m.Scale = Vector3.new(10, 10, 5)
  259. coroutine.resume(coroutine.create(function()
  260. for i = 1, 25 do
  261. wait(0.071428571428571)
  262. w.C0 = w.C0 * CFrame.Angles(-0.05, 0.05 * math.random(), 0.05 * math.random())
  263. m.Scale = m.Scale + Vector3.new(3, 3, 1.5)
  264. p.Transparency = i / 25
  265. end
  266. pcall(game.Destroy, p)
  267. end
  268. ))
  269. end
  270. ))
  271. local p = part:Clone()
  272. do
  273. p.Parent = Torso
  274. p.Anchored = false
  275. p.CFrame = Torso.CFrame
  276. p.CanCollide = false
  277. -- game:service("Debris"):AddItem(p, 0.2)
  278. local kekz2 = math.random(1,2)
  279. if kekz2 == 2 then
  280. p.BrickColor = BrickColor.new("Really red")
  281. else
  282. p.BrickColor = BrickColor.new("Dark red")
  283. end
  284. local w = Instance.new("Weld", p)
  285. w.Part0 = p
  286. w.Part1 = Torso
  287. local m = Instance.new("SpecialMesh", p)
  288. m.MeshId = "rbxassetid://3270017"
  289. m.Scale = Vector3.new(10, 10, 5)
  290. coroutine.resume(coroutine.create(function()
  291. for i = 1, 25 do
  292. wait(0.071428571428571)
  293. w.C0 = w.C0 * CFrame.Angles(0.05 * math.random(), -0.05 * math.random(), -0.05 * math.random())
  294. m.Scale = m.Scale + Vector3.new(3, 3, 1.5)
  295. p.Transparency = i / 25
  296. end
  297. pcall(game.Destroy, p)
  298. end
  299. ))
  300. end
  301. end
  302. end
  303. ))
  304. for i=1, 6 do
  305. wait(0.9)
  306. for i = 1, math.random(4, 6) do
  307. local p = part:Clone()
  308. p.Parent = Torso
  309. p.Anchored = false
  310. p.CFrame = Torso.CFrame
  311. local kekz2 = math.random(1,2)
  312. if kekz2 == 2 then
  313. p.BrickColor = BrickColor.new("Really red")
  314. else
  315. p.BrickColor = BrickColor.new("Dark red")
  316. end
  317. local me = Instance.new("SpecialMesh",p)
  318. me.MeshId = "rbxassetid://9982590"
  319. me.Scale = Vector3.new(4,4,4)
  320. delay(0,function()
  321. for i=1,10 do
  322. p.Transparency = i/10
  323. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-20,20)/50),math.rad(math.random(-20,20)/50),0)
  324. me.Scale = me.Scale + Vector3.new(4,4,4)
  325. wait()
  326. end
  327. p:Destroy()
  328. end)
  329. wait()
  330. end
  331. end
  332. Torso.Anchored = true
  333. for i=1,10 do
  334. Torso.CFrame = Torso.CFrame * CFrame.new(0,-1,0)
  335. area.CFrame = Torso.CFrame
  336. wait()
  337. end
  338. realdeb = true
  339. Hum.WalkSpeed = 16
  340. Anims.Scrunch(false)
  341. Torso.Anchored = false
  342. area:Destroy()
  343. end
  344. end
  345.  
  346. local off = function()
  347. if (realdeb == true and trans == true) then
  348. trans = false
  349. Hum.WalkSpeed = 0
  350. delay(0,function()
  351. for q=1,120 do
  352. local xz = Instance.new("Part",plr.Character)
  353. xz.CFrame = plr.Character.Torso.CFrame*CFrame.new(math.random(-450,450),math.random(-450,450),math.random(-450,450))
  354. xz.Anchored = true
  355. xz.Transparency = 1
  356. xz.CanCollide = false
  357. wait(0.04)
  358. local pos2 = xz.Position
  359. local pos = plr.Character.Torso.Position
  360. local radius = math.random(1,1.5)
  361. local numParts = math.random(5,15)
  362. local model = plr.Character.Torso
  363. local lv = CFrame.new(pos,pos2).lookVector
  364. local dist = (pos-pos2).magnitude
  365. local dbp = dist/numParts
  366. local last = pos
  367. for i = 1,numParts do
  368. local p = Instance.new("Part",model)
  369. p.FormFactor = "Symmetric"
  370. p.Size = Vector3.new(1,1,1)
  371. p.CanCollide = false
  372. p.Anchored = true
  373. p.Material = "Neon"
  374. local kekz2 = math.random(1,2)
  375. if kekz2 == 2 then
  376. p.BrickColor = BrickColor.new("Really red")
  377. else
  378. p.BrickColor = BrickColor.new("Dark red")
  379. end
  380. p.Transparency = 0.5
  381. local x = math.random(-2,2)/2*dbp/4
  382. local y = math.random(-2,2)/2*dbp/4
  383. local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
  384. local dist2 = (p2.p-last).magnitude
  385. local mid = (p2.p+last)/2
  386. local m = Instance.new("BlockMesh",p)
  387. m.Scale = Vector3.new(radius,radius,dist2)
  388. p.CFrame = CFrame.new(mid,p2.p)
  389. last = p2.p
  390. game:GetService("Debris"):AddItem(p,0.2)
  391. end
  392. wait()
  393. xz:remove()
  394. end
  395. end)
  396. Anims.Scrunch(true)
  397. for i = 1, 8 do
  398. wait(0.9)
  399. for i = 1, math.random(4, 6) do
  400. local p = part:Clone()
  401. p.Parent = Torso
  402. p.Anchored = false
  403. p.CFrame = Torso.CFrame
  404. p.CanCollide = false
  405. -- game:service("Debris"):AddItem(p, 0.2)
  406. local kekz2 = math.random(1,2)
  407. if kekz2 == 2 then
  408. p.BrickColor = BrickColor.new("Really red")
  409. else
  410. p.BrickColor = BrickColor.new("Dark red")
  411. end
  412. local w = Instance.new("Weld", p)
  413. w.Part0 = p
  414. w.Part1 = Torso
  415. w.C0 = w.C0 * CFrame.Angles(math.random() * 6.28, math.random() * 6.28, math.random() * 6.28)
  416. local m = Instance.new("CylinderMesh", p)
  417. m.Scale = Vector3.new(math.random() * 3, 320, math.random() * 3)
  418. coroutine.resume(coroutine.create(function()
  419. for i = 1, 25 do
  420. wait(0.071428571428571)
  421. w.C0 = w.C0 * CFrame.Angles(0.05, 0.05, 0.05)
  422. p.Transparency = i / 25
  423. end
  424. pcall(game.Destroy, p)
  425. end
  426. ))
  427. end
  428. end
  429. Anims.Scrunch(false)
  430. Hum.WalkSpeed = 16
  431. realdeb = false
  432. end
  433. end
  434.  
  435.  
  436. m.KeyDown:connect(function(key)
  437. local k = key:lower()
  438. if key == "m" then
  439. if (trans == false and realdeb == false) then
  440. transform()
  441. elseif (trans == true and realdeb == true) then
  442. off()
  443. end
  444. end
  445. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement