coolgoldboy166

phoenix r15

Oct 25th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.83 KB | None | 0 0
  1. --Phoenix Script(Humanoid)
  2. --Updage:Now work with R15,but not perfect.
  3. local c=workspace.CurrentCamera:GetChildren()
  4. for i=1,#c do
  5. c[i]:Destroy()
  6. end
  7. local debri=game:GetService("Debris")
  8. local Players=game:FindFirstChildOfClass("Players")
  9. local Lighting=game:FindFirstChildOfClass("Lighting")
  10. local PL=Players.LocalPlayer
  11. local Character=PL.Character local Humanoid=Character:FindFirstChildOfClass("Humanoid")script.Name="Phoenix The Undying"script.Parent=PL local HRP=Character.HumanoidRootPart
  12. local Active=false ca=workspace.CurrentCamera
  13. local Ghost=true local Mouse=PL:GetMouse()
  14. local name=""for i=1,20 do name=name..tostring(math.random(9))end
  15. pmusic=true
  16. local gc=PL:GetChildren()
  17. for i=1,#gc do
  18. if gc[i]:IsA("Sound")then gc[i]:Remove()end
  19. end
  20. local R15Mode if Humanoid.RigType==Enum.HumanoidRigType.R15 then R15Mode=true else R15Mode=false end
  21. local music=Instance.new("Sound",PL)music.SoundId="rbxassetid://722553316"music.Volume=1/0 music.Name=name if Character:FindFirstChild("Health")~=nil then Character.Health:Destroy()end
  22. local intro=false
  23. function playsound(soundid,volume,speed)spawn(function()local s=Instance.new("Sound",workspace)s.SoundId=soundid s.PlayOnRemove=true s.Volume=volume if speed~=nil then s.PlaybackSpeed=speed end s:Play()wait(5)s.Volume=0 s:Remove()end)end
  24. function createsound(soundid,volume)local s=Instance.new("Sound",workspace)s.SoundId=soundid s.PlayOnRemove=true s.Volume=volume return s end
  25. function selif(text,stime)
  26. local part=Instance.new("Part")part.CanCollide=false part.Anchored=true part.Transparency=1 part.Size=Vector3.new(0,0,0)
  27. local bb=Instance.new("BillboardGui",part)bb.AlwaysOnTop=true bb.Size=UDim2.new(1,0,1,0)part.Name=name
  28. local txt=Instance.new("TextLabel",bb)txt.Size=UDim2.new(1,0,1,0)txt.BackgroundTransparency=1 txt.BorderSizePixel=0 txt.Text=text txt.TextStrokeTransparency=1 txt.Font="Fantasy"
  29. part.Position=Character.HumanoidRootPart.Position+Vector3.new(0,4,0)txt.TextColor3=Color3.new(1,.5,0)part.Parent=workspace txt.TextTransparency=1
  30. spawn(function()
  31. local ext=90
  32. while ext>0.3 do
  33. ext=ext/1.6
  34. txt.TextStrokeTransparency=ext/20 txt.TextTransparency=ext/20
  35. txt.TextSize=ext+30
  36. wait()
  37. end
  38. wait(stime)
  39. for i=0,1,.1 do
  40. txt.TextStrokeTransparency=i txt.TextTransparency=i wait()
  41. end part:Destroy()
  42. end)
  43. end
  44. function createeffect()
  45. local efcp=Instance.new("Part")efcp.Size=Vector3.new(7,7,7)efcp.Transparency=1 efcp.Shape="Ball"efcp.CanCollide=false local pa1=Instance.new("ParticleEmitter",efcp)pa1.Texture="rbxassetid://410256160"pa1.LightEmission=1 pa1.Rate=1024 pa1.Lifetime=NumberRange.new(1)pa1.Speed=NumberRange.new(1,4)pa1.Acceleration=Vector3.new(0,25,0)pa1.Transparency=NumberSequence.new(0,1)pa1.Size=NumberSequence.new(4,4)pa1.Drag=1 pa1.VelocityInheritance=.25
  46. local r=Instance.new("BodyVelocity",efcp)r.MaxForce=Vector3.new(1/0,1/0,1/0)r.Velocity=Vector3.new(0,0,0)efcp.Touched:connect(function(part)if tostring(part.Parent)~=tostring(PL) and tostring(part.Parent)~="Phoenix"and part.Name~=name and part.Name~="Baseplate"and part.Name~="Base" then part.Material="Neon"part.Color=Color3.new(1,0,0)part:BreakJoints()part.Parent=workspace part.Transparency=0 part.Anchored=false debri:AddItem(part,1)end end)
  47. efcp.Name=name.."efc"return efcp
  48. end
  49. repeat wait() until game:FindFirstChildOfClass("Players").LocalPlayer and Character and Character:findFirstChild("HumanoidRootPart") and game:FindFirstChildOfClass("Players").LocalPlayer.Character:findFirstChild("Humanoid")
  50. local mouse=game:FindFirstChildOfClass("Players").LocalPlayer:GetMouse()repeat wait() until mouse local plr=game:FindFirstChildOfClass("Players").LocalPlayer local torso=Character.HumanoidRootPart local flying=false local deb=true local ctrl={f=0, b=0, l=0, r=0}
  51. local lastctrl={f=0, b=0, l=0, r=0}local maxspeed=100 local speed=0
  52. function Fly()local bg=Instance.new("BodyGyro", torso)bg.P=9e4 bg.maxTorque=Vector3.new(9e9, 9e9, 9e9)bg.cframe=torso.CFrame local bv=Instance.new("BodyVelocity", torso)bv.velocity=Vector3.new(0,0.1,0)
  53. bv.maxForce=Vector3.new(9e9, 9e9, 9e9)
  54. repeat wait()
  55. Character:FindFirstChildOfClass("Humanoid").PlatformStand=true
  56. if ctrl.l+ctrl.r~=0 or ctrl.f+ctrl.b~=0 then
  57. speed=maxspeed
  58. if speed > maxspeed then speed=maxspeed end elseif not (ctrl.l+ctrl.r~=0 or ctrl.f+ctrl.b~=0) and speed~=0 then
  59. speed=0
  60. if speed < 0 then speed=0 end end if (ctrl.l+ctrl.r)~=0 or (ctrl.f+ctrl.b)~=0 then
  61. bv.velocity=((workspace.CurrentCamera.CoordinateFrame.lookVector*(ctrl.f+ctrl.b))+((workspace.CurrentCamera.CoordinateFrame*CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - workspace.CurrentCamera.CoordinateFrame.p))*speed
  62. lastctrl={f=ctrl.f, b=ctrl.b, l=ctrl.l, r=ctrl.r} elseif (ctrl.l+ctrl.r)==0 and (ctrl.f+ctrl.b)==0 and speed~=0 then bv.velocity=((workspace.CurrentCamera.CoordinateFrame.lookVector*(lastctrl.f+lastctrl.b))+((workspace.CurrentCamera.CoordinateFrame*CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - workspace.CurrentCamera.CoordinateFrame.p))*speed
  63. else bv.velocity=Vector3.new(0,0.1,0) end bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  64. until not flying ctrl={f=0, b=0, l=0, r=0}lastctrl={f=0, b=0, l=0, r=0}speed=0 bg:Destroy()bv:Destroy()plr.Character:FindFirstChildOfClass("Humanoid").PlatformStand=false end
  65. mouse.KeyDown:connect(function(key) if key:lower()=="f" then if flying then Character.HumanoidRootPart.CFrame=CFrame.new(Character.HumanoidRootPart.Position.x,Character.HumanoidRootPart.Position.y,Character.HumanoidRootPart.Position.z)wait(.1)flying=false
  66. else flying=true Fly()end
  67. elseif key:lower()=="w" then ctrl.f=1 elseif key:lower()=="s" then ctrl.b=-1 elseif key:lower()=="a" then ctrl.l=-1 elseif key:lower()=="d" then ctrl.r=1 end end)
  68. mouse.KeyUp:connect(function(key) if key:lower()=="w" then ctrl.f=0 elseif key:lower()=="s" then ctrl.b=0 elseif key:lower()=="a" then ctrl.l=0 elseif key:lower()=="d" then ctrl.r=0 end end)Fly()
  69. if intro then
  70. ca.CameraType="Fixed"Character.Torso.Anchored=true Humanoid.PlatformStand=true Humanoid.Health=1 wait(2)
  71. end
  72. local effect=createeffect()PL:ClearCharacterAppearance()
  73. local light=Instance.new("PointLight",Character.HumanoidRootPart)light.Color=Color3.new(1,.5,0)light.Brightness=1/0 light.Range=15
  74. spawn(function()
  75. if pmusic then music:Play()end
  76. PL.Chatted:connect(function(msg)selif(msg,2)if msg=="!mm"then if pmusic then pmusic=false music.PlaybackSpeed=0 music.Volume=0 else pmusic=true music.PlaybackSpeed=1 music.Volume=math.huge end end end)
  77. ca.CameraType="Custom"
  78. Character.Archivable=true
  79. while wait()do
  80. if Character:FindFirstChildOfClass("ForceField")~=nil then Character:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",Character)end
  81. if workspace:FindFirstChild(name.."efc")==nil or effect==nil then effect=createeffect()effect.CFrame=Character.HumanoidRootPart.CFrame effect.Parent=workspace end
  82. effect.CFrame=Character.HumanoidRootPart.CFrame PL.Character=Character ca.CameraSubject=Humanoid
  83. if Ghost then PL.Character.Parent=ca if not R15Mode then local GhostClone=PL.Character:Clone()local gc=GhostClone:GetChildren()for i=1,#gc do if gc[i]:IsA("Humanoid")then gc[i]:Remove()end end for i=1,#gc do if gc[i]:IsA("Part")then gc[i].CanCollide=false gc[i].Anchored=true end end GhostClone.Name="Phoenix"GhostClone.Parent=workspace debri:AddItem(GhostClone,.05)end else PL.Character.Parent=workspace end
  84. Humanoid.MaxHealth=1/0 Humanoid.Health=1/0 Humanoid.Name=tostring(math.random(9))..tostring(math.random(9))..tostring(math.random(9))..tostring(math.random(9))
  85. local gc=Character:GetChildren()
  86. for i=1,#gc do
  87. if gc[i]:IsA("Part")then gc[i].Color=Color3.new(1,.3,0)gc[i].Material="Neon"gc[i].Locked=true if Active then gc[i].Anchored=true else gc[i].Anchored=false end end
  88. end
  89. if flying or Active then Humanoid.PlatformStand=true else Humanoid.PlatformStand=false end Humanoid.WalkSpeed=10
  90. end
  91. end)
  92. game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
  93. if not Gpe then
  94. if Key.KeyCode==Enum.KeyCode.Z and not Active then
  95. Active=true selif("Inferno!",0)playsound("rbxassetid://365002938",math.huge)
  96. local part=Instance.new("Part")part.Name=name part.Shape="Ball"part.Material="Neon"part.CanCollide=false part.Color=Color3.new(1,.5,0)part.Size=Vector3.new(15,15,15)
  97. part.CFrame=Character.HumanoidRootPart.CFrame local r=Instance.new("BodyVelocity",part)r.MaxForce=Vector3.new(1/0,1/0,1/0)r.Velocity=Vector3.new(0,0,0)local add=80 part.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(1,0,0)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false debri:AddItem(pt,1)end end)
  98. spawn(function()while add>.05 do add=add/1.8 part.Parent=nil part.Size=Vector3.new(add,add,add)+part.Size part.Parent=workspace wait()end for i=0,1,.1 do part.Transparency=i wait()end part:Destroy()end)
  99. wait(.2)Active=false
  100. elseif Key.KeyCode==Enum.KeyCode.X and not Active then local pos=Character.HumanoidRootPart.CFrame
  101. selif("Infernal Cannon!",0)
  102. Active=true
  103. local s=createsound("rbxassetid://365002938",5)
  104. spawn(function()for i=1,18 do
  105. s.TimePosition=.2 s:Play()
  106. local part=Instance.new("Part")part.Name=name part.Shape="Ball"part.Material="Neon"part.CanCollide=false part.Color=Color3.new(1,.5,0)part.Size=Vector3.new(9,9,9)
  107. part.CFrame=pos*CFrame.new(0,0,-i*13)local r=Instance.new("BodyVelocity",part)r.MaxForce=Vector3.new(1/0,1/0,1/0)r.Velocity=Vector3.new(0,0,0)local add=15 part.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(1,0,0)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false debri:AddItem(pt,1)end end)
  108. spawn(function()while add>.05 do add=add/2 part.Parent=nil part.Size=Vector3.new(add,add,add)+part.Size part.Parent=workspace wait()end for i=0,1,.1 do part.Transparency=i wait()end part:Destroy()end)wait(.08)
  109. end local t={}t[1]="You should be burned with the Hell."t[2]="You cannot live within that burning flame..."t[3]="Be end to be burned."t[4]="You wanna get burned?"selif(t[math.random(#t)])wait(.5)s:Destroy()
  110. end)
  111. wait(.5)Active=false
  112. elseif Key.KeyCode==Enum.KeyCode.C and not Active then
  113. if Mouse.Hit~=nil then local pos=Mouse.Hit playsound("rbxassetid://222406108",9)
  114. local part=Instance.new("Part")part.Name=name part.Shape="Ball"part.Material="Neon"part.CanCollide=false part.Color=Color3.new(1,.5,0)part.Size=Vector3.new(0,0,0)
  115. part.CFrame=Character.HumanoidRootPart.CFrame local r=Instance.new("BodyVelocity",part)r.MaxForce=Vector3.new(1/0,1/0,1/0)r.Velocity=Vector3.new(0,0,0)local add=8 part.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(1,0,0)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false debri:AddItem(pt,1)end end)
  116. spawn(function()while add>.05 do add=add/1.5 part.Parent=nil part.Size=Vector3.new(add,add,add)+part.Size part.Parent=workspace wait()end for i=0,1,.1 do part.Transparency=i wait()end part:Destroy()end)
  117. local part=Instance.new("Part")part.Name=name part.Shape="Ball"part.Material="Neon"part.CanCollide=false part.Color=Color3.new(1,.5,0)part.Size=Vector3.new(0,0,0)
  118. part.CFrame=Mouse.Hit+Vector3.new(0,3,0)local r=Instance.new("BodyVelocity",part)r.MaxForce=Vector3.new(1/0,1/0,1/0)r.Velocity=Vector3.new(0,0,0)local add=8 part.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(1,0,0)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false debri:AddItem(pt,1)end end)
  119. spawn(function()while add>.05 do add=add/1.5 part.Parent=nil part.Size=Vector3.new(add,add,add)+part.Size part.Parent=workspace wait()end for i=0,1,.1 do part.Transparency=i wait()end part:Destroy()end)
  120. end Character.HumanoidRootPart.CFrame=Mouse.Hit+Vector3.new(0,3,0)
  121. elseif Key.KeyCode==Enum.KeyCode.V and not Active then
  122. if Mouse.Hit~=nil then local pos=Mouse.Hit local s=createsound("rbxassetid://365002938",5)s.PlaybackSpeed=2 Active=true
  123. spawn(function()
  124. for i=1,30 do
  125. local part=Instance.new("Part")part.Name=name part.Shape="Ball"part.Material="Neon"part.CanCollide=false part.Color=Color3.new(0,0,1)part.Size=Vector3.new(15,15,15)
  126. part.CFrame=pos+Vector3.new(math.random(40)-math.random(40),math.random(40)-math.random(40),math.random(40)-math.random(40)) local r=Instance.new("BodyVelocity",part)r.MaxForce=Vector3.new(1/0,1/0,1/0)r.Velocity=Vector3.new(0,0,0)local add=20 part.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(0,0,1)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false pt.CanCollide=true debri:AddItem(pt,10)end end)
  127. spawn(function()while add>.05 do add=add/1.8 part.Parent=nil part.Size=Vector3.new(add,add,add)+part.Size part.Parent=workspace wait()end for i=0,1,.1 do part.Transparency=i wait()end part:Destroy()end)
  128. wait(.05)s.TimePosition=.2 s:Play()
  129. end wait(.7)s.Volume=0 s:Destroy()end)wait(3)Active=false
  130. end
  131. elseif Key.KeyCode==Enum.KeyCode.G and not Active then --Nuke. Take care if you want to use.
  132. Active=true
  133. HRP.CFrame=CFrame.new(HRP.Position,Mouse.Hit.p)playsound("rbxassetid://201858045",math.huge,2)
  134. local part=Instance.new("Part")part.Name=name part.Size=Vector3.new(1,1,1)local mesh=Instance.new("SpecialMesh",part)mesh.MeshId="rbxassetid://991320318"part.Color=Color3.new(1,0,0)part.CFrame=HRP.CFrame*CFrame.new(0,0,-3)
  135. local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=(part.Position-HRP.Position)*30 debri:AddItem(part,60)
  136. part.Touched:connect(function(pt1)if pt1.Name~=name.."efc"and tostring(pt1.Parent)~=tostring(PL)and tostring(pt1.Parent)~="Phoenix"and pt1.Name~=name then
  137. local pos=part.CFrame part:Destroy()playsound("rbxassetid://216782105",math.huge)
  138. local p2=Instance.new("Part")p2.Name=name p2.Color=Color3.new(1,0,0)p2.Material="Neon"p2.Shape="Ball"p2.Size=Vector3.new(0,0,0)p2.CFrame=pos p2.CanCollide=false local j=Instance.new("BodyVelocity",p2)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)
  139. p2.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(1,0,0)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false pt.CanCollide=true debri:AddItem(pt,10)end end)
  140. local p3=Instance.new("Part")p3.Color=Color3.new(1,.5,0)p3.CanCollide=false local m2=Instance.new("SpecialMesh",p3)m2.MeshId="rbxassetid://991320318"p3.Size=Vector3.new(15,15,15)p3.Name=name p3.Parent=workspace p3.Anchored=true spawn(function()for i=0,1,.02 do p3.Transparency=i m2.Scale=Vector3.new(i*200,i*200,i*200)p3.CFrame=pos wait()end p3:Destroy()end)
  141. local add=35 while add>.1 do add=add/1.1 p2.Parent=nil p2.CFrame=pos p2.Size=Vector3.new(add,add,add)+p2.Size p2.Parent=workspace wait()end for i=0,1,.02 do p2.Size=p2.Size-Vector3.new(i*5,i*5,i*5)p2.Transparency=i p2.CFrame=pos p2.Color=Color3.new(1,i/2,0)wait()end p2:Destroy()
  142. end end)
  143. part.Parent=workspace
  144. Active=false
  145. elseif Key.KeyCode==Enum.KeyCode.B then
  146. local part=Instance.new("Part")part.Name=name part.CanCollide=false part.Shape="Ball"part.Material="Neon"part.Size=Vector3.new(8,8,8)part.Position=HRP.Position part.Color=Color3.new(1,.25,0)
  147. local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=(HRP.CFrame*CFrame.new(0,0,-20)).p-HRP.Position debri:AddItem(part,10)
  148. part.Touched:connect(function(pt)if tostring(pt.Parent)~=tostring(PL)and pt.Name~=name.."efc" and tostring(pt.Parent)~="Phoenix"and pt.Name~=name and pt.Name~="Baseplate"and pt.Name~="Base" then pt.Material="Neon"pt.Color=Color3.new(1,0,0)pt:BreakJoints()pt.Parent=workspace pt.Transparency=0 pt.Anchored=false pt.CanCollide=true debri:AddItem(pt,1)end end)
  149. part.Parent=workspace
  150. elseif Key.KeyCode==Enum.KeyCode.P then
  151. if Ghost then Ghost=false else Ghost=true end
  152. elseif Key.KeyCode==Enum.KeyCode.M and not Active then
  153. Active=true
  154. local t={}t[1]="Get burned."t[2]="Which you want to be burned, or to be melted?"t[3]="This Flame burns everything. Even air."t[4]="Destruction. It's not bad, isn't?"
  155. selif(t[math.random(#t)])wait(1)Active=false
  156. end
  157. end
  158. end)
Add Comment
Please, Sign In to add comment