Advertisement
EmeraldIT

Starlight Custom

Apr 21st, 2018
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.79 KB | None | 0 0
  1. print([[
  2. ___________________________________
  3.  
  4. Azure Phoenix SLayer script
  5. Build 0003
  6. Azure Phoenix Slayer Katuro
  7.  
  8. ___________________________________
  9. ]])
  10.  
  11. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  12.  
  13. local p = game:GetService("Players").LocalPlayer
  14. local plr = game:GetService("Players").LocalPlayer
  15. local player = game:GetService("Players").LocalPlayer
  16. local char = p.Character
  17. local mouse = p:GetMouse()
  18. local larm = char:WaitForChild("Left Arm")
  19. local rarm = char:WaitForChild("Right Arm")
  20. local lleg = char:WaitForChild("Left Leg")
  21. local rleg = char:WaitForChild("Right Leg")
  22. local hed = char:WaitForChild("Head")
  23. local torso = char:WaitForChild("Torso")
  24. local root = char:WaitForChild("HumanoidRootPart")
  25. local hum = char:FindFirstChildOfClass("Humanoid")
  26. local debris = game:GetService("Debris")
  27. local run = game:GetService("RunService")
  28. local rs = run.RenderStepped
  29. local cam = workspace.CurrentCamera
  30. local movement = 4
  31. local change = 0.4
  32. local DebrisModel = Instance.new("Model",char)
  33. local stealth = false
  34. local debounce = false
  35. if char:FindFirstChild("Health") ~= nil then char.Health:Destroy()
  36. end
  37. hed.CanCollide = false
  38. larm.CanCollide = false
  39. rarm.CanCollide = false
  40. torso.CanCollide = false
  41. themeid = 556122490
  42. themepitch = 1
  43. main = {r = 98;g = 37;b = 209;v = 1}
  44. if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
  45. if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
  46. if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
  47. if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
  48. if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
  49. if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
  50. pr = p:FindFirstChild("rcolor")
  51. pg = p:FindFirstChild("gcolor")
  52. pb = p:FindFirstChild("bcolor")
  53. pv = p:FindFirstChild("vcolor")
  54. idth = p:FindFirstChild("idtheme")
  55. pith = p:FindFirstChild("pitchtheme")
  56. main_color = Color3.fromRGB(main.r,main.g,main.b)
  57. explosionid = {262562442,144699494,539294959,1388740053}
  58. --919941001
  59. Prefix = "/"
  60. p.Chatted:connect(function(msg)
  61.  
  62. if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
  63. local v = tonumber(msg:sub(#Prefix+#'color r '+1))
  64. main.r = v
  65. elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
  66. local v = tonumber(msg:sub(#Prefix+#'color g '+1))
  67. main.g = v
  68. elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
  69. local v = tonumber(msg:sub(#Prefix+#'color b '+1))
  70. main.b = v
  71. elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
  72. local v = tonumber(msg:sub(#Prefix+#'color v '+1))
  73. if v > 255 then main.v = 255 elseif v < -255 then main.v = -255 else main.v = v end
  74.  
  75. elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
  76. local v = tonumber(msg:sub(#Prefix+#'theme '+1))
  77. themeid = v
  78. music(themeid,themepitch)
  79.  
  80. elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
  81. local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
  82. themepitch = v
  83. music(themeid,themepitch)
  84.  
  85. elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
  86. local v = msg:sub(#Prefix+#'prefix '+1)
  87. Prefix = v
  88.  
  89. elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
  90. main.r = 0
  91. main.g = 100
  92. main.b = 255
  93. main.v = 255
  94. themeid = 556122490
  95. themepitch = 1
  96. music(themeid,themepitch)
  97.  
  98. end
  99.  
  100. end)
  101. ----------------------------------------------------------------------------
  102. no_anim = false
  103. attack = false
  104. attacking = false
  105. aiming_anim = false
  106. animid = math.random(0,1)
  107. timer = 0
  108. bg = Instance.new("BodyGyro",root)
  109. bg.P = 100000
  110. bg.D = 100
  111. ----------------------------------------------------------------------------
  112.  
  113. function rswait(value)
  114. if value ~= nil and value ~= 0 then
  115. for i=1,value do
  116. rs:wait()
  117. end
  118. else
  119. rs:wait()
  120. end
  121. end
  122.  
  123. ----------------------------------------------------------------------------
  124. max = 0
  125. function music(id,pitch)
  126. max = 0
  127. if id == "Stop" then
  128. if not torso:FindFirstChild("MusicRuin") then
  129. soundz = Instance.new("Sound",torso)
  130. end
  131. soundz:Stop()
  132. else
  133. if not torso:FindFirstChild("MusicRuin") then
  134. soundz = Instance.new("Sound",torso)
  135. end
  136. soundz.MaxDistance = 150*5
  137. soundz.EmitterSize = 150/5
  138. soundz.Volume = 10
  139. soundz.Name = "MusicRuin"
  140. soundz.Looped = true
  141. soundz.PlaybackSpeed = pitch
  142. soundz.SoundId = "rbxassetid://"..id
  143. soundz:Stop()
  144. soundz:Play()
  145. end
  146. end
  147.  
  148. ----------------------------------------------------------------------------
  149.  
  150. function lerp(a, b, t)
  151. return a + (b - a)*t
  152. end
  153.  
  154. ----------------------------------------------------------------------------
  155.  
  156. function Lerp(c1,c2,al)
  157. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  158. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  159. for i,v in pairs(com1) do
  160. com1[i] = v+(com2[i]-v)*al
  161. end
  162. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  163. end
  164.  
  165. ----------------------------------------------------------------------------
  166.  
  167. function slerp(a, b, t)
  168. dot = a:Dot(b)
  169. if dot > 0.99999 or dot < -0.99999 then
  170. return t <= 0.5 and a or b
  171. else
  172. r = math.acos(dot)
  173. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  174. end
  175. end
  176.  
  177. ----------------------------------------------------------------------------
  178.  
  179. function clerp(c1,c2,al)
  180.  
  181. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  182.  
  183. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  184.  
  185. for i,v in pairs(com1) do
  186.  
  187. com1[i] = lerp(v,com2[i],al)
  188.  
  189. end
  190.  
  191. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  192.  
  193. end
  194.  
  195. ----------------------------------------------------------------------------
  196.  
  197. function findAllNearestTorso(pos,dist)
  198. local list = game.Workspace:children()
  199. local torso = {}
  200. local temp = nil
  201. local human = nil
  202. local temp2 = nil
  203. for x = 1, #list do
  204. temp2 = list[x]
  205. if (temp2.className == "Model") and (temp2 ~= char) then
  206. local nayem = "Torso"
  207. if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
  208. temp = temp2:findFirstChild(nayem)
  209. human = temp2:findFirstChildOfClass("Humanoid")
  210. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  211. if (temp.Position - pos).magnitude < dist then
  212. table.insert(torso,temp)
  213. dist = (temp.Position - pos).magnitude
  214. end
  215. end
  216. end
  217. end
  218. return torso
  219. end
  220.  
  221. ----------------------------------------------------------------------------
  222.  
  223. local isAPlayer
  224. function checkIfNotPlayer(model)
  225. coroutine.resume(coroutine.create(function()
  226. if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then
  227. isAPlayer = true
  228. else
  229. isAPlayer = false
  230. end
  231. end))
  232. return isAPlayer
  233. end
  234.  
  235. ----------------------------------------------------------------------------
  236.  
  237. function computeDirection(vec)
  238. local lenSquared = vec.magnitude * vec.magnitude
  239. local invSqrt = 1 / math.sqrt(lenSquared)
  240. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  241. end
  242.  
  243. ----------------------------------------------------------------------------
  244.  
  245. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  246.  
  247. local wld = Instance.new("Weld", wp1)
  248.  
  249. wld.Part0 = wp0
  250.  
  251. wld.Part1 = wp1
  252.  
  253. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  254.  
  255. return wld
  256.  
  257. end
  258.  
  259. ----------------------------------------------------------------------------
  260.  
  261. function weld(model)
  262. local parts,last = {}
  263. local function scan(parent)
  264. for _,v in pairs(parent:GetChildren()) do
  265. if (v:IsA("BasePart")) then
  266. if (last) then
  267. local w = Instance.new("Weld")
  268. w.Name = ("%s_Weld"):format(v.Name)
  269. w.Part0,w.Part1 = last,v
  270. w.C0 = last.CFrame:inverse()
  271. w.C1 = v.CFrame:inverse()
  272. w.Parent = last
  273. end
  274. last = v
  275. table.insert(parts,v)
  276. end
  277. scan(v)
  278. end
  279. end
  280. scan(model)
  281. for _,v in pairs(parts) do
  282. v.Anchored = false
  283. v.Locked = true
  284. end
  285. end
  286.  
  287. ----------------------------------------------------------------------------
  288. ParticleEmitter2 = Instance.new("ParticleEmitter")
  289. ParticleEmitter16 = Instance.new("ParticleEmitter")
  290. ParticleEmitter17 = Instance.new("ParticleEmitter")
  291. ParticleEmitter20 = Instance.new("ParticleEmitter")
  292. color = BrickColor.new("Royal purple").Color
  293. color2 = BrickColor.new("Toothpaste").Color
  294.  
  295.  
  296. ParticleEmitter2.Name = "Wing1"
  297. ParticleEmitter2.Parent = script
  298. ParticleEmitter2.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  299. ParticleEmitter2.Rotation = NumberRange.new(0, 360)
  300. ParticleEmitter2.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  301. ParticleEmitter2.Enabled = false
  302. ParticleEmitter2.LightEmission = 0.78
  303. ParticleEmitter2.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  304. ParticleEmitter2.Acceleration = Vector3.new(5, 4, -4)
  305. ParticleEmitter2.Lifetime = NumberRange.new(2, 2)
  306. ParticleEmitter2.Rate = 300
  307. ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56)
  308. ParticleEmitter2.Speed = NumberRange.new(4, 4)
  309. ParticleEmitter2.VelocitySpread = 35
  310. ParticleEmitter2.Color = ColorSequence.new(color)
  311.  
  312. ParticleEmitter16.Name = "Wing2"
  313. ParticleEmitter16.Parent = script
  314. ParticleEmitter16.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  315. ParticleEmitter16.Rotation = NumberRange.new(0, 360)
  316. ParticleEmitter16.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  317. ParticleEmitter16.Enabled = false
  318. ParticleEmitter16.LightEmission = 0.78
  319. ParticleEmitter16.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  320. ParticleEmitter16.Acceleration = Vector3.new(-5, 4, -4)
  321. ParticleEmitter16.Lifetime = NumberRange.new(2, 2)
  322. ParticleEmitter16.Rate = 300
  323. ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56)
  324. ParticleEmitter16.Speed = NumberRange.new(4, 4)
  325. ParticleEmitter16.VelocitySpread = 35
  326. ParticleEmitter16.Color = ColorSequence.new(color)
  327. ParticleEmitter17.Name = "Wing1B"
  328. ParticleEmitter17.Parent = script
  329. ParticleEmitter17.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  330. ParticleEmitter17.Rotation = NumberRange.new(0, 360)
  331. ParticleEmitter17.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  332. ParticleEmitter17.Enabled = false
  333. ParticleEmitter17.LightEmission = 1
  334. ParticleEmitter17.ZOffset = 0.20000000298023
  335. ParticleEmitter17.Acceleration = Vector3.new(5, 4, -4)
  336. ParticleEmitter17.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  337. ParticleEmitter17.Rate = 150
  338. ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56)
  339. ParticleEmitter17.Speed = NumberRange.new(4, 4)
  340. ParticleEmitter17.VelocitySpread = 35
  341. ParticleEmitter17.Color = ColorSequence.new(Color3.new(.1, 0, 1), Color3.new(0, 255, 255))
  342.  
  343. ParticleEmitter20.Name = "Wing2B"
  344. ParticleEmitter20.Parent = script
  345. ParticleEmitter20.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  346. ParticleEmitter20.Rotation = NumberRange.new(0, 360)
  347. ParticleEmitter20.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  348. ParticleEmitter20.Enabled = false
  349. ParticleEmitter20.LightEmission = 1
  350. ParticleEmitter20.ZOffset = 0.20000000298023
  351. ParticleEmitter20.Acceleration = Vector3.new(-5, 4, -4)
  352. ParticleEmitter20.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  353. ParticleEmitter20.Rate = 150
  354. ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56)
  355. ParticleEmitter20.Speed = NumberRange.new(4, 4)
  356. ParticleEmitter20.VelocitySpread = 35
  357. ParticleEmitter20.Color = ColorSequence.new(Color3.new(.1, 0, 1), Color3.new(0, 255, 255))
  358.  
  359. local BACKATTACHMENT1 = Instance.new("Attachment", torso)
  360. BACKATTACHMENT1.Position = Vector3.new(0.5, 0.5, 0.75)
  361. local BACKATTACHMENT2 = Instance.new("Attachment", torso)
  362. BACKATTACHMENT2.Position = Vector3.new(-0.5, 0.5, 0.75)
  363. local WINGS1 = script.Wing1
  364. WINGS1.EmissionDirection="Right"
  365. WINGS1.Size=NumberSequence.new(2)
  366. local WINGS1B = script.Wing1B
  367. WINGS1B.EmissionDirection="Right"
  368. WINGS1B.Size=NumberSequence.new(2)
  369. local WINGS2 = script.Wing2
  370. WINGS2.EmissionDirection="Left"
  371. WINGS2.Size=NumberSequence.new(2)
  372. local WINGS2B = script.Wing2B
  373. WINGS2B.EmissionDirection="Left"
  374. WINGS2B.Size=NumberSequence.new(2)
  375. WINGS1.Parent = BACKATTACHMENT1
  376. WINGS1.LockedToPart=true
  377. WINGS1B.Parent = BACKATTACHMENT1
  378. WINGS1B.LockedToPart=true
  379. WINGS2.Parent = BACKATTACHMENT2
  380. WINGS2.LockedToPart=true
  381. WINGS2B.Parent = BACKATTACHMENT2
  382. WINGS2B.LockedToPart=true
  383.  
  384. function wings()
  385. WINGS1.Enabled = true
  386. WINGS2.Enabled = true
  387. WINGS1B.Enabled = true
  388. WINGS2B.Enabled = true
  389. end
  390.  
  391. function nowings()
  392. WINGS1.Enabled = false
  393. WINGS2.Enabled = false
  394. WINGS1B.Enabled = false
  395. WINGS2B.Enabled = false
  396. end
  397. ----------------------------------------------------------------------------
  398.  
  399. function sound(id,position,vol,pitch,dist,start,finish)
  400. coroutine.resume(coroutine.create(function()
  401.  
  402. local part = Instance.new("Part",DebrisModel)
  403. part.Anchored = true
  404. part.Position = position
  405. part.Size = Vector3.new(0,0,0)
  406. part.CanCollide = false
  407. part.Transparency = 1
  408.  
  409. soundasd = Instance.new("Sound",part)
  410.  
  411. soundasd.SoundId = "rbxassetid://"..id
  412.  
  413. if vol ~= nil then
  414. soundasd.Volume = vol
  415. end
  416.  
  417. if pitch ~= nil then
  418. soundasd.PlaybackSpeed = pitch
  419. end
  420.  
  421. if dist ~= nil then
  422. soundasd.MaxDistance = dist*5
  423. soundasd.EmitterSize = dist/5
  424. end
  425.  
  426. delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
  427.  
  428. soundasd:Play()
  429.  
  430. end))
  431. return soundasd
  432. end
  433.  
  434. function createsound(id,parent)
  435.  
  436. local soundz = Instance.new("Sound",parent)
  437.  
  438. soundz.SoundId = "rbxassetid://"..id
  439.  
  440. return soundz
  441.  
  442. end
  443.  
  444. function playsound(sond,vol,pitch,start)
  445.  
  446. if vol ~= nil then
  447. sond.Volume = vol
  448. end
  449.  
  450. if pitch ~= nil then
  451. sond.PlaybackSpeed = pitch
  452. end
  453.  
  454. if start ~= nil then
  455. sond.TimePosition = start
  456. end
  457.  
  458. sond:Play()
  459.  
  460. end
  461.  
  462. ----------------------------------------------------------------------------
  463. eColors={"Royal purple","Toothpaste"}
  464. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  465. local magz = (Part0 - Part1).magnitude
  466. local curpos = Part0
  467. local trz = {-Offset,Offset}
  468. for i=1,Times do
  469. local li = Instance.new("Part", DebrisModel)
  470. li.TopSurface =0
  471. li.Material = Enum.Material.Neon
  472. li.BottomSurface = 0
  473. li.Anchored = true
  474. li.Locked = true
  475. li.Transparency = Trans or 0.4
  476. li.BrickColor = BrickColor.new(Color)
  477. li.formFactor = "Custom"
  478. li.CanCollide = false
  479. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  480. local lim = Instance.new("BlockMesh",li)
  481. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  482. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  483. if Times == i then
  484. local magz2 = (curpos - Part1).magnitude
  485. li.Size = Vector3.new(Thickness,Thickness,magz2)
  486. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  487. else
  488. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  489. end
  490. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  491. li.Name = "LIGHTNING"
  492. end
  493. end
  494.  
  495. ----------------------------------------------------------------------------
  496.  
  497. local HBill = Instance.new("BillboardGui",hed)
  498. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  499. local HName = Instance.new("TextLabel")
  500. HBill.Size = UDim2.new(15,0,2.2,0)
  501. HBill.StudsOffset = Vector3.new(3.675,1.2,0)
  502. HBill.AlwaysOnTop = true
  503. HBill.Enabled = true
  504. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  505. HMain.BackgroundTransparency = 1
  506. HMain.Size = UDim2.new(.5,0,.2,0)
  507. HName.Parent = HMain
  508. HName.BackgroundTransparency = 1
  509. HName.BackgroundColor3 = Color3.new(255,255,255)
  510. HName.BorderColor3 = Color3.new(0,0,0)
  511. HName.BorderSizePixel = 2
  512. HName.Size = UDim2.new(1,0,.75,0)
  513. HName.Font = "Code"
  514. HName.Text = [[Azure Phoenix Slayer]]
  515. HName.TextScaled = true
  516. HName.TextColor3 = Color3.new(0.5,0.5,0.5)
  517. HName.TextStrokeColor3 = Color3.new(255,255,255)
  518. HName.TextStrokeTransparency = 0
  519. HName.TextYAlignment = "Bottom"
  520.  
  521. local HBill = Instance.new("BillboardGui",hed)
  522. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  523. local HName = Instance.new("TextLabel")
  524. HBill.Size = UDim2.new(15,0,2.2,0)
  525. HBill.StudsOffset = Vector3.new(3.675,2,0)
  526. HBill.AlwaysOnTop = true
  527. HBill.Enabled = true
  528. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  529. HMain.BackgroundTransparency = 1
  530. HMain.Size = UDim2.new(.5,0,.5,0)
  531. HName.Parent = HMain
  532. HName.BackgroundTransparency = 1
  533. HName.BackgroundColor3 = Color3.new(255,255,255)
  534. HName.BorderColor3 = Color3.new(0,0,0)
  535. HName.BorderSizePixel = 2
  536. HName.Size = UDim2.new(1,0,.75,0)
  537. HName.Font = "Code"
  538. HName.Text = [[The Azure Embodiment]]
  539. HName.TextScaled = true
  540. HName.TextColor3 = Color3.new(255,255,255)
  541. HName.TextStrokeColor3 = Color3.new(255,255,255)
  542. HName.TextStrokeTransparency = 0
  543. HName.TextYAlignment = "Bottom"
  544.  
  545. function bigboomrektxd()
  546. coroutine.resume(coroutine.create(function()
  547. local magnitude = nil
  548. local Position = nil
  549. if animid == 0 then
  550. Position = larm.Position
  551. else
  552. Position = rarm.Position
  553. end
  554. --sound(743499393,Position,10,math.random(6,8)/10)
  555. sound(440145223,Position,10,math.random(10,12)/10,50)
  556.  
  557. local Part1 = Instance.new("Part")
  558. local mesh2 = Instance.new("SpecialMesh",Part1)
  559. mesh2.MeshId = "rbxassetid://559831844"
  560. mesh2.Scale = Vector3.new(0,0,0.4)
  561. Part1.Material = Enum.Material.Neon
  562. Part1.CanCollide = false
  563. Part1.Color = Color3.fromHSV(0,0,main.v)
  564. Part1.Parent = DebrisModel
  565. Part1.Size = Vector3.new(0,0,0)
  566. Part1.Anchored = true
  567. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  568. Part1.Name = "EXPLOSION2"
  569.  
  570. local Part0 = Instance.new("Part",DebrisModel)
  571. local PointLight2 = Instance.new("PointLight")
  572. Part0.Name = "Bullet"
  573. Part0.Material = Enum.Material.Neon
  574. Part0.Color = Color3.fromHSV(0,0,main.v)
  575. Part0.Anchored = false
  576. Part0.Size = Vector3.new(5, 5, 5)
  577. local mesh = Instance.new("SpecialMesh",Part0)
  578. mesh.MeshType = Enum.MeshType.Sphere
  579. local bforce = Instance.new("BodyForce",Part0)
  580. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  581. Part0.CanCollide = false
  582. PointLight2.Parent = Part0
  583. PointLight2.Color = Part0.Color
  584. local Target = mouse.Hit.p
  585. local direction = Target - Position
  586. local direction = computeDirection(direction)
  587. local pos = Position + (direction * 2)
  588. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  589. Part0.Velocity = direction * 60
  590. local asd = nil
  591. local loop = nil
  592. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  593. loop = rs:connect(function()
  594. local asdf = math.random(500,1000)/1000
  595. local Part1 = Instance.new("Part")
  596. local mesh2 = Instance.new("SpecialMesh",Part1)
  597. mesh2.MeshType = Enum.MeshType.Sphere
  598. Part1.Material = Enum.Material.Neon
  599. Part1.CanCollide = false
  600. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  601. Part1.Parent = DebrisModel
  602. Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
  603. Part1.Anchored = true
  604. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
  605. Part1.Name = "SMOKE"
  606. end)
  607. asd = Part0.Touched:connect(function(ht)
  608. local hit=ht.Parent
  609. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  610. asd:disconnect()
  611. loop:disconnect()
  612. Part0:Destroy()
  613.  
  614. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
  615. for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
  616. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  617. v:Destroy()
  618. else
  619. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
  620. end
  621. local Position = Part0.Position
  622. local Target = v.Position
  623. local direction = Target - Position
  624. local direction = computeDirection(direction)
  625. local bv = Instance.new("BodyVelocity",v)
  626. bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
  627. debris:AddItem(bv,1)
  628. end
  629. for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
  630. for z=1,math.random(2,3) do
  631. local asdf = math.random(-5,5)*10-(i/20)*8
  632. local Part1 = Instance.new("Part")
  633. local mesh2 = Instance.new("SpecialMesh",Part1)
  634. mesh2.MeshType = Enum.MeshType.Sphere
  635. mesh2.Scale = Vector3.new(0,0,0)
  636. Part1.Material = Enum.Material.Neon
  637. Part1.CanCollide = false
  638. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  639. Part1.Parent = DebrisModel
  640. Part1.Size = Vector3.new(asdf,asdf,asdf)
  641. Part1.Anchored = true
  642. local a = i*0.5
  643. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
  644. Part1.Name = "EXPLOSION"
  645. end
  646. end
  647.  
  648. end
  649. end)
  650. end))
  651. end
  652.  
  653. holdclick=false
  654.  
  655. mouse.Button1Down:connect(function()
  656. if debounce == false then
  657. if animid == 0 then
  658. animid = 1
  659. else
  660. animid = 0
  661. end
  662. debounce = true
  663. holdclick = true
  664. aiming_anim = true
  665. wait(0.2)
  666. repeat
  667. rs:wait()
  668. timer = 150
  669. until holdclick == false
  670. bigboomrektxd()
  671.  
  672. local Position = mouse.Hit.p
  673. local Target = root.Position
  674. local direction = Target - Position
  675. local direction = computeDirection(direction)
  676. root.Velocity = direction * 150
  677.  
  678. aiming_anim = false
  679. delay(0.3,function() debounce = false end)
  680. end
  681. end)
  682.  
  683. mouse.Button1Up:connect(function()
  684. holdclick=false
  685. end)
  686.  
  687. function dashasdf()
  688. debounce = true
  689.  
  690. char.Humanoid.JumpPower = 0
  691. attack = true
  692.  
  693. for i,v in pairs(char:GetChildren()) do
  694. if v ~= root then
  695. if v:IsA("Part") then
  696. v.Transparency = 1
  697. elseif v:IsA("Accoutrement") then
  698. v:FindFirstChildOfClass("Part").Transparency = 1
  699. end
  700. end
  701. end
  702.  
  703. local tempattachment = Instance.new("Attachment",root)
  704. tempattachment.Position = Vector3.new(0,0,-4)
  705.  
  706. for i=1,20 do rs:wait()
  707. root.Velocity = Vector3.new(0,0,0)
  708. root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
  709. local asdf = math.random(500,1000)/100
  710. local Part1 = Instance.new("Part")
  711. local mesh2 = Instance.new("SpecialMesh",Part1)
  712. mesh2.MeshType = Enum.MeshType.Sphere
  713. Part1.Material = Enum.Material.Neon
  714. Part1.CanCollide = false
  715. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  716. Part1.Parent = DebrisModel
  717. Part1.Size = Vector3.new(asdf,asdf,asdf)
  718. Part1.Anchored = true
  719. Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
  720. Part1.Name = "SMOKE"
  721. end
  722.  
  723. tempattachment:Destroy()
  724.  
  725. for i,v in pairs(char:GetChildren()) do
  726. if v ~= root then
  727. if v:IsA("Part") then
  728. v.Transparency = 0
  729. elseif v:IsA("Accoutrement") then
  730. v:FindFirstChildOfClass("Part").Transparency = 0
  731. end
  732. end
  733. end
  734.  
  735.  
  736. char.Humanoid.JumpPower = 50
  737. attack = false
  738.  
  739. delay(0.1,function() debounce = false end)
  740. end
  741.  
  742. function laz0r()
  743.  
  744. local Position = nil
  745. if animid == 0 then
  746. Position = larm.Position
  747. else
  748. Position = rarm.Position
  749. end
  750.  
  751. local Part1 = Instance.new("Part")
  752. local mesh2 = Instance.new("SpecialMesh",Part1)
  753. mesh2.MeshId = "rbxassetid://559831844"
  754. mesh2.Scale = Vector3.new(0,0,0.4)
  755. Part1.Material = Enum.Material.Neon
  756. Part1.CanCollide = false
  757. Part1.Color = Color3.fromHSV(0,0,main.v)
  758. Part1.Parent = DebrisModel
  759. Part1.Size = Vector3.new(0,0,0)
  760. Part1.Anchored = true
  761. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  762. Part1.Name = "EXPLOSION3"
  763.  
  764. local Part0 = Instance.new("Part",DebrisModel)
  765. Part0.Name = "Bullet"
  766. Part0.Material = Enum.Material.Neon
  767. Part0.Color = Color3.fromHSV(0,0,main.v)
  768. Part0.Anchored = true
  769. local mesh = Instance.new("SpecialMesh",Part0)
  770. mesh.MeshType = Enum.MeshType.Sphere
  771. Part0.CanCollide = false
  772. local Target = mouse.Hit.p
  773. local direction = Target - Position
  774. local direction = computeDirection(direction)
  775. local ray = Ray.new(Position, (Target-Position).unit*1048)
  776. local part, endPoint = workspace:FindPartOnRay(ray, char)
  777. Part0.Size = Vector3.new(5,1,5)
  778. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  779. local pos = Position + (direction * (mesh.Scale.Y/2))
  780. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  781.  
  782. clashpart = Instance.new("Part",DebrisModel)
  783. clashpart.Size = Vector3.new(50,50,50)
  784. clashpart.CanCollide = false
  785. clashpart.Anchored = true
  786. clashpart.Transparency = 1
  787. clashpart.Color = main_color
  788. clashpart.Name = "StarLightClash"
  789. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  790.  
  791. sound(1177475476,Position,10,math.random(5,6)/10,300)
  792.  
  793. local z = 10
  794. for i = 1,100 do rs:wait()
  795. if animid == 0 then
  796. Position = larm.Position
  797. else
  798. Position = rarm.Position
  799. end
  800. local Target = mouse.Hit.p
  801. local direction = Target - Position
  802. local direction = computeDirection(direction)
  803. local ray = Ray.new(Position, (Target-Position).unit*1048)
  804. local part, endPoint = workspace:FindPartOnRay(ray, char)
  805. Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
  806. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  807. mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
  808. local pos = Position + (direction * (mesh.Scale.Y/2))
  809. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  810. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  811.  
  812. local Position = mouse.Hit.p
  813. local Target = root.Position
  814. local direction = Target - Position
  815. local direction = computeDirection(direction)
  816. root.Velocity = direction * 5
  817.  
  818. if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
  819.  
  820. Part1 = Part0:Clone()
  821. Part1.Parent = DebrisModel
  822. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  823. Part1.Name = "SMOKE2"
  824.  
  825. if part ~= nil then
  826. if part.Name == "StarLightClash" then
  827. local asdf = math.random(0,5)*20
  828. local Part1 = Instance.new("Part")
  829. local mesh2 = Instance.new("SpecialMesh",Part1)
  830. mesh2.MeshType = Enum.MeshType.Sphere
  831. mesh2.Scale = Vector3.new(0,0,0)
  832. Part1.Material = Enum.Material.Neon
  833. Part1.CanCollide = false
  834. Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v)
  835. Part1.Parent = DebrisModel
  836. Part1.Size = Vector3.new(asdf,asdf,asdf)
  837. Part1.Anchored = true
  838. local a = 1.5
  839. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  840. Part1.Name = "EXPLOSION"
  841. else
  842. local asdf = math.random(0,5)*10
  843. local Part1 = Instance.new("Part")
  844. local mesh2 = Instance.new("SpecialMesh",Part1)
  845. mesh2.MeshType = Enum.MeshType.Sphere
  846. mesh2.Scale = Vector3.new(0,0,0)
  847. Part1.Material = Enum.Material.Neon
  848. Part1.CanCollide = false
  849. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  850. Part1.Parent = DebrisModel
  851. Part1.Size = Vector3.new(asdf,asdf,asdf)
  852. Part1.Anchored = true
  853. local a = 1.5
  854. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  855. Part1.Name = "EXPLOSION"
  856. end
  857. end
  858.  
  859. for i,v in pairs(findAllNearestTorso(endPoint,50)) do
  860. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  861. v:Destroy()
  862. else
  863. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
  864. end
  865. local Position = mouse.Hit.p
  866. local Target = v.Position
  867. local direction = Target - Position
  868. local direction = computeDirection(direction)
  869. local bv = Instance.new("BodyVelocity",v)
  870. bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
  871. debris:AddItem(bv,1)
  872. end
  873.  
  874. end
  875. clashpart:Destroy()
  876. Part0:Destroy()
  877. wait(0.3)
  878. aiming_anim = false
  879. delay(0.3,function() debounce = false end)
  880. end
  881.  
  882. function nukewelpo()
  883. coroutine.resume(coroutine.create(function()
  884. local magnitude = nil
  885. local Position = nil
  886. if animid == 0 then
  887. Position = larm.Position
  888. else
  889. Position = rarm.Position
  890. end
  891. --sound(743499393,Position,10,math.random(6,8)/10)
  892. sound(440145223,Position,10,math.random(4,5)/10,100)
  893.  
  894. local Part1 = Instance.new("Part")
  895. local mesh2 = Instance.new("SpecialMesh",Part1)
  896. mesh2.MeshId = "rbxassetid://559831844"
  897. mesh2.Scale = Vector3.new(0,0,0.4)
  898. Part1.Material = Enum.Material.Neon
  899. Part1.CanCollide = false
  900. Part1.Color = Color3.fromHSV(0,0,main.v)
  901. Part1.Parent = DebrisModel
  902. Part1.Size = Vector3.new(0,0,0)
  903. Part1.Anchored = true
  904. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  905. Part1.Name = "EXPLOSION3"
  906.  
  907. local Part0 = Instance.new("Part",DebrisModel)
  908. local PointLight2 = Instance.new("PointLight")
  909. Part0.Name = "Bullet"
  910. Part0.Material = Enum.Material.Neon
  911. Part0.Color = Color3.fromHSV(0,0,main.v)
  912. Part0.Anchored = false
  913. Part0.Size = Vector3.new(5, 5, 5)
  914. local mesh = Instance.new("SpecialMesh",Part0)
  915. mesh.MeshType = Enum.MeshType.Sphere
  916. mesh.Scale = Vector3.new(3,3,3)
  917. local bforce = Instance.new("BodyForce",Part0)
  918. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  919. Part0.CanCollide = false
  920. PointLight2.Parent = Part0
  921. PointLight2.Color = Part0.Color
  922. local Target = mouse.Hit.p
  923. local direction = Target - Position
  924. local direction = computeDirection(direction)
  925. local pos = Position + (direction * 2)
  926. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  927. Part0.Velocity = direction * 150
  928. local asd = nil
  929. local loop = nil
  930. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  931. loop = rs:connect(function()
  932. local asdf = math.random(500,1000)/1000
  933. local Part1 = Instance.new("Part")
  934. local mesh2 = Instance.new("SpecialMesh",Part1)
  935. mesh2.MeshType = Enum.MeshType.Sphere
  936. Part1.Material = Enum.Material.Neon
  937. Part1.CanCollide = false
  938. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  939. Part1.Parent = DebrisModel
  940. Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
  941. Part1.Anchored = true
  942. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
  943. Part1.Name = "SMOKE"
  944. end)
  945. asd = Part0.Touched:connect(function(ht)
  946. local hit=ht.Parent
  947. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  948. asd:disconnect()
  949. loop:disconnect()
  950. Part0:Destroy()
  951.  
  952. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
  953. for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
  954. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  955. v:Destroy()
  956. else
  957. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
  958. end
  959. local Position = Part0.Position
  960. local Target = v.Position
  961. local direction = Target - Position
  962. local direction = computeDirection(direction)
  963. local bv = Instance.new("BodyVelocity",v)
  964. bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
  965. debris:AddItem(bv,1)
  966. end
  967. for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
  968. for z=1,math.random(2,3) do
  969. local asdf = math.random(-5,5)*10-(i/20)*12
  970. local Part1 = Instance.new("Part")
  971. local mesh2 = Instance.new("SpecialMesh",Part1)
  972. mesh2.MeshType = Enum.MeshType.Sphere
  973. mesh2.Scale = Vector3.new(0,0,0)
  974. Part1.Material = Enum.Material.Neon
  975. Part1.CanCollide = false
  976. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  977. Part1.Parent = DebrisModel
  978. Part1.Size = Vector3.new(asdf,asdf,asdf)
  979. Part1.Anchored = true
  980. local a = i*5
  981. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
  982. Part1.Name = "EXPLOSION4"
  983. end
  984. end
  985.  
  986. end
  987. end)
  988. end))
  989. end
  990.  
  991. holdq = false
  992. holdr = false
  993. cooldownult = false
  994.  
  995. mouse.KeyDown:connect(function(key)
  996. if debounce == false then
  997. if key == "e" then
  998. wings()
  999. dashasdf()
  1000. nowings()
  1001. elseif key == "r" and cooldownult == false then
  1002. cooldownult = true
  1003. if animid == 0 then
  1004. animid = 1
  1005. else
  1006. animid = 0
  1007. end
  1008. debounce = true
  1009. wings()
  1010. holdr = true
  1011. aiming_anim = true
  1012. wait(0.2)
  1013. repeat
  1014. rs:wait()
  1015. timer = 150
  1016. until holdr == false
  1017. nukewelpo()
  1018. nowings()
  1019.  
  1020. local Position = mouse.Hit.p
  1021. local Target = root.Position
  1022. local direction = Target - Position
  1023. local direction = computeDirection(direction)
  1024. root.Velocity = direction * 300
  1025.  
  1026. aiming_anim = false
  1027. delay(5,function() cooldownult = false end)
  1028. delay(1,function() debounce = false end)
  1029.  
  1030. elseif key == "q" then
  1031. debounce = true
  1032. if animid == 0 then
  1033. animid = 1
  1034. else
  1035. animid = 0
  1036. end
  1037. holdq = true
  1038. wings()
  1039. attack = true
  1040. aiming_anim = true
  1041. repeat rs:wait() timer = 150 until holdq == false
  1042. laz0r()
  1043. attack = false
  1044. nowings()
  1045. end
  1046. end
  1047. end)
  1048.  
  1049. local Color = BrickColor.new("Royal purple").Color
  1050. local Color2 = BrickColor.new("Toothpaste").Color
  1051. local boom = true
  1052. local player = game.Players.LocalPlayer
  1053. local char = player.Character
  1054. local human = char.Humanoid
  1055. torso = char.Torso
  1056. m=player:GetMouse()
  1057. ChatService = game:GetService("Chat")
  1058. ChatService:Chat(char.Head ,"Behold, the one of many elements of the phoenix slayers.")
  1059. ---------------------------------------------------------------------------------------------------------
  1060. m.KeyDown:connect(function(key)
  1061. if key == "f" then
  1062. torso.CFrame = m.hit
  1063. end
  1064. end)
  1065.  
  1066. m.KeyDown:connect(function(key)
  1067. if key == "z" then
  1068. ChatService:Chat(char.Head ,"Azure Phoenix Fist")
  1069. local pos = m.Hit.p
  1070. local pos1 = torso.Position
  1071. torso.CFrame = CFrame.new(pos1, pos)
  1072. x = Instance.new("Part", char)
  1073. x.Shape = "Ball"
  1074. x.Size = Vector3.new(4,4,4)
  1075. x.Material = "Neon"
  1076. x.BrickColor = BrickColor.new("Bright purple")
  1077. x.Anchored = false
  1078. x.CanCollide = false
  1079. x.Transparency = 1
  1080. x.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
  1081. fire = Instance.new("ParticleEmitter", x)
  1082. fire.EmissionDirection = "Back"
  1083. fire.VelocitySpread = 0
  1084. fire.Lifetime = NumberRange.new(2)
  1085. fire.Acceleration = Vector3.new(0, 0, 0)
  1086. fire.RotSpeed = NumberRange.new(10)
  1087. fire.Rate = 100
  1088. fire.Rotation = NumberRange.new(151515)
  1089. fire.Name = "Fire"
  1090. fire.LightEmission = 0.78
  1091. fire.LockedToPart = true
  1092. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1093. fire.Color = ColorSequence.new(Color, Color2)
  1094. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 9),NumberSequenceKeypoint.new(1, 0)})
  1095. local asdq = Instance.new("SurfaceLight", x)
  1096. asdq.Brightness = 1000000
  1097. asdq.Color = Color3.new(255,255,255)
  1098. z = Instance.new("SpecialMesh", x)
  1099. z.MeshId = "http://www.roblox.com/asset/?id=9982590"
  1100. z.Scale = Vector3.new(1,1,1)
  1101. c = Instance.new("BodyVelocity", x)
  1102. c.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1103. c.velocity = char.Torso.CFrame.lookVector*180
  1104. x.Touched:connect(function(h)
  1105. local a = h.Parent
  1106. if a.Name ~= player.Name and a.ClassName == "Model" then
  1107. for i = 1,10,.4 do
  1108. z.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
  1109. x.Size = Vector3.new(4 + i*2.3, 4 + i*2.3, 4 + i*2.3)
  1110. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
  1111. end
  1112. end
  1113. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  1114. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  1115. end
  1116. end)
  1117. game.Debris:AddItem(x,5)
  1118. end
  1119. end)
  1120.  
  1121. m.KeyDown:connect(function(key)
  1122. if key == "x" then
  1123. local pos = m.Hit.p
  1124. local pos1 = torso.Position
  1125. game:GetService("Chat"):Chat(player.Character.Head, "Azure Phoenix Radiance!")
  1126. torso.CFrame = CFrame.new(pos1, pos)
  1127. k = Instance.new("Part", workspace)
  1128. k.Shape = "Cylinder"
  1129. k.Size = Vector3.new(25,3,4)
  1130. k.Material = "Neon"
  1131. k.BrickColor = BrickColor.new("Royal purple")
  1132. k.Anchored = false
  1133. k.CanCollide = false
  1134. k.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-2.5)
  1135. fire = Instance.new("ParticleEmitter", k)
  1136. fire.VelocitySpread = 0
  1137. fire.Lifetime = NumberRange.new(2)
  1138. fire.Acceleration = Vector3.new(0, 0, 0)
  1139. fire.RotSpeed = NumberRange.new(10)
  1140. fire.Rate = 500
  1141. fire.Rotation = NumberRange.new(151515)
  1142. fire.Name = "Fire"
  1143. fire.LightEmission = 0.78
  1144. fire.LockedToPart = true
  1145. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1146. fire.Color = ColorSequence.new(Color, Color2)
  1147. fire.EmissionDirection = "Back"
  1148. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10),NumberSequenceKeypoint.new(1, 0)})
  1149. j = Instance.new("SpecialMesh", k)
  1150. j.MeshType = "Sphere"
  1151. j.Scale = Vector3.new(1,1,1)
  1152. h = Instance.new("BodyVelocity", k)
  1153. h.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1154. h.velocity = char.Torso.CFrame.lookVector*180
  1155. k.Touched:connect(function(h)
  1156. local a = h.Parent
  1157. if a.Name ~= player.Name and a.ClassName == "Model" then
  1158. k.Anchored = true
  1159. for i = 1,10,.4 do
  1160. j.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
  1161. h.Scale = Vector3.new(1 + i*0.8, 1 + i*0.8, 1 + i*0.8)
  1162. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
  1163. end
  1164. k.Transparency = 0.1
  1165. wait(0.1)
  1166. k.Transparency = 0.2
  1167. wait(0.1)
  1168. k.Transparency = 0.3
  1169. wait(0.1)
  1170. k.Transparency = 0.4
  1171. wait(0.1)
  1172. k.Transparency = 0.5
  1173. wait(0.1)
  1174. k.Transparency = 0.6
  1175. wait(0.1)
  1176. k.Transparency = 0.7
  1177. wait(0.1)
  1178. k.Transparency = 0.8
  1179. wait(0.1)
  1180. k.Transparency = 0.9
  1181. wait(0.1)
  1182. k.Transparency = 1
  1183. end
  1184. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  1185. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  1186. end
  1187. end)
  1188. game.Debris:AddItem(k,5)
  1189. end
  1190. end)
  1191.  
  1192. m.KeyDown:connect(function(key)
  1193. if key == "c" and boom == true then boom = false
  1194. ChatService:Chat(char.Head ,"Get Ready..")
  1195. char.Humanoid.JumpPower = 150
  1196. char.Humanoid.Jump = true
  1197. wait(1)
  1198. torso.Anchored = true
  1199. torso.CFrame = torso.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1200. game:GetService("Chat"):Chat(player.Character.Head, "Azure Phoenix Barrage!!")
  1201. for i = 1,100 do
  1202. local g = Instance.new("Part", workspace)
  1203. g.Transparency = 0.1
  1204. g.Name = "lalala"
  1205. g.FormFactor = "Custom"
  1206. g.Anchored = false
  1207. g.CanCollide = false
  1208. g.BrickColor = BrickColor.new("Royal purple")
  1209. g.Shape = "Ball"
  1210. g.Size = Vector3.new(15,15,15)
  1211. g.Material = "Neon"
  1212. g.TopSurface = 0
  1213. g.BottomSurface = 0
  1214. fire = Instance.new("ParticleEmitter", g)
  1215. fire.VelocitySpread = 0
  1216. fire.EmissionDirection = "Top"
  1217. fire.Lifetime = NumberRange.new(2)
  1218. fire.Acceleration = Vector3.new(0, 0, 0)
  1219. fire.RotSpeed = NumberRange.new(10)
  1220. fire.Rate = 500
  1221. fire.Rotation = NumberRange.new(151515)
  1222. fire.Name = "Fire"
  1223. fire.LightEmission = 0.78
  1224. fire.LockedToPart = true
  1225. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1226. fire.Color = ColorSequence.new(Color, Color2)
  1227. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10),NumberSequenceKeypoint.new(1, 0)})
  1228. local y = Instance.new("BodyVelocity", g)
  1229. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1230. y.velocity = char.Torso.CFrame.lookVector*180
  1231. g.CFrame = torso.CFrame*CFrame.new(math.random(-30,30),math.random(-30,30),math.random(-20,-10))* CFrame.Angles(0, 0, 0)
  1232. local c = Instance.new("SpecialMesh",g)
  1233. c.MeshType = "Sphere"
  1234. c.Scale = Vector3.new(1,1,1)
  1235. for i = 1,2 do
  1236. c.Scale = c.Scale +Vector3.new(0,0,0)
  1237. wait(0.0005)
  1238. end
  1239. g.Touched:connect(function(h)
  1240. local a = h.Parent
  1241. if a.Name ~= player.Name and a.ClassName == "Model" then
  1242. g.Anchored = true
  1243. for i = 1,10,.4 do
  1244. c.Scale = Vector3.new(1 + i*0.4, 1 + i*0.4, 1 + i*0.4)
  1245. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 180
  1246. end
  1247. g.Transparency = 0.1
  1248. wait(0.1)
  1249. g.Transparency = 0.2
  1250. wait(0.1)
  1251. g.Transparency = 0.3
  1252. wait(0.1)
  1253. g.Transparency = 0.4
  1254. wait(0.1)
  1255. g.Transparency = 0.5
  1256. wait(0.1)
  1257. g.Transparency = 0.6
  1258. wait(0.1)
  1259. g.Transparency = 0.7
  1260. wait(0.1)
  1261. g.Transparency = 0.8
  1262. wait(0.1)
  1263. g.Transparency = 0.9
  1264. wait(0.1)
  1265. g.Transparency = 1
  1266. end
  1267. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  1268. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  1269. end
  1270. end)
  1271. game.Debris:AddItem(g,5)
  1272. end
  1273. torso.Anchored = false
  1274. char.Humanoid.JumpPower = 50
  1275. boom = true
  1276. end
  1277. end)
  1278.  
  1279. m.KeyDown:connect(function(key)
  1280. if key == "v" and boom == true then boom = false
  1281. game:GetService("Chat"):Chat(player.Character.Head, "AZURE PHOENIX'S BRILLIANT FLAME!!!!")
  1282. local pos = m.Hit.p
  1283. local pos1 = torso.Position
  1284. torso.CFrame = CFrame.new(pos1, pos)
  1285. local qeqe = Instance.new("Part", char)
  1286. qeqe.Anchored = false
  1287. qeqe.BrickColor = BrickColor.new("Royal purple")
  1288. qeqe.CanCollide = false
  1289. qeqe.Name = "Boom"
  1290. qeqe.Shape = "Ball"
  1291. qeqe.Size = Vector3.new(100, 100, 100)
  1292. qeqe.Transparency = 0
  1293. qeqe.TopSurface = 0
  1294. qeqe.BottomSurface = 0
  1295. qeqe.Material = "Neon"
  1296. qeqe.CFrame = char["Torso"].CFrame * CFrame.new(0,0,-7.5)
  1297. fire = Instance.new("ParticleEmitter", qeqe)
  1298. fire.VelocitySpread = 0
  1299. fire.Lifetime = NumberRange.new(2)
  1300. fire.Acceleration = Vector3.new(0, 0, 0)
  1301. fire.RotSpeed = NumberRange.new(10)
  1302. fire.Rate = 1000
  1303. fire.Rotation = NumberRange.new(151515)
  1304. fire.Name = "Fire"
  1305. fire.LightEmission = 0.78
  1306. fire.LockedToPart = true
  1307. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1308. fire.Color = ColorSequence.new(Color, Color2)
  1309. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10),NumberSequenceKeypoint.new(1, 0)})
  1310. awd = Instance.new("BodyVelocity", qeqe)
  1311. awd.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1312. awd.velocity = char.Torso.CFrame.lookVector*360
  1313. qeqe.Touched:connect(function(h)
  1314. local a = h.Parent
  1315. if a.Name ~= player.Name and a.ClassName == "Model" and a:FindFirstChild("Humanoid") ~= nil then
  1316. h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
  1317. wait(0.2)
  1318. a:FindFirstChild("Humanoid"):TakeDamage(math.huge)
  1319. qeqe.Anchored = true
  1320. qeqe.Size = Vector3.new(150,150,150)
  1321. qeqe2 = qeqe:Clone()
  1322. qeqe2.Size = Vector3.new(130,130,130)
  1323. qeqe2.Color = Color3.new(0,255,255)
  1324. qeqe2.Anchored = true
  1325. qeqe.Transparency = 0.1
  1326. wait(0.1)
  1327. qeqe.Transparency = 0.2
  1328. wait(0.1)
  1329. qeqe.Transparency = 0.3
  1330. wait(0.1)
  1331. qeqe.Transparency = 0.4
  1332. wait(0.1)
  1333. qeqe.Transparency = 0.5
  1334. wait(0.1)
  1335. qeqe.Transparency = 0.6
  1336. wait(0.1)
  1337. qeqe.Transparency = 0.7
  1338. wait(0.1)
  1339. qeqe.Transparency = 0.8
  1340. wait(0.1)
  1341. qeqe.Transparency = 0.9
  1342. wait(0.1)
  1343. qeqe.Transparency = 1
  1344. wait(1)
  1345. qeqe2.Transparency = 0.1
  1346. wait(0.1)
  1347. qeqe2.Transparency = 0.2
  1348. wait(0.1)
  1349. qeqe2.Transparency = 0.3
  1350. wait(0.1)
  1351. qeqe2.Transparency = 0.4
  1352. wait(0.1)
  1353. qeqe2.Transparency = 0.5
  1354. wait(0.1)
  1355. qeqe2.Transparency = 0.6
  1356. wait(0.1)
  1357. qeqe2.Transparency = 0.7
  1358. wait(0.1)
  1359. qeqe2.Transparency = 0.8
  1360. wait(0.1)
  1361. qeqe2.Transparency = 0.9
  1362. wait(0.1)
  1363. qeqe2.Transparency = 1
  1364. end
  1365. end)
  1366. game.Debris:AddItem(qeqe,5)
  1367. game.Debris:AddItem(qeqe2,5)
  1368. boom = true
  1369. end
  1370. end)
  1371.  
  1372. function flameup()
  1373. fire = Instance.new("ParticleEmitter", char:FindFirstChild("Left Arm"))
  1374. fire.VelocitySpread = 0
  1375. fire.Lifetime = NumberRange.new(0.7)
  1376. fire.Acceleration = Vector3.new(0, 0, 0)
  1377. fire.RotSpeed = NumberRange.new(10)
  1378. fire.Rate = 1000
  1379. fire.Rotation = NumberRange.new(151515)
  1380. fire.Name = "Fire"
  1381. fire.LightEmission = 0.78
  1382. fire.LockedToPart = false
  1383. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1384. fire.Color = ColorSequence.new(Color, Color2)
  1385. fire.EmissionDirection = "Back"
  1386. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 0)})
  1387. fire2 = fire:Clone()
  1388. fire2.Parent = char:FindFirstChild("Right Arm")
  1389. end
  1390.  
  1391. flameup()
  1392.  
  1393. mouse.KeyUp:connect(function(key)
  1394. if key == "q" then
  1395. holdq = false
  1396. elseif key == "r" then
  1397. holdr = false
  1398. end
  1399. end)
  1400.  
  1401. ----------------------------------------------------------------------------
  1402. music(themeid,themepitch)
  1403. velocityYFall=0
  1404. velocityYFall2=0
  1405. velocityYFall3=0
  1406. velocityYFall4=0
  1407. neckrotY=0
  1408. neckrotY2=0
  1409. torsorotY=0
  1410. torsorotY2=0
  1411. torsoY=0
  1412. torsoY2=0
  1413. sine = 0
  1414. newWeld(torso, larm, -1.5, 0.5, 0)
  1415. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1416. newWeld(torso, rarm, 1.5, 0.5, 0)
  1417. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1418. newWeld(torso, hed, 0, 1.5, 0)
  1419. newWeld(torso, lleg, -0.5, -1, 0)
  1420. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1421. newWeld(torso, rleg, 0.5, -1, 0)
  1422. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1423. newWeld(root, torso, 0, -1, 0)
  1424. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1425.  
  1426. rs:connect(function()
  1427.  
  1428. bg.MaxTorque = Vector3.new(0,0,0)
  1429.  
  1430. for i,v in pairs(DebrisModel:GetChildren()) do
  1431.  
  1432.  
  1433. if v.Name == "EXPLOSION" then
  1434. local change = 0.04-(v.Transparency*0.02)
  1435. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1436. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1437. v.Transparency = v.Transparency + 0.02
  1438. if v.Transparency >= 1 then
  1439. v:Destroy()
  1440. end
  1441.  
  1442. elseif v.Name == "EXPLOSION2" then
  1443. local change = 0.04-(v.Transparency*0.04)
  1444. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1445. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1446. v.Transparency = v.Transparency + 0.025
  1447. if v.Transparency >= 1 then
  1448. v:Destroy()
  1449. end
  1450.  
  1451. elseif v.Name == "EXPLOSION3" then
  1452. local change = 0.5-(v.Transparency*0.5)
  1453. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1454. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1455. v.Transparency = v.Transparency + 0.1
  1456. if v.Transparency >= 1 then
  1457. v:Destroy()
  1458. end
  1459.  
  1460. elseif v.Name == "EXPLOSION4" then
  1461. local change = 0.15-(v.Transparency*0.125)
  1462. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1463. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1464. v.Transparency = v.Transparency + 0.01
  1465. if v.Transparency >= 1 then
  1466. v:Destroy()
  1467. end
  1468.  
  1469. elseif v.Name == "SMOKE" then
  1470. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1471. vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
  1472. if vm.Scale.X <= 0 then
  1473. v:Destroy()
  1474. end
  1475.  
  1476. elseif v.Name == "SMOKE2" then
  1477. local change = 2-(v.Transparency*2)
  1478. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1479. local Position = nil
  1480. if animid == 0 then
  1481. Position = larm.Position
  1482. else
  1483. Position = rarm.Position
  1484. end
  1485. local Target = mouse.Hit.p
  1486. local direction = Target - Position
  1487. local direction = computeDirection(direction)
  1488. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1489. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1490. vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
  1491. local pos = Position + (direction * (vm.Scale.Y/2))
  1492. v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1493. vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
  1494. v.Transparency = v.Transparency + 0.1
  1495. if v.Transparency >= 1 then
  1496. v:Destroy()
  1497. end
  1498.  
  1499.  
  1500. elseif v.Name == "LIGHTNING" then
  1501. local vm = v:FindFirstChildOfClass("BlockMesh")
  1502. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  1503. if vm.Scale.X <= 0 then
  1504. v:Destroy()
  1505. end
  1506.  
  1507. end
  1508. end
  1509.  
  1510. if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
  1511. velocityYFall = root.Velocity.Y/1.5
  1512. end
  1513. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1514. velocityYFall2 = root.Velocity.Y/180
  1515. end
  1516. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1517. velocityYFall3 = root.Velocity.Y/1.5
  1518. end
  1519. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1520. velocityYFall4 = root.Velocity.Y/1.5
  1521. end
  1522. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1523. neckrotY = root.RotVelocity.Y/6
  1524. end
  1525. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1526. neckrotY2 = root.RotVelocity.Y/8
  1527. end
  1528.  
  1529. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1530. torsorotY = root.RotVelocity.Y/6
  1531. end
  1532. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1533. torsorotY2 = root.RotVelocity.Y/8
  1534. end
  1535.  
  1536.  
  1537. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1538. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1539.  
  1540. if attack == true then
  1541. hum.WalkSpeed = 1
  1542. else
  1543. hum.WalkSpeed = 8
  1544. end
  1545.  
  1546.  
  1547. local jumped = false
  1548. local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1549. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1550. local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1551. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1552. local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1553. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1554. local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1555. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1556.  
  1557. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1558.  
  1559. local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1560. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1561.  
  1562. local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1563. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1564.  
  1565. if no_anim == false then
  1566. if hum.Health > 0 then
  1567. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1568. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
  1569. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
  1570. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1571. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1572. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
  1573. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1574. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1575. elseif jumped == true then
  1576. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
  1577. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
  1578. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2)
  1579. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2)
  1580. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  1581. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
  1582. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
  1583. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  1584. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
  1585. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
  1586. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2)
  1587. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2)
  1588. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  1589. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
  1590. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
  1591. end
  1592. for i=1,5 do
  1593. if aiming_anim == true then
  1594. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1595. if jumped == false then
  1596. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1597. else
  1598. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1599. end
  1600. if animid == 0 then
  1601. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
  1602. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2)
  1603. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4)
  1604. else
  1605. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
  1606. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2)
  1607. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4)
  1608. end
  1609. else
  1610. if timer <= 0 then
  1611. animid = math.random(0,1)
  1612. else
  1613. timer = timer - 1
  1614. end
  1615. end
  1616. end
  1617. end
  1618. end
  1619. main_color = Color3.fromRGB(main.r,main.g,main.b)
  1620. pr.Value = main.r
  1621. pg.Value = main.g
  1622. pb.Value = main.b
  1623. pv.Value = main.v
  1624. idth.Value = themeid
  1625. pith.Value = themepitch
  1626. HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
  1627. HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
  1628. sine = sine + change
  1629. if hum.Health <= 0 then
  1630. debounce = true
  1631. end
  1632. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement