Advertisement
TheJake678

Untitled

Nov 25th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.17 KB | None | 0 0
  1. p = Instance.new("RemoteEvent",owner.PlayerGui)
  2. p.Name = "KeyPress"
  3. m = Instance.new("RemoteFunction",owner.PlayerGui)
  4. m.Name = "Mouse"
  5. l = Instance.new("RemoteFunction",owner.PlayerGui)
  6. l.Name = "Mouse0"
  7.  
  8. local source = [[
  9. local p = owner.PlayerGui:WaitForChild("KeyPress")
  10. local m = owner.PlayerGui:WaitForChild("Mouse")
  11. local l = owner.PlayerGui:WaitForChild("Mouse0")
  12. game:GetService("UserInputService").InputBegan:Connect(function(key, gameProcessed)
  13. if not gameProcessed then
  14. p:FireServer(key.KeyCode)
  15. end
  16. end)
  17. wait()
  18. m.OnClientInvoke = function()
  19. return owner:GetMouse().Target
  20. end
  21. l.OnClientInvoke = function()
  22. return owner:GetMouse().Hit
  23. end
  24. ]]
  25.  
  26. NLS(source,owner.PlayerGui)
  27.  
  28. math.randomseed(tick())
  29.  
  30. green = "rbxassetid://2616525039"
  31. white = "rbxassetid://2129755572"
  32. swordtexture = "rbxassetid://432834982"
  33.  
  34. sword = "rbxassetid://432834974"
  35. slice = "rbxassetid://3424466520"
  36. crystal = "rbxassetid://1059108471"
  37.  
  38. zeroid = "rbxassetid://3189558544"
  39. oneid = "rbxassetid://3189560540"
  40. twoid = "rbxassetid://3189561617"
  41. threeid = "rbxassetid://3189563503"
  42. fourid = "rbxassetid://3189565375"
  43. fiveid = "rbxassetid://3189567260"
  44. sixid = "rbxassetid://3189568531"
  45. sevenid = "rbxassetid://3189570442"
  46. eightid = "rbxassetid://3189583938"
  47. nineid = "rbxassetid://3189585966"
  48.  
  49. Aid = "rbxassetid://3084426035"
  50. Bid = "rbxassetid://3084451043"
  51. Cid = "rbxassetid://3084463904"
  52. Did = "rbxassetid://3084487555"
  53. Eid = "rbxassetid://3084491097"
  54. Fid = "rbxassetid://3084492520"
  55. Gid = "rbxassetid://3084493904"
  56. Hid = "rbxassetid://3084494750"
  57. Iid = "rbxassetid://3084496200"
  58. Jid = "rbxassetid://3084497782"
  59. Kid = "rbxassetid://3084529073"
  60. Lid = "rbxassetid://3084530895"
  61. Mid = "rbxassetid://3084531995"
  62. Nid = "rbxassetid://3084533592"
  63. Oid = "rbxassetid://3084535047"
  64. Pid = "rbxassetid://3084538795"
  65. Qid = "rbxassetid://3084540933"
  66. Rid = "rbxassetid://3084546446"
  67. Sid = "rbxassetid://3084547589"
  68. Tid = "rbxassetid://3084549927"
  69. Uid = "rbxassetid://3084551005"
  70. Vid = "rbxassetid://3084551887"
  71. Wid = "rbxassetid://3084554595"
  72. Xid = "rbxassetid://3084558232"
  73. Yid = "rbxassetid://3084558960"
  74. Zid = "rbxassetid://3084560220"
  75. iid = "rbxassetid://442354677"
  76. nid = "rbxassetid://442354929"
  77. fid = "rbxassetid://442354456"
  78.  
  79. crownid = "rbxassetid://1007757199"
  80. donutid = "rbxassetid://750104831"
  81. ringid = "rbxassetid://471124075"
  82. ring0id = "rbxassetid://3270017"
  83. diamondid = "rbxassetid://1254392112"
  84. coneid = "rbxassetid://703458158"
  85. square = "rbxassetid://703387192"
  86. glow = "rbxassetid://172380355"
  87. dust = "rbxassetid://464840466"
  88. blood = "rbxassetid://1927066320"
  89. pentagram = "rbxassetid://2998471080"
  90.  
  91. it = Instance.new
  92. cf = CFrame.new
  93. ang = CFrame.Angles
  94. v3 = Vector3.new
  95. rad = math.rad
  96. rand = math.random
  97. huge = math.huge
  98. v2 = Vector2.new
  99. numse = NumberSequence.new
  100. numra = NumberRange.new
  101. rgb = Color3.fromRGB
  102. col = Color3.new
  103.  
  104. dead = false
  105.  
  106. healthboost = 1
  107.  
  108. deathboost = 1
  109.  
  110. torso = nil
  111. plr = owner
  112. char = owner.Character
  113. head = owner.Character.Head
  114. if owner.Character:FindFirstChild("Torso") then
  115. torso = owner.Character:FindFirstChild("Torso")
  116. else
  117. torso = owner.Character:FindFirstChild("UpperTorso")
  118. end
  119.  
  120. function swait()
  121. game:GetService("RunService").Stepped:wait()
  122. end
  123.  
  124. blocking = false
  125. orbsummoned = false
  126.  
  127. billboardgui = Instance.new("BillboardGui", head)
  128. textlabel = Instance.new("TextBox")
  129. textlabel.Name = "TxtLabel"
  130. billboardgui.Name = "Billboard"
  131.  
  132. textlabel.BackgroundTransparency = 1
  133. textlabel.Font = Enum.Font.Arcade
  134. textlabel.Text = ""
  135. textlabel.TextColor3 = Color3.fromRGB(120,255,0)
  136. textlabel.BorderSizePixel = 0
  137. textlabel.Size = UDim2.new(2,0,2,0)
  138. textlabel.Position = UDim2.new(0.15,0,-0.7,0)
  139. textlabel.Parent = billboardgui
  140. textlabel.TextScaled = true
  141. billboardgui.StudsOffset = Vector3.new(0,2,0)
  142. billboardgui.Size = UDim2.new(10,0,3,0)
  143.  
  144. pos = nil
  145.  
  146. char.Humanoid.MaxHealth = 1000
  147. char.Humanoid.Health = 1000
  148.  
  149. local music = Instance.new("Sound",owner.Character.Head)
  150. music.SoundId = "rbxassetid://4339366148"
  151. music.Volume = 10
  152.  
  153. music.TimePosition = 190
  154.  
  155. music.Looped = true
  156. music:Play()
  157.  
  158. function modeswitch()
  159. spawn(function()
  160. local d = 0
  161. while wait(0.1) do
  162. local chance = math.random(1,100)
  163. if chance < 11 then
  164. local beam = Instance.new("Part")
  165. beam.Size = Vector3.new(1,1,1)
  166. beam.Anchored = true
  167. beam.Color = Color3.fromRGB(120,255,0)
  168. beam.CFrame = CFrame.new(torso.Position - Vector3.new(0,3.5,0) + Vector3.new(math.random(-500,500)/100,0,math.random(-500,500)/100)) * CFrame.Angles(math.rad(math.random(-60,60)),0,math.rad(math.random(-60,60)))
  169. beam.Material = "Neon"
  170. beam.CanCollide = false
  171. beam.Parent = workspace
  172. local spm = Instance.new("SpecialMesh",beam)
  173. spm.MeshType = "Sphere"
  174. spawn(function()
  175. for i=1,5,0.1 do
  176. spm.Scale = spm.Scale + Vector3.new(0.05,0.5*i,0.05)
  177. beam.Transparency = beam.Transparency + 0.02
  178. swait()
  179. end
  180. beam:Destroy()
  181. end)
  182. end
  183. if d > 360 then
  184. d = 0
  185. end
  186. local crown = Instance.new("Part")
  187. crown.Anchored = true
  188. crown.Size = Vector3.new(2,2,2)
  189. crown.Position = torso.Position - Vector3.new(0,3.5,0)
  190. crown.CFrame = crown.CFrame * CFrame.Angles(0,math.rad(d),0)
  191. crown.CanCollide = false
  192. crown.Color = Color3.fromRGB(120,255,0)
  193. crown.Transparency = 0.5
  194. crown.Parent = workspace
  195. local spm = Instance.new("SpecialMesh",crown)
  196. spm.MeshId = crownid
  197. local am = math.random(-3,3)
  198. local am0 = math.random(2,4)
  199. local am1 = math.random(-80,80)/100
  200. local am2 = math.random(-80,80)/100
  201. spawn(function()
  202. for i=1,5,0.1 do
  203. crown.Transparency = crown.Transparency + 0.012
  204. crown.CFrame = crown.CFrame * CFrame.Angles(math.rad(am1),math.rad(am),math.rad(am2))
  205. spm.Scale = spm.Scale + Vector3.new((am0/30)*i,(am0/30)*i/5,(am0/30)*i)
  206. swait()
  207. end
  208. crown:Destroy()
  209. end)
  210. d = d + 2
  211. end
  212. end)
  213. end
  214.  
  215. local speed = 0
  216.  
  217. local prevhp = 1000
  218.  
  219. local dashing = false
  220.  
  221. local tpos = 0
  222. local moded = false
  223. spawn(function()
  224. while wait(0.05) do
  225. tpos = music.TimePosition
  226. if tpos > 216.07441929324295415 and not moded then
  227. moded = true
  228. modeswitch()
  229. end
  230. end
  231. end)
  232.  
  233. local uplifted = false
  234.  
  235. local superdashing = false
  236.  
  237. local blasting = false
  238.  
  239. spawn(function()
  240. while wait(0.05) do
  241. healthboost = 3 - char.Humanoid.Health/500
  242. pos = torso.CFrame + v3(0,2,0)
  243. end
  244. end)
  245.  
  246. char.Humanoid.Running:Connect(function(speeed)
  247. speed = speeed
  248. end)
  249.  
  250. spawn(function()
  251. local o = 0
  252. local right = false
  253. local p = 0
  254. while not dead do
  255. local q = rand(1,5)
  256. local e = rand(1,5)
  257. if o>1 then
  258. o=0
  259. end
  260. if p>10 then
  261. right = false
  262. elseif p<-10 then
  263. right = true
  264. end
  265. o=o+0.05
  266. wait(0.05)
  267. end
  268. end)
  269.  
  270. function torsotouched(h)
  271. if dashing then
  272. if h.Parent then
  273. if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char and h.Parent:FindFirstChild("Head") and not released and h.Name ~= "M0" then
  274. released = true
  275. stop = true
  276. local percent = rand(1,100)
  277. local chance = rand(10,30)
  278. if percent < chance and percent > 10 then
  279. if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  280. h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  281. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(chance/10)*(deathboost*healthboost))
  282. else
  283. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(chance/10)*(deathboost*healthboost))
  284. end
  285. local effect0 = it("Part")
  286. effect0.Color = Color3.fromHSV(0,1,1)
  287. effect0.Material = "Neon"
  288. effect0.Size = v3(1,1,1)
  289. effect0.CFrame = h.Parent.Head.CFrame
  290. effect0.Anchored = true
  291. effect0.CanCollide = false
  292. effect0.Parent = workspace
  293. local effect1 = it("Part")
  294. effect1.Color = Color3.fromHSV(0,1,1)
  295. effect1.Size = v3(2,2,2)
  296. effect1.CFrame = h.Parent.Head.CFrame
  297. effect1.Anchored = false
  298. effect1.CanCollide = false
  299. effect1.Parent = workspace
  300. local effect2 = it("Part")
  301. effect2.Color = Color3.fromHSV(0,1,1)
  302. effect2.Size = v3(2,2,2)
  303. effect2.CFrame = h.Parent.Head.CFrame
  304. effect2.Anchored = false
  305. effect2.CanCollide = false
  306. effect2.Parent = workspace
  307.  
  308. local bpos = it("BodyPosition",effect1)
  309. bpos.MaxForce = v3(huge,huge,huge)
  310. bpos.Position = effect1.Position
  311. local bpos0 = it("BodyPosition",effect2)
  312. bpos0.MaxForce = v3(huge,huge,huge)
  313. bpos0.Position = effect2.Position
  314.  
  315. local angvel = it("BodyAngularVelocity",effect1)
  316. angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  317.  
  318. local angvel0 = it("BodyAngularVelocity",effect2)
  319. angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  320.  
  321. local mesh0 = it("SpecialMesh",effect0)
  322. mesh0.MeshType = "Sphere"
  323. local mesh1 = it("SpecialMesh",effect1)
  324. mesh1.MeshId = ring0id
  325. mesh1.Scale = effect1.Size
  326. local mesh2 = it("SpecialMesh",effect2)
  327. mesh2.MeshId = ring0id
  328. mesh2.Scale = effect2.Size
  329. local o = 0
  330. spawn(function()
  331. p = 0
  332. textlabel.Text = "CRIT " .. percent .. "%"
  333. for i=1,25 do
  334. if p>1 then
  335. p=0
  336. end
  337. textlabel.TextColor3 = Color3.fromHSV(p,1,1)
  338. textlabel.TextTransparency = textlabel.TextTransparency + 0.04
  339. textlabel.Rotation = textlabel.Rotation + 1.2
  340. billboardgui.StudsOffset = billboardgui.StudsOffset + v3(0,0.2,0)
  341. p=p+0.03
  342. swait()
  343. end
  344. textlabel.Text = ""
  345. textlabel.TextTransparency = 0
  346. textlabel.Rotation = 0
  347. billboardgui.StudsOffset = v3(0,2,0)
  348. end)
  349. for i=1,25 do
  350. effect0.Size = effect0.Size + v3(0.5,0.5,0.5)
  351. mesh1.Scale = mesh1.Scale + v3(0.7,0.7,0.7)
  352. mesh2.Scale = mesh2.Scale + v3(0.7,0.7,0.7)
  353. effect0.Transparency = effect0.Transparency + 0.04
  354. effect1.Transparency = effect1.Transparency + 0.04
  355. effect2.Transparency = effect2.Transparency + 0.04
  356. effect0.Color = Color3.fromHSV(o,1,1)
  357. effect1.Color = Color3.fromHSV(o,1,1)
  358. effect2.Color = Color3.fromHSV(o,1,1)
  359. o = o + 0.03
  360. swait()
  361. end
  362. effect0:Destroy()
  363. effect1:Destroy()
  364. effect2:Destroy()
  365. elseif percent < 10 then
  366. if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  367. h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  368. h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  369. h.Parent:BreakJoints()
  370. else
  371. h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  372. h.Parent:BreakJoints()
  373. end
  374. h.Parent:FindFirstChildOfClass("Humanoid"):Destroy()
  375. local effect0 = it("Part")
  376. effect0.Color = Color3.fromHSV(0,1,1)
  377. effect0.Material = "Neon"
  378. effect0.Size = v3(1,1,1)
  379. effect0.CFrame = h.Parent.Head.CFrame
  380. effect0.Anchored = true
  381. effect0.CanCollide = false
  382. effect0.Parent = workspace
  383. local effect1 = it("Part")
  384. effect1.Color = Color3.fromHSV(0,1,1)
  385. effect1.Size = v3(2,2,2)
  386. effect1.CFrame = h.Parent.Head.CFrame
  387. effect1.Anchored = false
  388. effect1.CanCollide = false
  389. effect1.Parent = workspace
  390. local effect2 = it("Part")
  391. effect2.Color = Color3.fromHSV(0,1,1)
  392. effect2.Size = v3(2,2,2)
  393. effect2.CFrame = h.Parent.Head.CFrame
  394. effect2.Anchored = false
  395. effect2.CanCollide = false
  396. effect2.Parent = workspace
  397.  
  398. local bpos = it("BodyPosition",effect1)
  399. bpos.MaxForce = v3(huge,huge,huge)
  400. bpos.Position = effect1.Position
  401. local bpos0 = it("BodyPosition",effect2)
  402. bpos0.MaxForce = v3(huge,huge,huge)
  403. bpos0.Position = effect2.Position
  404.  
  405. local angvel = it("BodyAngularVelocity",effect1)
  406. angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  407.  
  408. local angvel0 = it("BodyAngularVelocity",effect2)
  409. angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  410.  
  411. local mesh0 = it("SpecialMesh",effect0)
  412. mesh0.MeshType = "Sphere"
  413. local mesh1 = it("SpecialMesh",effect1)
  414. mesh1.MeshId = ring0id
  415. mesh1.Scale = effect1.Size
  416. local mesh2 = it("SpecialMesh",effect2)
  417. mesh2.MeshId = ring0id
  418. mesh2.Scale = effect2.Size
  419. local o = 0
  420. spawn(function()
  421. p = 0
  422. textlabel.Text = "ACE CRIT"
  423. for i=1,25 do
  424. if p>1 then
  425. p=0
  426. end
  427. textlabel.TextColor3 = Color3.fromHSV(p,1,1)
  428. textlabel.TextTransparency = textlabel.TextTransparency + 0.04
  429. textlabel.Rotation = textlabel.Rotation + 1.2
  430. billboardgui.StudsOffset = billboardgui.StudsOffset + v3(0,0.2,0)
  431. p=p+0.2
  432. swait()
  433. end
  434. textlabel.Text = ""
  435. textlabel.TextTransparency = 0
  436. textlabel.Rotation = 0
  437. billboardgui.StudsOffset = v3(0,2,0)
  438. end)
  439. h.Parent.Head:Destroy()
  440. for i=1,25 do
  441. if o>1 then
  442. o=0
  443. end
  444. effect0.Size = effect0.Size + v3(2.5,2.5,2.5)
  445. mesh1.Scale = mesh1.Scale + v3(2.7,2.7,2.7)
  446. mesh2.Scale = mesh2.Scale + v3(2.7,2.7,2.7)
  447. effect0.Transparency = effect0.Transparency + 0.04
  448. effect1.Transparency = effect1.Transparency + 0.04
  449. effect2.Transparency = effect2.Transparency + 0.04
  450. effect0.Color = Color3.fromHSV(o,1,1)
  451. effect1.Color = Color3.fromHSV(o,1,1)
  452. effect2.Color = Color3.fromHSV(o,1,1)
  453. o = o + 0.2
  454. swait()
  455. end
  456. effect0:Destroy()
  457. effect1:Destroy()
  458. effect2:Destroy()
  459. else
  460. if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  461. h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  462. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10)*(deathboost*healthboost))
  463. else
  464. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10)*(deathboost*healthboost))
  465. end
  466. local effect0 = it("Part")
  467. effect0.Color = col(0,0,0)
  468. effect0.Material = "Neon"
  469. effect0.Size = v3(1,1,1)
  470. effect0.CFrame = torso.CFrame
  471. effect0.Anchored = true
  472. effect0.CanCollide = false
  473. effect0.Parent = workspace
  474. local effect1 = it("Part")
  475. effect1.Color = col(0,0,0)
  476. effect1.Size = v3(2,2,2)
  477. effect1.CFrame = torso.CFrame
  478. effect1.Anchored = false
  479. effect1.CanCollide = false
  480. effect1.Parent = workspace
  481. local effect2 = it("Part")
  482. effect2.Color = col(0,0,0)
  483. effect2.Size = v3(2,2,2)
  484. effect2.CFrame = torso.CFrame
  485. effect2.Anchored = false
  486. effect2.CanCollide = false
  487. effect2.Parent = workspace
  488.  
  489. local bpos = it("BodyPosition",effect1)
  490. bpos.MaxForce = v3(huge,huge,huge)
  491. bpos.Position = effect1.Position
  492. local bpos0 = it("BodyPosition",effect2)
  493. bpos0.MaxForce = v3(huge,huge,huge)
  494. bpos0.Position = effect2.Position
  495.  
  496. local angvel = it("BodyAngularVelocity",effect1)
  497. angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  498.  
  499. local angvel0 = it("BodyAngularVelocity",effect2)
  500. angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  501.  
  502. local mesh0 = it("SpecialMesh",effect0)
  503. mesh0.MeshType = "Sphere"
  504. local mesh1 = it("SpecialMesh",effect1)
  505. mesh1.MeshId = ring0id
  506. mesh1.Scale = effect1.Size
  507. local mesh2 = it("SpecialMesh",effect2)
  508. mesh2.MeshId = ring0id
  509. mesh2.Scale = effect2.Size
  510. local o = 0
  511. for i=1,25 do
  512. effect0.Size = effect0.Size + v3(0.5,0.5,0.5)
  513. mesh1.Scale = mesh1.Scale + v3(0.7,0.7,0.7)
  514. mesh2.Scale = mesh2.Scale + v3(0.7,0.7,0.7)
  515. effect0.Transparency = effect0.Transparency + 0.04
  516. effect1.Transparency = effect1.Transparency + 0.04
  517. effect2.Transparency = effect2.Transparency + 0.04
  518. o = o + 0.03
  519. swait()
  520. end
  521. effect0:Destroy()
  522. effect1:Destroy()
  523. effect2:Destroy()
  524. end
  525. wait(0.05)
  526. stop = false
  527. released = false
  528. end
  529. end
  530. elseif superdashing then
  531. if h.Parent then
  532. if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char and h.Parent:FindFirstChild("Head") and not released and h.Name ~= "M0" then
  533. released = true
  534. stop = true
  535. if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  536. h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  537. h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  538. h.Parent:BreakJoints()
  539. else
  540. h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  541. h.Parent:BreakJoints()
  542. end
  543. h.Parent:FindFirstChildOfClass("Humanoid"):Destroy()
  544. local effect0 = it("Part")
  545. effect0.Color = Color3.fromHSV(0,1,1)
  546. effect0.Material = "Neon"
  547. effect0.Size = v3(1,1,1)
  548. effect0.CFrame = h.Parent.Head.CFrame
  549. effect0.Anchored = true
  550. effect0.CanCollide = false
  551. effect0.Parent = workspace
  552. local effect1 = it("Part")
  553. effect1.Color = Color3.fromHSV(0,1,1)
  554. effect1.Size = v3(2,2,2)
  555. effect1.CFrame = h.Parent.Head.CFrame
  556. effect1.Anchored = false
  557. effect1.CanCollide = false
  558. effect1.Parent = workspace
  559. local effect2 = it("Part")
  560. effect2.Color = Color3.fromHSV(0,1,1)
  561. effect2.Size = v3(2,2,2)
  562. effect2.CFrame = h.Parent.Head.CFrame
  563. effect2.Anchored = false
  564. effect2.CanCollide = false
  565. effect2.Parent = workspace
  566.  
  567. local bpos = it("BodyPosition",effect1)
  568. bpos.MaxForce = v3(huge,huge,huge)
  569. bpos.Position = effect1.Position
  570. local bpos0 = it("BodyPosition",effect2)
  571. bpos0.MaxForce = v3(huge,huge,huge)
  572. bpos0.Position = effect2.Position
  573.  
  574. local angvel = it("BodyAngularVelocity",effect1)
  575. angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  576.  
  577. local angvel0 = it("BodyAngularVelocity",effect2)
  578. angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  579.  
  580. local mesh0 = it("SpecialMesh",effect0)
  581. mesh0.MeshType = "Sphere"
  582. local mesh1 = it("SpecialMesh",effect1)
  583. mesh1.MeshId = ring0id
  584. mesh1.Scale = effect1.Size
  585. local mesh2 = it("SpecialMesh",effect2)
  586. mesh2.MeshId = ring0id
  587. mesh2.Scale = effect2.Size
  588.  
  589. spawn(function()
  590. for i=1,rand(3,7) do
  591. local debris = it("Part")
  592. debris.Material = h.Material
  593. debris.Color = h.Color
  594. debris.Size = v3(h.Size.X-(rand(-40,60)/10),h.Size.Y-(rand(-40,60)/10),h.Size.Z-(rand(-40,60)/10))
  595. debris.CFrame = h.CFrame
  596. debris.Parent = workspace
  597.  
  598. local velo = it("BodyVelocity",debris)
  599. velo.MaxForce = v3(huge,huge,huge)
  600. velo.Velocity = v3(rand(-100,100),rand(-100,100),rand(-100,100))
  601.  
  602. game:GetService("Debris"):AddItem(debris,5)
  603. spawn(function()
  604. wait(1)
  605. velo:Destroy()
  606. end)
  607. wait(rand(100,700)/10000)
  608. end
  609. end)
  610.  
  611. local o = 0
  612. spawn(function()
  613. p = 0
  614. textlabel.Text = "ACE DASH"
  615. for i=1,25 do
  616. if p>1 then
  617. p=0
  618. end
  619. textlabel.TextColor3 = Color3.fromHSV(p,1,1)
  620. textlabel.TextTransparency = textlabel.TextTransparency + 0.04
  621. textlabel.Rotation = textlabel.Rotation + 1.2
  622. billboardgui.StudsOffset = billboardgui.StudsOffset + v3(0,0.2,0)
  623. p=p+0.2
  624. swait()
  625. end
  626. textlabel.Text = ""
  627. textlabel.TextTransparency = 0
  628. textlabel.Rotation = 0
  629. billboardgui.StudsOffset = v3(0,2,0)
  630. end)
  631. h.Parent.Head:Destroy()
  632. for i=1,25 do
  633. if o>1 then
  634. o=0
  635. end
  636. effect0.Size = effect0.Size + v3(2.5,2.5,2.5)
  637. mesh1.Scale = mesh1.Scale + v3(2.7,2.7,2.7)
  638. mesh2.Scale = mesh2.Scale + v3(2.7,2.7,2.7)
  639. effect0.Transparency = effect0.Transparency + 0.04
  640. effect1.Transparency = effect1.Transparency + 0.04
  641. effect2.Transparency = effect2.Transparency + 0.04
  642. effect0.Color = Color3.fromHSV(o,1,1)
  643. effect1.Color = Color3.fromHSV(o,1,1)
  644. effect2.Color = Color3.fromHSV(o,1,1)
  645. o = o + 0.2
  646. swait()
  647. end
  648. effect0:Destroy()
  649. effect1:Destroy()
  650. effect2:Destroy()
  651. released = false
  652. stop = false
  653. elseif h.Name ~= "Base" and h.Name ~= "M0" and h.Size.X < 400 and h.Size.Y < 400 and h.Size.Z < 400 and not released then
  654. released = true
  655. stop = true
  656.  
  657. h.Anchored = false
  658.  
  659. local effect0 = it("Part")
  660. effect0.Color = Color3.fromHSV(0,1,1)
  661. effect0.Material = "Neon"
  662. effect0.Size = v3(1,1,1)
  663. effect0.CFrame = torso.CFrame
  664. effect0.Anchored = true
  665. effect0.CanCollide = false
  666. effect0.Parent = workspace
  667. local effect1 = it("Part")
  668. effect1.Color = Color3.fromHSV(0,1,1)
  669. effect1.Size = v3(2,2,2)
  670. effect1.CFrame = torso.CFrame
  671. effect1.Anchored = false
  672. effect1.CanCollide = false
  673. effect1.Parent = workspace
  674. local effect2 = it("Part")
  675. effect2.Color = Color3.fromHSV(0,1,1)
  676. effect2.Size = v3(2,2,2)
  677. effect2.CFrame = torso.CFrame
  678. effect2.Anchored = false
  679. effect2.CanCollide = false
  680. effect2.Parent = workspace
  681.  
  682. local bpos = it("BodyPosition",effect1)
  683. bpos.MaxForce = v3(huge,huge,huge)
  684. bpos.Position = effect1.Position
  685. local bpos0 = it("BodyPosition",effect2)
  686. bpos0.MaxForce = v3(huge,huge,huge)
  687. bpos0.Position = effect2.Position
  688.  
  689. local angvel = it("BodyAngularVelocity",effect1)
  690. angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  691.  
  692. local angvel0 = it("BodyAngularVelocity",effect2)
  693. angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
  694.  
  695. local mesh0 = it("SpecialMesh",effect0)
  696. mesh0.MeshType = "Sphere"
  697. local mesh1 = it("SpecialMesh",effect1)
  698. mesh1.MeshId = ring0id
  699. mesh1.Scale = effect1.Size
  700. local mesh2 = it("SpecialMesh",effect2)
  701. mesh2.MeshId = ring0id
  702. mesh2.Scale = effect2.Size
  703.  
  704. spawn(function()
  705. for i=1,rand(3,7) do
  706. local debris = it("Part")
  707. debris.Material = h.Material
  708. debris.Color = h.Color
  709. debris.Size = v3(h.Size.X-(rand(-40,60)/10),h.Size.Y-(rand(-40,60)/10),h.Size.Z-(rand(-40,60)/10))
  710. debris.CFrame = h.CFrame
  711. debris.Parent = workspace
  712.  
  713. local velo = it("BodyVelocity",debris)
  714. velo.MaxForce = v3(huge,huge,huge)
  715. velo.Velocity = v3(rand(-100,100),rand(-100,100),rand(-100,100))
  716.  
  717. game:GetService("Debris"):AddItem(debris,5)
  718. spawn(function()
  719. wait(1)
  720. velo:Destroy()
  721. end)
  722. wait(rand(100,700)/10000)
  723. end
  724. end)
  725. local o=0
  726. for i=1,25 do
  727. if o>1 then
  728. o=0
  729. end
  730. effect0.Size = effect0.Size + v3(2.5,2.5,2.5)
  731. mesh1.Scale = mesh1.Scale + v3(2.7,2.7,2.7)
  732. mesh2.Scale = mesh2.Scale + v3(2.7,2.7,2.7)
  733. effect0.Transparency = effect0.Transparency + 0.04
  734. effect1.Transparency = effect1.Transparency + 0.04
  735. effect2.Transparency = effect2.Transparency + 0.04
  736. effect0.Color = Color3.fromHSV(o,1,1)
  737. effect1.Color = Color3.fromHSV(o,1,1)
  738. effect2.Color = Color3.fromHSV(o,1,1)
  739. o = o + 0.2
  740. swait()
  741. end
  742. effect0:Destroy()
  743. effect1:Destroy()
  744. effect2:Destroy()
  745. released = false
  746. stop = false
  747. end
  748. end
  749. end
  750. end
  751.  
  752. function fix()
  753. owner:LoadCharacter()
  754.  
  755. deathboost = deathboost + 0.5
  756.  
  757. torso = nil
  758. plr = owner
  759. char = owner.Character
  760. head = owner.Character.Head
  761. if owner.Character:FindFirstChild("Torso") then
  762. torso = owner.Character:FindFirstChild("Torso")
  763. else
  764. torso = owner.Character:FindFirstChild("UpperTorso")
  765. end
  766.  
  767. billboardgui = Instance.new("BillboardGui", head)
  768. textlabel = Instance.new("TextBox")
  769. textlabel.Name = "TxtLabel"
  770. billboardgui.Name = "Billboard"
  771.  
  772. textlabel.BackgroundTransparency = 1
  773. textlabel.Font = Enum.Font.Arcade
  774. textlabel.Text = ""
  775. textlabel.TextColor3 = Color3.fromRGB(120,255,0)
  776. textlabel.BorderSizePixel = 0
  777. textlabel.Size = UDim2.new(2,0,2,0)
  778. textlabel.Position = UDim2.new(0.15,0,-0.7,0)
  779. textlabel.Parent = billboardgui
  780. textlabel.TextScaled = true
  781. billboardgui.StudsOffset = Vector3.new(0,2,0)
  782. billboardgui.Size = UDim2.new(10,0,3,0)
  783.  
  784. char.Humanoid.MaxHealth = 1000
  785. char.Humanoid.Health = 1000
  786.  
  787. char.HumanoidRootPart.CFrame = cf(pos.Position)
  788.  
  789. local music = Instance.new("Sound",owner.Character.Head)
  790. music.SoundId = "rbxassetid://4339366148"
  791. music.Volume = 10
  792. music.Looped = true
  793. music.TimePosition = tpos
  794. music:Play()
  795.  
  796. dead = false
  797.  
  798. local moded = false
  799. spawn(function()
  800. while wait(0.05) do
  801. tpos = music.TimePosition
  802. if tpos > 216.07441929324295415 and not moded then
  803. moded = true
  804. modeswitch()
  805. end
  806. end
  807. end)
  808.  
  809. torso.Touched:Connect(torsotouched)
  810.  
  811. spawn(function()
  812. local o = 0
  813. local right = false
  814. local p = 0
  815. while not dead do
  816. local q = rand(1,5)
  817. local e = rand(1,5)
  818. if o>1 then
  819. o=0
  820. end
  821. if p>10 then
  822. right = false
  823. elseif p<-10 then
  824. right = true
  825. end
  826. if right then
  827. p = p + 0.2
  828. else
  829. p = p - 0.2
  830. end
  831. o=o+0.05
  832. wait(0.05)
  833. end
  834. end)
  835.  
  836. char.Humanoid.Died:Connect(function()
  837. for _,v in pairs(char:GetDescendants()) do
  838. if v:IsA("Part") then
  839. v.Anchored = false
  840. v.Material = "Neon"
  841. v.Color = Color3.fromRGB(120,255,0)
  842. local bp = Instance.new("BodyPosition",v)
  843. bp.Position = v.Position + Vector3.new(math.random(-300,300)/300,math.random(-300,300)/300,math.random(-300,300)/300)
  844. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  845. elseif v:IsA("CharacterMesh") then
  846. v:Destroy()
  847. elseif v:IsA("SpecialMesh") then
  848. v:Destroy()
  849. elseif v:IsA("Shirt") then
  850. v:Destroy()
  851. elseif v:IsA("Accessory") then
  852. v:Destroy()
  853. elseif v:IsA("Pants") then
  854. v:Destroy()
  855. end
  856. end
  857. end)
  858.  
  859. local bill = it("BillboardGui", head)
  860. local text = it("TextLabel", bill)
  861. bill.StudsOffset = v3(0,-2,0)
  862. text.Size = UDim2.new(0.7,0,0.8,0)
  863. text.Position = UDim2.new(0.45,0,-0.05,0)
  864. text.Text = ">INITIATING RESTORATION SEQUENCE"
  865. text.Font = Enum.Font.Arcade
  866. text.TextScaled = true
  867. text.AnchorPoint = Vector2.new(0.5,0.5)
  868. text.TextColor3 = Color3.fromHSV(0,1,1)
  869. bill.Size = UDim2.new(10,0,3,0)
  870. text.BackgroundTransparency = 1
  871. spawn(function()
  872. local o=0
  873. for i=1, 80 do
  874. if o>1 then
  875. o=0
  876. end
  877. text.Rotation = text.Rotation + 0.5
  878. text.Size = text.Size + UDim2.new(0.005,0,0.005,0)
  879. bill.StudsOffset = bill.StudsOffset + v3(0,0.025,0)
  880. text.TextColor3 = Color3.fromHSV(o,1,1)
  881. o=o+0.05
  882. swait()
  883. end
  884. for i=1, 80 do
  885. if o>1 then
  886. o=0
  887. end
  888. text.Rotation = text.Rotation + 0.5
  889. text.Size = text.Size + UDim2.new(0.005,0,0.005,0)
  890. bill.StudsOffset = bill.StudsOffset + v3(0,0.025,0)
  891. text.TextColor3 = Color3.fromHSV(o,1,1)
  892. text.TextTransparency = text.TextTransparency + 0.0125
  893. o=o+0.05
  894. swait()
  895. end
  896. end)
  897.  
  898. for i=1,0,-0.01 do
  899. local a = rand(1,5)
  900. if a == 5 then
  901. local part = it("Part")
  902. part.Material = "Neon"
  903. local colr = rand(1,3)
  904. if colr==1 then
  905. part.Color = col(0,1,0)
  906. elseif colr==2 then
  907. part.Color = col(1,0,0)
  908. elseif colr==3 then
  909. part.Color = col(0,0,1)
  910. end
  911. part.Transparency = 1
  912. part.Anchored = true
  913. part.CanCollide = false
  914. part.Size = v3(rand(200,400)/100,rand(100,200)/100,rand(100,200)/100)
  915. part.Position = torso.Position + v3(rand(-800,800)/100,rand(-300,300)/100,rand(-800,800)/100)
  916. part.Parent = workspace
  917.  
  918. local eff = part:Clone()
  919. eff.Position = torso.Position + v3(rand(-800,800)/100,-3,rand(-800,800)/100)
  920. eff.Parent = workspace
  921.  
  922. local wai = rand(20,40)/10
  923. game:GetService("Debris"):AddItem(part,wai)
  924. game:GetService("Debris"):AddItem(eff,wai)
  925. spawn(function()
  926. local speed = rand(20,40)/100
  927. for i=1,wai*100 do
  928. part.Transparency = rand(0,100)/100
  929. eff.Transparency = rand(0,100)/100
  930. eff.Position = eff.Position + v3(0,speed,0)
  931. if dead then
  932. break
  933. end
  934. swait()
  935. end
  936. end)
  937. end
  938.  
  939. for _,v in pairs(char:GetDescendants()) do
  940. if v:IsA("Part") or v:IsA("MeshPart") then
  941. if v.Name ~= "HumanoidRootPart" then
  942. v.Transparency = i + rand(-10,10)/200
  943. local mat = rand(1,3)
  944. if mat==1 then
  945. v.Material = "Neon"
  946. elseif mat==2 then
  947. v.Material = "Glass"
  948. elseif mat==3 then
  949. v.Material = "ForceField"
  950. end
  951. end
  952. end
  953. end
  954. swait()
  955. end
  956. for _,v in pairs(char:GetDescendants()) do
  957. if v:IsA("Part") or v:IsA("MeshPart") then
  958. if v.Name ~= "HumanoidRootPart" then
  959. v.Material = "Plastic"
  960. v.Transparency = 0
  961. end
  962. end
  963. end
  964. end
  965.  
  966. function parentchanged()
  967. if char.Parent ~= workspace then
  968. dead = true
  969. repeat swait() until owner.Character
  970. fix()
  971. char:GetPropertyChangedSignal("Parent"):Connect(parentchanged)
  972. end
  973. end
  974.  
  975. char:GetPropertyChangedSignal("Parent"):Connect(parentchanged)
  976.  
  977. char.Humanoid.Died:Connect(function()
  978. wait(0.2)
  979. for _,v in pairs(char:GetDescendants()) do
  980. if v:IsA("Part") then
  981. v.Anchored = false
  982. v.Material = "Neon"
  983. v.Color = Color3.fromRGB(120,255,0)
  984. local bp = Instance.new("BodyPosition",v)
  985. bp.Position = v.Position + Vector3.new(math.random(-300,300)/300,math.random(-300,300)/300,math.random(-300,300)/300)
  986. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  987. elseif v:IsA("CharacterMesh") then
  988. v:Destroy()
  989. elseif v:IsA("SpecialMesh") then
  990. v:Destroy()
  991. elseif v:IsA("Shirt") then
  992. v:Destroy()
  993. elseif v:IsA("Accessory") then
  994. v:Destroy()
  995. elseif v:IsA("Pants") then
  996. v:Destroy()
  997. end
  998. end
  999. end)
  1000.  
  1001. char.Humanoid.HealthChanged:Connect(function()
  1002. if char.Humanoid.Health < prevhp then
  1003. if blocking and not blasting then
  1004. blasting = true
  1005. local amount = prevhp - char.Humanoid.Health
  1006. char.Humanoid:TakeDamage(-(amount/2))
  1007. local part = it("Part")
  1008. part.Transparency = 1
  1009. part.Material = "ForceField"
  1010. part.Size = v3(1,1,1)
  1011. part.CFrame = torso.CFrame
  1012. part.Color = Color3.fromHSV(0,1,1)
  1013. part.Anchored = true
  1014. part.CanCollide = false
  1015. part.Parent = workspace
  1016. local mesh = it("SpecialMesh",part)
  1017. mesh.MeshType = "Sphere"
  1018. part.Touched:Connect(function(h)
  1019. if h.Parent then
  1020. if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char and not h.Parent:FindFirstChild("Hit") then
  1021. local hit = it("BoolValue",h.Parent)
  1022. hit.Name = "Hit"
  1023. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((amount/4)*(deathboost*healthboost))
  1024. end
  1025. end
  1026. end)
  1027. for i=1,10 do
  1028. part.Size = part.Size + Vector3.new(0.1,0.1,0.1)
  1029. part.Transparency = part.Transparency - 0.1
  1030. swait()
  1031. end
  1032. blasting = false
  1033. local o = 0
  1034. for i=1,50 do
  1035. if o > 1 then
  1036. o = 0
  1037. end
  1038. part.Color = Color3.fromHSV(o,1,1)
  1039. o = o + 0.02
  1040. part.Size = part.Size + Vector3.new(0.5,0.5,0.5)
  1041. part.Transparency = part.Transparency + 0.02
  1042. swait()
  1043. end
  1044. part:Destroy()
  1045. end
  1046. end
  1047. prevhp = char.Humanoid.Health
  1048. end)
  1049.  
  1050. local released = false
  1051. local stop = false
  1052.  
  1053. torso.Touched:Connect(torsotouched)
  1054.  
  1055. p.OnServerEvent:Connect(function(plr,key)
  1056. if key == Enum.KeyCode.Q then
  1057. if not orbsummoned then
  1058. orbsummoned = true
  1059. local orb = it("Part")
  1060. orb.Shape = "Ball"
  1061. orb.CFrame = torso.CFrame + torso.CFrame.upVector * 6
  1062. orb.Size = v3(1,1,1)
  1063. orb.Material = "Neon"
  1064. orb.Parent = char
  1065.  
  1066. local parte = it("ParticleEmitter")
  1067. parte.Size = numse(1.5,0)
  1068. parte.Texture = glow
  1069. parte.Transparency = numse(0.2,0.3)
  1070. parte.Parent = orb
  1071. parte.Lifetime = numra(0.8)
  1072. parte.LightEmission = 0.6
  1073. parte.Rate = 500
  1074.  
  1075. spawn(function()
  1076. while orb.Parent do
  1077. local from = orb.Color
  1078. local to = Color3.fromRGB(255,80,0)
  1079. for i=0,1,0.05 do
  1080. swait()
  1081. orb.Color = from:Lerp(to,i)
  1082. parte.Color = ColorSequence.new(from:Lerp(to,i))
  1083. end
  1084. local from = orb.Color
  1085. local to = Color3.fromRGB(120,255,0)
  1086. for i=0,1,0.05 do
  1087. swait()
  1088. orb.Color = from:Lerp(to,i)
  1089. parte.Color = ColorSequence.new(from:Lerp(to,i))
  1090. end
  1091. swait()
  1092. end
  1093. end)
  1094.  
  1095. local bodyp = it("BodyPosition")
  1096. bodyp.D = 500
  1097. bodyp.P = 10000
  1098. bodyp.MaxForce = v3(huge,huge,huge)
  1099. bodyp.Position = orb.Position
  1100. bodyp.Parent = orb
  1101.  
  1102. spawn(function()
  1103. while orb.Parent do
  1104. bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
  1105. for _,v in pairs(workspace:GetChildren()) do
  1106. if v:FindFirstChildOfClass("Humanoid") and v ~= char then
  1107. if v:FindFirstChild("Head") then
  1108. local mag = (orb.Position - v.Head.Position).magnitude
  1109. if mag < 70 then
  1110. local ray = Ray.new(orb.Position, v.Head.Position)
  1111. local part, position = workspace:FindPartOnRay(ray,char,false,true)
  1112. local beam = it("Part")
  1113. beam.Anchored = true
  1114. beam.Material = "Neon"
  1115. beam.Size = v3(1,1,((orb.Position - v.Head.Position).magnitude + 1)/10)
  1116. local val = ((orb.Position - v.Head.Position).magnitude+5)
  1117. beam.CFrame = CFrame.new(orb.Position, v.Head.Position) * CFrame.new(0, 0, -val+(val/1))
  1118. beam.Color = Color3.fromRGB(120,255,0)
  1119. beam.CanCollide = false
  1120. beam.Parent = workspace
  1121. local from = orb.Color
  1122. local to = Color3.fromRGB(255,80,0)
  1123. beam.Touched:Connect(function(h)
  1124. if h.Parent then
  1125. if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char then
  1126. if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  1127. h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  1128. h.Parent:FindFirstChildOfClass("Humanoid").Health = 100000
  1129. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((1+((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/20000)*1.8)*(deathboost*healthboost)))
  1130. else
  1131. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((1+((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/20000)*1.8)*(deathboost*healthboost)))
  1132. end
  1133. end
  1134. end
  1135. end)
  1136. spawn(function()
  1137. local p = 1
  1138. local o = 10
  1139. for i=10,1,-1 do
  1140. beam.Size = v3(1,1,((orb.Position - v.Head.Position).magnitude + 1)/o)
  1141. beam.CFrame = CFrame.new(orb.Position, v.Head.Position) * CFrame.new(0, 0, -val+(val/p))
  1142. o = o - 1
  1143. p = p + 0.1
  1144. swait()
  1145. end
  1146. end)
  1147. spawn(function()
  1148. for i=0,1,0.02 do
  1149. beam.Transparency = beam.Transparency + 0.02
  1150. beam.Color = from:Lerp(to,i)
  1151. swait()
  1152. end
  1153. beam:Destroy()
  1154. end)
  1155. end
  1156. end
  1157. end
  1158. end
  1159. wait(0.05)
  1160. bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
  1161. wait(0.05)
  1162. bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
  1163. wait(0.05)
  1164. bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
  1165. wait(0.05)
  1166. end
  1167. end)
  1168. wait(5)
  1169. orb:Destroy()
  1170. orbsummoned = false
  1171. end
  1172. elseif key == Enum.KeyCode.C then
  1173. local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -1000)
  1174. local part, pos = workspace:FindPartOnRayWithIgnoreList(ray, owner.Character:GetChildren())
  1175. local range = (torso.Position-pos).magnitude
  1176. local size = range
  1177. if range > 100 and not uplifted then
  1178. uplifted = true
  1179. local b = it("BodyPosition",torso)
  1180. b.MaxForce = v3(huge,huge,huge)
  1181. b.D = 300
  1182. b.Position = v3(torso.Position.X,3,torso.Position.Z)
  1183. repeat wait() until torso.Position.Y < 5
  1184. b:Destroy()
  1185. for _,v in pairs(workspace:GetChildren()) do
  1186. if v:FindFirstChildOfClass("Humanoid") and v ~= char then
  1187. if v:FindFirstChild("Head") then
  1188. local mag = (head.Position - v.Head.Position).magnitude
  1189. if mag < (size/5)*2 then
  1190. local vel = it("BodyVelocity",v.Head)
  1191. vel.Velocity = v3(0,size*(rand(10,30)/10),0)
  1192. v:FindFirstChildOfClass("Humanoid").Health = 1
  1193. spawn(function()
  1194. wait(1)
  1195. vel:Destroy()
  1196. repeat wait() until v.Head.Position.Y < pos.Y + 5
  1197. v:FindFirstChildOfClass("Humanoid").Health = 0
  1198. end)
  1199. end
  1200. end
  1201. end
  1202. end
  1203. spawn(function()
  1204. local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -100)
  1205. local part,pos = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren())
  1206. for i=1,36 do
  1207. local pa = it("Part")
  1208. pa.Name = "UnanchorMe0"
  1209. pa.CFrame = (char.HumanoidRootPart.CFrame * CFrame.Angles(0,rad(10*i),0) * CFrame.new(size/8,0,0)) * CFrame.Angles(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360))) - v3(0,15,0)
  1210. pa.Anchored = true
  1211. pa.Material = part.Material
  1212. pa.Color = part.Color
  1213. pa.Size = v3(rand(10,12),rand(10,12),rand(10,12))
  1214. pa.Parent = char
  1215. end
  1216. for i=1,30 do
  1217. for _,v in pairs(char:GetChildren()) do
  1218. if v.Name == "UnanchorMe0" then
  1219. v.Position = v.Position + v3(0,0.5,0)
  1220. end
  1221. end
  1222. swait()
  1223. end
  1224. for i=1,36 do
  1225. local pa = it("Part")
  1226. pa.Name = "UnanchorMe1"
  1227. pa.CFrame = (char.HumanoidRootPart.CFrame * CFrame.Angles(0,rad(10*i),0) * CFrame.new(size/5,0,0)) * CFrame.Angles(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360))) - v3(0,30,0)
  1228. pa.Anchored = true
  1229. pa.Material = part.Material
  1230. pa.Color = part.Color
  1231. pa.Size = v3(rand(26,28),rand(26,28),rand(26,28))
  1232. pa.Parent = char
  1233. end
  1234. for i=1,30 do
  1235. for _,v in pairs(char:GetChildren()) do
  1236. if v.Name == "UnanchorMe1" then
  1237. v.Position = v.Position + v3(0,1,0)
  1238. end
  1239. end
  1240. swait()
  1241. end
  1242. for i=1,36 do
  1243. local pa = it("Part")
  1244. pa.Name = "UnanchorMe2"
  1245. pa.CFrame = (char.HumanoidRootPart.CFrame * CFrame.Angles(0,rad(10*i),0) * CFrame.new(size/3,0,0)) * CFrame.Angles(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360))) - v3(0,60,0)
  1246. pa.Anchored = true
  1247. pa.Material = part.Material
  1248. pa.Color = part.Color
  1249. pa.Size = v3(rand(42,52),rand(42,52),rand(42,52))
  1250. pa.Parent = char
  1251. end
  1252. for i=1,30 do
  1253. for _,v in pairs(char:GetChildren()) do
  1254. if v.Name == "UnanchorMe2" then
  1255. v.Position = v.Position + v3(0,2,0)
  1256. end
  1257. end
  1258. swait()
  1259. end
  1260. spawn(function()
  1261. wait(3)
  1262. for _,v in pairs(char:GetChildren()) do
  1263. if v.Name == "UnanchorMe0" or v.Name == "UnanchorMe1" or v.Name == "UnanchorMe2" then
  1264. v.Anchored = false
  1265. v.CanCollide = false
  1266. end
  1267. end
  1268. wait(0.5)
  1269. for _,v in pairs(char:GetChildren()) do
  1270. if v.Name == "UnanchorMe0" or v.Name == "UnanchorMe1" or v.Name == "UnanchorMe2" then
  1271. v:Destroy()
  1272. end
  1273. end
  1274. end)
  1275. end)
  1276. for i=1,rand(12,24) do
  1277. local effect = it("Part")
  1278. effect.Size = v3(size/5,0.1,size/5)
  1279. effect.CFrame = cf(torso.Position) * ang(rad(rand(-30,30)),rad(rand(-360,360)),rad(rand(-30,30)))
  1280. effect.CanCollide = false
  1281. effect.Anchored = true
  1282. effect.Parent = workspace
  1283. local mesh = it("SpecialMesh",effect)
  1284. mesh.MeshId = slice
  1285. mesh.TextureId = white
  1286. mesh.Scale = effect.Size
  1287.  
  1288. local effect0 = it("Part")
  1289. effect0.Size = v3(size/5,0.1,size/5)
  1290. effect0.CFrame = cf(torso.Position) * ang(rad(rand(-5,5)),rad(rand(-360,360)),rad(rand(-5,5)))
  1291. effect0.Color = col(1,1,1)
  1292. effect0.CanCollide = false
  1293. effect0.Anchored = true
  1294. effect0.Parent = workspace
  1295. local mesh0 = it("SpecialMesh",effect0)
  1296. mesh0.MeshId = crownid
  1297. mesh0.Scale = effect.Size
  1298. spawn(function()
  1299. local am = rand(-size/2,size/2)/10
  1300. for i=1,50 do
  1301. effect.CFrame = effect.CFrame * ang(0,rad(am),0)
  1302. effect.Transparency = effect.Transparency + 0.02
  1303. mesh.Scale = mesh.Scale + v3(size/500,size/500,size/500)
  1304. effect0.CFrame = effect0.CFrame * ang(0,rad(am),0)
  1305. mesh0.Scale = mesh0.Scale + v3(math.abs(am/5),math.abs(am/5),math.abs(am/5))
  1306. effect0.Transparency = effect0.Transparency + 0.02
  1307. swait()
  1308. end
  1309. effect:Destroy()
  1310. effect:Destroy()
  1311. end)
  1312. swait()
  1313. end
  1314. wait(1)
  1315. uplifted = false
  1316. end
  1317. elseif key == Enum.KeyCode.X then
  1318. local hit = l:InvokeClient(owner)
  1319. local effect0 = it("Part")
  1320. effect0.Shape = "Ball"
  1321. effect0.Anchored = true
  1322. effect0.CanCollide = false
  1323. effect0.Material = "Neon"
  1324. effect0.Size = v3(1,1,1)
  1325. effect0.CFrame = hit + v3(0,5,0)
  1326. effect0.Parent = workspace
  1327.  
  1328. local drone = it("Part")
  1329. drone.Shape = "Ball"
  1330. drone.Anchored = false
  1331. drone.Color = col(0,0,0)
  1332. drone.Material = "Neon"
  1333. drone.Size = v3(1,1,1)
  1334. drone.CFrame = hit + v3(0,5,0)
  1335. drone.Parent = workspace
  1336.  
  1337. local vel = it("BodyVelocity",drone)
  1338. vel.Velocity = v3(0,0,0)
  1339. vel.MaxForce = v3(huge,huge,huge)
  1340.  
  1341. spawn(function()
  1342. local o = 0
  1343. for i=1,25 do
  1344. effect0.Size = effect0.Size + v3(0.3,0.3,0.3)
  1345. effect0.Transparency = effect0.Transparency + 0.04
  1346. effect0.Color = Color3.fromHSV(o,1,1)
  1347. o = o + 0.04
  1348. swait()
  1349. end
  1350. effect0:Destroy()
  1351. end)
  1352.  
  1353. spawn(function()
  1354. while drone and drone.Parent do
  1355. local dist = 50
  1356. local part = nil
  1357. for _,v in pairs(workspace:GetChildren()) do
  1358. if v:FindFirstChildOfClass("Humanoid") and v ~= char then
  1359. if v:FindFirstChild("Head") then
  1360. local mag = (drone.Position - v.Head.Position).magnitude
  1361. if mag < dist then
  1362. dist = mag
  1363. part = v.Head
  1364. end
  1365. end
  1366. end
  1367. end
  1368. if part then
  1369. local q = drone.Touched:Connect(function(h)
  1370. if h.Parent then
  1371. if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char then
  1372. if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  1373. h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  1374. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/4)*(deathboost*healthboost))
  1375. else
  1376. h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/4)*(deathboost*healthboost))
  1377. end
  1378. local explode = it("Explosion",workspace)
  1379. explode.Position = drone.Position
  1380. explode.BlastRadius = 0
  1381. drone:Destroy()
  1382. end
  1383. end
  1384. end)
  1385. drone:GetPropertyChangedSignal("Parent"):Connect(function()
  1386. if drone.Parent ~= workspace then
  1387. q:Disconnect()
  1388. end
  1389. end)
  1390. spawn(function()
  1391. while drone and drone.Parent do
  1392. local e = CFrame.new(drone.Position, part.Position)
  1393. local mag = (drone.Position - part.Position).magnitude
  1394. if mag > 100 then
  1395. vel.Velocity = e.LookVector * 300
  1396. wait(0.2)
  1397. vel.Velocity = v3(0,0,0)
  1398. else
  1399. vel.Velocity = e.LookVector * (10+mag)
  1400. end
  1401. wait(0.2)
  1402. end
  1403. end)
  1404. end
  1405. wait(0.1)
  1406. end
  1407. end)
  1408.  
  1409. wait(10)
  1410. drone:Destroy()
  1411. elseif key == Enum.KeyCode.Z then
  1412. local targ = m:InvokeClient(owner)
  1413. if targ.Parent then
  1414. if targ.Parent:FindFirstChild("Head") then
  1415. for i=1,10 do
  1416. local o = cf(targ.Parent.Head.Position + v3(rand(-1,1),0,rand(-1,1)), targ.Parent.Head.Position)
  1417. local cr = o + o.LookVector * rand(-40,-20) + v3(0,-1.5,0)
  1418. spawn(function()
  1419. local beam = it("Part")
  1420. beam.Color = col(0,0,0)
  1421. beam.Transparency = 1
  1422. beam.Material = "Neon"
  1423. beam.Size = v3(0.05,0.05,(cr.Position - targ.Parent.Head.Position).magnitude)
  1424. beam.CFrame = cf(cr.Position, targ.Parent.Head.Position) * cf(0,0,-(cr.Position - targ.Parent.Head.Position).magnitude/2)
  1425. beam.Anchored = true
  1426. beam.CanCollide = false
  1427. beam.Parent = workspace
  1428. local mesh = it("SpecialMesh",beam)
  1429. mesh.MeshType = "Sphere"
  1430.  
  1431. local beam0 = it("Part")
  1432. beam0.Color = col(0,0,0)
  1433. beam0.Transparency = 1
  1434. beam0.Material = "Neon"
  1435. beam0.Size = v3(0.05,0.05,0.05)
  1436. beam0.CFrame = cf(cr.Position)
  1437. beam0.Anchored = true
  1438. beam0.CanCollide = false
  1439. beam0.Parent = workspace
  1440. local mesh0 = it("SpecialMesh",beam0)
  1441. mesh0.MeshType = "Sphere"
  1442.  
  1443. local beam1 = it("Part")
  1444. beam1.Color = col(0,0,0)
  1445. beam1.Transparency = 1
  1446. beam1.Material = "Neon"
  1447. beam1.Size = v3(0.05,0.05,0.05)
  1448. beam1.CFrame = cf(targ.Parent.Head.Position)
  1449. beam1.Anchored = true
  1450. beam1.CanCollide = false
  1451. beam1.Parent = workspace
  1452. local mesh1 = it("SpecialMesh",beam1)
  1453. mesh1.MeshType = "Sphere"
  1454. for i=1,25 do
  1455. beam.Transparency = beam.Transparency - 0.04
  1456. beam.Size = beam.Size + Vector3.new(0.1,0.1,0)
  1457. beam.CFrame = beam.CFrame + beam.CFrame.upVector * 0.02
  1458. beam0.Transparency = beam0.Transparency - 0.04
  1459. beam0.Size = beam0.Size + Vector3.new(0.3,0.3,0.3)
  1460. beam0.CFrame = beam0.CFrame + beam0.CFrame.upVector * 0.02
  1461. beam1.Transparency = beam1.Transparency - 0.04
  1462. beam1.Size = beam1.Size + Vector3.new(0.3,0.3,0.3)
  1463. beam1.CFrame = beam1.CFrame + beam1.CFrame.upVector * 0.02
  1464. swait()
  1465. end
  1466. for i=1,25 do
  1467. beam.Transparency = beam.Transparency + 0.04
  1468. beam.Size = beam.Size + Vector3.new(0.05,0.05,0)
  1469. beam.CFrame = beam.CFrame + beam.CFrame.upVector * 0.04
  1470. beam0.Transparency = beam0.Transparency + 0.1
  1471. beam0.Size = beam0.Size + Vector3.new(0.6,0.6,0.6)
  1472. beam0.CFrame = beam0.CFrame + beam0.CFrame.upVector * 0.04
  1473. beam1.Transparency = beam1.Transparency + 0.1
  1474. beam1.Size = beam1.Size + Vector3.new(0.6,0.6,0.6)
  1475. beam1.CFrame = beam1.CFrame + beam1.CFrame.upVector * 0.04
  1476. swait()
  1477. end
  1478. beam:Destroy()
  1479. beam0:Destroy()
  1480. beam1:Destroy()
  1481. if targ.Parent:FindFirstChildOfClass("Humanoid") then
  1482. if targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
  1483. targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
  1484. targ.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/15)*(deathboost*healthboost))
  1485. else
  1486. targ.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/15)*(deathboost*healthboost))
  1487. end
  1488. end
  1489. end)
  1490. wait(1)
  1491. end
  1492. end
  1493. end
  1494. elseif key == Enum.KeyCode.R then
  1495. dashing = true
  1496. local vel = it("BodyVelocity",torso)
  1497. vel.MaxForce = v3(huge,huge,huge)
  1498. vel.P = 3000
  1499. local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -1000)
  1500. local part, pos = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren())
  1501. local range = (torso.Position-pos).magnitude
  1502. if range > 4 then
  1503. if speed > 3 then
  1504. spawn(function()
  1505. for i=1,10 do
  1506. local part = it("Part")
  1507. part.Size = v3(5,15,5)
  1508. part.Name = "M0"
  1509. part.CFrame = torso.CFrame * CFrame.Angles(rad(135),0,0)
  1510. part.CanCollide = false
  1511. part.Anchored = true
  1512. part.Parent = workspace
  1513. local mesh = it("SpecialMesh",part)
  1514. mesh.MeshId = crownid
  1515. mesh.Scale = part.Size
  1516. spawn(function()
  1517. for i=1,25 do
  1518. part.Transparency = part.Transparency + 0.04
  1519. swait()
  1520. end
  1521. part:Destroy()
  1522. end)
  1523. wait(0.05)
  1524. end
  1525. end)
  1526. for i=1,10 do
  1527. vel.Velocity = torso.CFrame.LookVector * (i*15) + torso.CFrame.upVector * (i*15)
  1528. swait()
  1529. end
  1530. elseif speed < 3 then
  1531. spawn(function()
  1532. for i=1,10 do
  1533. local part = it("Part")
  1534. part.Size = v3(5,15,5)
  1535. part.Name = "M0"
  1536. part.CFrame = torso.CFrame * CFrame.Angles(rad(180),0,0)
  1537. part.CanCollide = false
  1538. part.Anchored = true
  1539. part.Parent = workspace
  1540. local mesh = it("SpecialMesh",part)
  1541. mesh.MeshId = crownid
  1542. mesh.Scale = part.Size
  1543. spawn(function()
  1544. for i=1,25 do
  1545. part.Transparency = part.Transparency + 0.04
  1546. swait()
  1547. end
  1548. part:Destroy()
  1549. end)
  1550. wait(0.05)
  1551. end
  1552. end)
  1553. for i=1,10 do
  1554. vel.Velocity = torso.CFrame.upVector * (i*30)
  1555. swait()
  1556. end
  1557. end
  1558. else
  1559. spawn(function()
  1560. for i=1,10 do
  1561. local part = it("Part")
  1562. part.Size = v3(5,15,5)
  1563. part.Name = "M0"
  1564. part.CFrame = torso.CFrame * CFrame.Angles(rad(90),0,0)
  1565. part.CanCollide = false
  1566. part.Anchored = true
  1567. part.Parent = workspace
  1568. local mesh = it("SpecialMesh",part)
  1569. mesh.MeshId = crownid
  1570. mesh.Scale = part.Size
  1571. spawn(function()
  1572. for i=1,25 do
  1573. part.Transparency = part.Transparency + 0.04
  1574. swait()
  1575. end
  1576. part:Destroy()
  1577. end)
  1578. wait(0.05)
  1579. end
  1580. end)
  1581. for i=1,10 do
  1582. if stop then
  1583. --torso.Anchored = true
  1584. --wait(0.2)
  1585. --torso.Anchored = false
  1586. vel.Velocity = -vel.Velocity
  1587. wait(0.1)
  1588. vel:Destroy()
  1589. break
  1590. end
  1591. vel.Velocity = torso.CFrame.LookVector * (i*15)
  1592. swait()
  1593. end
  1594. end
  1595. for i=1,6 do
  1596. if stop then
  1597. --torso.Anchored = true
  1598. --wait(0.2)
  1599. --torso.Anchored = false
  1600. vel.Velocity = -vel.Velocity
  1601. wait(0.1)
  1602. vel:Destroy()
  1603. break
  1604. end
  1605. swait()
  1606. end
  1607. vel:Destroy()
  1608. for i=1,60 do
  1609. if stop then
  1610. --torso.Anchored = true
  1611. --wait(0.2)
  1612. --torso.Anchored = false
  1613. vel.Velocity = -vel.Velocity
  1614. wait(0.1)
  1615. vel:Destroy()
  1616. break
  1617. end
  1618. swait()
  1619. end
  1620. dashing = false
  1621. elseif key == Enum.KeyCode.T then
  1622. superdashing = true
  1623. local vel = it("BodyVelocity",torso)
  1624. vel.MaxForce = v3(huge,huge,huge)
  1625. vel.P = 3000
  1626. local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -1000)
  1627. local part, pos = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren())
  1628. local range = (torso.Position-pos).magnitude
  1629. if range > 4 then
  1630. if speed > 3 then
  1631. spawn(function()
  1632. for i=1,10 do
  1633. local part = it("Part")
  1634. part.Size = v3(5,15,5)
  1635. part.CFrame = torso.CFrame * CFrame.Angles(rad(135),0,0)
  1636. part.Name = "M0"
  1637. part.Color = Color3.fromHSV(0,1,1)
  1638. part.CanCollide = false
  1639. part.Anchored = true
  1640. part.Parent = workspace
  1641. local mesh = it("SpecialMesh",part)
  1642. mesh.MeshId = crownid
  1643. mesh.Scale = part.Size
  1644. spawn(function()
  1645. local o=0
  1646. for i=1,25 do
  1647. if o > 1 then
  1648. o=0
  1649. end
  1650. part.Transparency = part.Transparency + 0.04
  1651. mesh.Scale = mesh.Scale + v3(2,2,2)
  1652. part.Color = Color3.fromHSV(o,1,1)
  1653. o = o + 0.05
  1654. swait()
  1655. end
  1656. part:Destroy()
  1657. end)
  1658. wait(0.025)
  1659. end
  1660. end)
  1661. for i=1,10 do
  1662. vel.Velocity = torso.CFrame.upVector * (i*80)
  1663. swait()
  1664. end
  1665. elseif speed < 3 then
  1666. spawn(function()
  1667. for i=1,10 do
  1668. local part = it("Part")
  1669. part.Size = v3(5,15,5)
  1670. part.CFrame = torso.CFrame * CFrame.Angles(rad(180),0,0)
  1671. part.Name = "M0"
  1672. part.Color = Color3.fromHSV(0,1,1)
  1673. part.CanCollide = false
  1674. part.Anchored = true
  1675. part.Parent = workspace
  1676. local mesh = it("SpecialMesh",part)
  1677. mesh.MeshId = crownid
  1678. mesh.Scale = part.Size
  1679. spawn(function()
  1680. local o=0
  1681. for i=1,25 do
  1682. if o > 1 then
  1683. o=0
  1684. end
  1685. part.Transparency = part.Transparency + 0.04
  1686. mesh.Scale = mesh.Scale + v3(2,2,2)
  1687. part.Color = Color3.fromHSV(o,1,1)
  1688. o = o + 0.05
  1689. swait()
  1690. end
  1691. part:Destroy()
  1692. end)
  1693. wait(0.025)
  1694. end
  1695. end)
  1696. for i=1,10 do
  1697. vel.Velocity = torso.CFrame.upVector * (i*80)
  1698. swait()
  1699. end
  1700. end
  1701. else
  1702. spawn(function()
  1703. for i=1,10 do
  1704. local part = it("Part")
  1705. part.Size = v3(10,20,10)
  1706. part.Name = "M0"
  1707. part.CFrame = torso.CFrame * CFrame.Angles(rad(90),0,0)
  1708. part.CanCollide = false
  1709. part.Color = Color3.fromHSV(0,1,1)
  1710. part.Anchored = true
  1711. part.Parent = workspace
  1712. local mesh = it("SpecialMesh",part)
  1713. mesh.MeshId = crownid
  1714. mesh.Scale = part.Size
  1715. spawn(function()
  1716. local o = 0
  1717. for i=1,25 do
  1718. if o > 1 then
  1719. o=0
  1720. end
  1721. part.Transparency = part.Transparency + 0.04
  1722. mesh.Scale = mesh.Scale + v3(0.5,0.5,0.5)
  1723. part.Color = Color3.fromHSV(o,1,1)
  1724. o = o + 0.05
  1725. swait()
  1726. end
  1727. part:Destroy()
  1728. end)
  1729. wait(0.05)
  1730. end
  1731. end)
  1732. for i=1,10 do
  1733. if stop then
  1734. vel.Velocity = -vel.Velocity
  1735. wait(0.1)
  1736. vel:Destroy()
  1737. break
  1738. end
  1739. vel.Velocity = torso.CFrame.LookVector * (i*40)
  1740. swait()
  1741. end
  1742. end
  1743. for i=1,6 do
  1744. if stop then
  1745. vel.Velocity = -vel.Velocity
  1746. wait(0.1)
  1747. vel:Destroy()
  1748. break
  1749. end
  1750. swait()
  1751. end
  1752. vel:Destroy()
  1753. for i=1,60 do
  1754. if stop then
  1755. vel.Velocity = -vel.Velocity
  1756. wait(0.02)
  1757. vel:Destroy()
  1758. break
  1759. end
  1760. swait()
  1761. end
  1762. superdashing = false
  1763. elseif key == Enum.KeyCode.E and not blocking then
  1764. blocking = true
  1765. local shield0 = it("Part")
  1766. shield0.Size = v3(5,5,1)
  1767. shield0.CFrame = cf(torso.CFrame.Position + torso.CFrame.lookVector * 2,torso.Position)
  1768. shield0.CanCollide = false
  1769. shield0.Material = "Neon"
  1770. shield0.Transparency = 1
  1771. shield0.Color = Color3.fromHSV(0,1,1)
  1772. shield0.Parent = workspace
  1773.  
  1774. local shield1 = it("Part")
  1775. shield1.Size = v3(5,5,1)
  1776. shield1.CFrame = cf(torso.CFrame.Position + torso.CFrame.lookVector * -1.6 + torso.CFrame.rightVector * 2,torso.Position)
  1777. shield1.CanCollide = false
  1778. shield1.Material = "Neon"
  1779. shield1.Transparency = 1
  1780. shield1.Color = Color3.fromHSV(0,1,1)
  1781. shield1.Parent = workspace
  1782.  
  1783. local shield2 = it("Part")
  1784. shield2.Size = v3(5,5,1)
  1785. shield2.CFrame = cf(torso.CFrame.Position + torso.CFrame.lookVector * -1.6 + torso.CFrame.rightVector * -2,torso.Position)
  1786. shield2.CanCollide = false
  1787. shield2.Material = "Neon"
  1788. shield2.Transparency = 1
  1789. shield2.Color = Color3.fromHSV(0,1,1)
  1790. shield2.Parent = workspace
  1791.  
  1792. spawn(function()
  1793. local o = 0
  1794. while shield0 do
  1795. if o > 1 then
  1796. o = 0
  1797. end
  1798. shield0.Color = Color3.fromHSV(o,1,1)
  1799. shield1.Color = Color3.fromHSV(o,1,1)
  1800. shield2.Color = Color3.fromHSV(o,1,1)
  1801. o = o + 0.01
  1802. swait()
  1803. end
  1804. end)
  1805.  
  1806. local vel0 = it("BodyVelocity",shield0)
  1807. vel0.Velocity = shield0.CFrame.LookVector * -20 + Vector3.new(0,10,0)
  1808. local vel1 = it("BodyVelocity",shield1)
  1809. vel1.Velocity = shield1.CFrame.LookVector * -20 + Vector3.new(0,10,0)
  1810. local vel2 = it("BodyVelocity",shield2)
  1811. vel2.Velocity = shield2.CFrame.LookVector * -20 + Vector3.new(0,10,0)
  1812.  
  1813. for i=1,10 do
  1814. shield0.Transparency = shield0.Transparency - 0.1
  1815. shield1.Transparency = shield1.Transparency - 0.1
  1816. shield2.Transparency = shield2.Transparency - 0.1
  1817. swait()
  1818. end
  1819.  
  1820. for i=1,50 do
  1821. shield0.Transparency = shield0.Transparency + 0.02
  1822. shield1.Transparency = shield1.Transparency + 0.02
  1823. shield2.Transparency = shield2.Transparency + 0.02
  1824. swait()
  1825. end
  1826. shield0:Destroy()
  1827. shield1:Destroy()
  1828. shield2:Destroy()
  1829. blocking = false
  1830. end
  1831. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement