Advertisement
EmeraldIT

Is This The true Azure?

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