Advertisement
TheJake678

test

Jan 16th, 2022
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 142.57 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Script0 = Instance.new("Script")
  19. Script1 = Instance.new("Script")
  20. LocalScript2 = Instance.new("LocalScript")
  21. Script0.Name = "Manager"
  22. Script0.Parent = mas
  23. table.insert(cors,sandbox(Script0,function()
  24. function Join(plr)
  25. if plr and plr.Parent then
  26. if not plr.Character then
  27. repeat wait(0.1) until plr.Parent == nil or plr.Character
  28. if plr.Character then
  29. local Cl = script.Wizard:Clone()
  30. Cl.Name = plr.Name
  31. Cl.Parent = workspace
  32. Cl.Disabled = false
  33. end
  34. end
  35. end
  36. end
  37. game:GetService("Players").PlayerAdded:Connect(Join)
  38. end))
  39. Script1.Name = "Wizard"
  40. Script1.Parent = Script0
  41. table.insert(cors,sandbox(Script1,function()
  42. local owner = game:GetService("Players"):FindFirstChild(script.Name)
  43. if not (owner and owner:IsA("Player")) then
  44. script:Destroy()
  45. return
  46. end
  47. local Wands = 0
  48. local Shields = 0
  49. local Slows = 0
  50. function Leave(plr)
  51. if plr == owner then
  52. local Count = 50
  53. repeat
  54. Count = Count - 1
  55. if Wands > 0 or Shields > 0 or Slows > 0 or #script:GetChildren() > 1 then
  56. Count = 50
  57. end
  58. wait(0.1)
  59. until Count < 0
  60. script:Destroy()
  61. end
  62. end
  63. game:GetService("Players").PlayerRemoving:Connect(Leave)
  64. script.Name = "Wizard"
  65. local HC = Instance.new("Part")
  66. HC.Name = "HitboxCheck"
  67. HC.Anchored = true
  68. HC.Locked = true
  69. HC.Shape = Enum.PartType.Ball
  70. HC.Size = Vector3.new(600,600,600)
  71. HC.Transparency = 1
  72. HC.CanCollide = false
  73. HC.Touched:Connect(function()
  74. end)
  75. local PartA = Instance.new("Part")
  76. PartA.Transparency = 1
  77. PartA.CanCollide = false
  78. local SA = Instance.new("Sound",PartA)
  79. SA.SoundId = "rbxasset://sounds/bass.mp3"
  80. SA.PlayOnRemove = true
  81. SA.TimePosition = 0.2
  82. local PartB = Instance.new("Part")
  83. PartB.Transparency = 1
  84. PartB.CanCollide = false
  85. local SB = Instance.new("Sound",PartB)
  86. SB.SoundId = "rbxasset://sounds/electronicpingshort.wav"
  87. SB.PlayOnRemove = true
  88. SB.TimePosition = 0.2
  89. local PartC = Instance.new("Part")
  90. PartC.Transparency = 1
  91. PartC.CanCollide = false
  92. local SC = Instance.new("Sound",PartC)
  93. SC.SoundId = "rbxasset://sounds/snap.mp3"
  94. SC.PlayOnRemove = true
  95. SC.TimePosition = 0.2
  96. PartA.Anchored = true
  97. PartB.Anchored = true
  98. PartC.Anchored = true
  99. local VisCount = 0
  100. function HitEffect(Pos,Type)
  101. spawn(function()
  102. VisCount = VisCount + 1
  103. local P = Instance.new("Part",script)
  104. P.Name = "HitEffect"
  105. P.Material = Enum.Material.Neon
  106. P.Position = Pos
  107. P.Anchored = true
  108. P.Locked = true
  109. P.CanCollide = false
  110. if Type == 1 then
  111. P.BrickColor = BrickColor.new("Neon orange")
  112. elseif Type == 2 then
  113. P.BrickColor = BrickColor.new("Really red")
  114. else
  115. P.BrickColor = BrickColor.new("Cyan")
  116. end
  117. local S = {}
  118. if VisCount < 5 then
  119. P.Size = Vector3.new(0.5,0.5,0.5)*math.max(1,Type)
  120. P.Shape = Enum.PartType.Ball
  121. for i = 1,4 do
  122. local SE = Instance.new("Part",script)
  123. SE.Name = "HitOutEffect"
  124. SE.Size = Vector3.new(0.5,0.5,0.05)*math.max(1,Type)
  125. SE.Material = Enum.Material.Neon
  126. SE.Position = Pos
  127. SE.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  128. SE.Anchored = true
  129. SE.Locked = true
  130. SE.CanCollide = false
  131. if Type == 1 then
  132. SE.BrickColor = BrickColor.new("Bright red")
  133. elseif Type == 2 then
  134. SE.BrickColor = BrickColor.new("New Yeller")
  135. else
  136. SE.BrickColor = BrickColor.new("Bright blue")
  137. end
  138. table.insert(S,SE)
  139. end
  140. for i = 1,3*math.max(1,Type) do
  141. P.Size = P.Size + Vector3.new(0.5,0.5,0.5)*math.max(1,Type)
  142. for i = 1,#S do
  143. S[i].CFrame = S[i].CFrame*CFrame.new(0,0,0.5*math.max(1,Type))
  144. S[i].Size = S[i].Size+Vector3.new(0,0,0.5)
  145. end
  146. wait(0.05)
  147. end
  148. for i = 1,2*math.max(1,Type) do
  149. P.Transparency = P.Transparency + 0.5/math.max(1,Type)
  150. for i = 1,#S do
  151. S[i].CFrame = S[i].CFrame*CFrame.new(0,0,0.25*math.max(1,Type))
  152. S[i].Size = S[i].Size-Vector3.new(0,0,0.5)
  153. end
  154. wait(0.05)
  155. end
  156. else
  157. P.Size = Vector3.new(2.5,2.5,2.5)*math.max(1,Type)
  158. P.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  159. wait(0.05*Type)
  160. P.Transparency = 0.3
  161. P.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  162. if Type == 1 then
  163. P.BrickColor = BrickColor.new("Bright red")
  164. elseif Type == 2 then
  165. P.BrickColor = BrickColor.new("New Yeller")
  166. else
  167. P.BrickColor = BrickColor.new("Bright blue")
  168. end
  169. wait(0.05*Type)
  170. P.Transparency = 0.6
  171. P.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  172. if Type == 1 then
  173. P.BrickColor = BrickColor.new("Neon orange")
  174. elseif Type == 2 then
  175. P.BrickColor = BrickColor.new("Really red")
  176. else
  177. P.BrickColor = BrickColor.new("Cyan")
  178. end
  179. wait(0.05*Type)
  180. end
  181. VisCount = VisCount - 1
  182. P:Destroy()
  183. for i = 1,#S do
  184. S[i]:Destroy()
  185. end
  186. end)
  187. end
  188. local SoundCount = 0
  189. function PlayFX(type,pitch,vol,pos)
  190. if SoundCount < 30 then
  191. local waiter = 0
  192. local Part,Sound
  193. if type == "A" then
  194. Part,Sound,waiter = PartA,SA,1
  195. elseif type == "B" then
  196. Part,Sound,waiter = PartB,SB,0.7
  197. elseif type == "C" then
  198. Part,Sound,waiter = PartC,SC,0.4
  199. end
  200. Sound.PlaybackSpeed = pitch
  201. Sound.Volume = vol
  202. Part.Position = pos
  203. Part.Parent = script
  204. Part.Parent = nil
  205. SoundCount = SoundCount + 1
  206. delay(waiter/pitch,function()
  207. SoundCount = SoundCount - 1
  208. end)
  209. end
  210. end
  211. function Hurt(pos)
  212. spawn(function()
  213. PlayFX("C",0.3,0.8,pos)
  214. wait(0.05)
  215. for i = 1,6 do
  216. PlayFX("C",0.6,1-i*0.15,pos)
  217. wait(0.05)
  218. end
  219. end)
  220. HitEffect(pos,1)
  221. end
  222. function Damages(pos)
  223. spawn(function()
  224. for a = 1,10 do
  225. PlayFX("C",0.3,1.5/a,pos)
  226. wait(0.05)
  227. for i = 1,2 do
  228. PlayFX("C",0.75,1.5/a,pos)
  229. wait(0.05)
  230. end
  231. end
  232. end)
  233. HitEffect(pos,2)
  234. end
  235. function FireBurst(pos)
  236. spawn(function()
  237. for i = 1,5 do
  238. PlayFX("C",0.2*1.3^i,1.5,pos)
  239. wait(0.05)
  240. end
  241. for i = 1,40 do
  242. PlayFX("C",0.1+1/(i/2),1.5-i*0.03,pos)
  243. wait(0.05)
  244. end
  245. end)
  246. end
  247. function Explode(pos)
  248. spawn(function()
  249. for i = 1,3 do
  250. PlayFX("C",2,1.5,pos)
  251. wait(0.05)
  252. end
  253. for i = 1,60 do
  254. PlayFX("C",0.12+1.1/i,1.5-i*0.02,pos)
  255. wait(0.05)
  256. end
  257. end)
  258. end
  259. function Deflect(pos)
  260. spawn(function()
  261. PlayFX("C",0.8,1,pos)
  262. PlayFX("B",0.8,1.5,pos)
  263. wait(0.05)
  264. PlayFX("B",1.6,1.5,pos)
  265. wait(0.05)
  266. for i = 1,4 do
  267. PlayFX("B",2.4,1.5-i*0.3,pos)
  268. wait(0.05)
  269. PlayFX("B",3.2,1.5-i*0.3,pos)
  270. wait(0.05)
  271. end
  272. end)
  273. HitEffect(pos,0)
  274. end
  275. function AirBurst(pos)
  276. spawn(function()
  277. PlayFX("C",0.7,2,pos)
  278. wait(0.1)
  279. for i = 1,5 do
  280. PlayFX("C",1.2,1.1-i*0.1,pos)
  281. wait(0.05)
  282. end
  283. for i = 1,20 do
  284. PlayFX("C",0.3-i*0.002,0.5-i*0.02,pos)
  285. wait(0.05)
  286. end
  287. end)
  288. end
  289. function Shatter(pos)
  290. spawn(function()
  291. PlayFX("C",0.6,0.2,pos)
  292. wait(0.05)
  293. for i = 1,3 do
  294. PlayFX("B",math.random(60,240)/100,1,pos)
  295. PlayFX("C",0.3,1,pos)
  296. wait(0.05)
  297. end
  298. PlayFX("B",math.random(60,240)/100,1,pos)
  299. PlayFX("C",0.1,1,pos)
  300. wait(0.05)
  301. for i = 1,15 do
  302. PlayFX("B",math.random(60,240)/100,1,pos)
  303. PlayFX("C",math.random(120,200)/100,1,pos)
  304. wait(math.random(5,5+i)/100,pos)
  305. end
  306. end)
  307. end
  308. function Swish(pos)
  309. spawn(function()
  310. for i = 1,3 do
  311. PlayFX("C",0.5+i*0.6,0.8,pos)
  312. wait(0.05)
  313. end
  314. for i = 1,3 do
  315. PlayFX("C",2.2-i*0.2,0.8-i*0.15,pos)
  316. wait(0.05)
  317. end
  318. end)
  319. end
  320. function Appear(pos)
  321. spawn(function()
  322. for i = 1,10 do
  323. PlayFX("C",1.25,i*0.12,pos)
  324. wait(0.1)
  325. end
  326. end)
  327. end
  328. function Poof(pos)
  329. spawn(function()
  330. for i = 1,3 do
  331. PlayFX("A",0.8-i*0.1,0.8,pos)
  332. PlayFX("C",0.25,1.2-i*0.1,pos)
  333. wait(0.05)
  334. end
  335. end)
  336. end
  337. function Set(pos)
  338. spawn(function()
  339. PlayFX("A",5.5,0.8,pos)
  340. wait(0.05)
  341. for i = 1,2 do
  342. PlayFX("A",8.25,0.8,pos)
  343. wait(0.05)
  344. PlayFX("A",11,0.8,pos)
  345. wait(0.05)
  346. end
  347. end)
  348. end
  349. function Ftwang(pos)
  350. spawn(function()
  351. PlayFX("A",0.725,2,pos)
  352. for i = 1,3 do
  353. if i == 2 then
  354. PlayFX("A",1.45,2,pos)
  355. end
  356. PlayFX("B",0.60+0.04125*i,2,pos)
  357. wait(0.05)
  358. end
  359. for i = 1,20 do
  360. PlayFX("B",0.83,2-0.09*i,pos)
  361. wait(0.05)
  362. end
  363. end)
  364. end
  365. function Ting(pos)
  366. spawn(function()
  367. PlayFX("A",0.8,2,pos)
  368. for i = 1,3 do
  369. if i == 2 then
  370. PlayFX("A",1.6,2,pos)
  371. end
  372. PlayFX("B",0.662+0.0455*i,2,pos)
  373. wait(0.05)
  374. end
  375. for i = 1,20 do
  376. PlayFX("B",0.915,2-0.09*i,pos)
  377. wait(0.05)
  378. end
  379. end)
  380. end
  381. function Scream(pos)
  382. spawn(function()
  383. if math.random(1,2) == 1 then
  384. for i = 1,5 do
  385. PlayFX("A",7+i*1.4,0.7,pos)
  386. wait(0.05)
  387. end
  388. for a = 1,10 do
  389. PlayFX("A",14,0.7/a,pos)
  390. wait(0.05)
  391. for i = 1,2 do
  392. PlayFX("A",12-i*0.15,0.7/a,pos)
  393. wait(0.05)
  394. end
  395. end
  396. else
  397. for i = 1,4 do
  398. PlayFX("A",4+i*1.1,0.7,pos)
  399. wait(0.05)
  400. end
  401. for i = 1,14 do
  402. PlayFX("A",9+i*0.5,0.7,pos)
  403. wait(0.05)
  404. end
  405. for a = 1,10 do
  406. PlayFX("A",16,0.7/a,pos)
  407. wait(0.05)
  408. for i = 1,2 do
  409. PlayFX("A",13-i*0.15,0.7/a,pos)
  410. wait(0.05)
  411. end
  412. end
  413. end
  414. end)
  415. end
  416. function Fall(pos)
  417. spawn(function()
  418. for i = 1,5 do
  419. PlayFX("B",3,i*0.3,pos)
  420. wait(0.05)
  421. end
  422. for i = 1,20 do
  423. PlayFX("B",3-i*0.025,2-i*0.075,pos)
  424. wait(0.05)
  425. end
  426. end)
  427. end
  428. function Splash(pos)
  429. spawn(function()
  430. for i = 1,3 do
  431. PlayFX("C",0.55-i*0.075,2,pos)
  432. wait(0.05)
  433. end
  434. PlayFX("C",0.95,2,pos)
  435. wait(0.05)
  436. for i = 1,5 do
  437. PlayFX("C",1.5,2-i*0.3,pos)
  438. wait(0.05)
  439. end
  440. for i = 1,5 do
  441. PlayFX("C",1.5,0.5+i*0.3,pos)
  442. wait(0.05)
  443. end
  444. for i = 1,20 do
  445. PlayFX("C",1.5,2-i*0.095,pos)
  446. wait(0.05)
  447. end
  448. end)
  449. end
  450. local HitCount = 0
  451. local DefCount = 0
  452. local DamageDone = 0
  453. local HealthHealed = 0
  454. local ConfirmLast = 0
  455. local ExplosiveFinish = 0
  456. local MinionsSpawned = 0
  457. local Rejected = 0
  458. local LHitCount = 0
  459. local LDefCount = 0
  460. local LDamageDone = 0
  461. local LHealthHealed = 0
  462. local LConfirmLast = 0
  463. local LExplosiveFinish = 0
  464. local LRejected = 0
  465. local LMinionsSpawned = 0
  466. local Spawned = 0
  467. local Skip = false
  468. local fc = "rbxasset://textures/face.png"
  469. local acc = {}
  470. local HM
  471. local HT
  472. local LastCF = CFrame.new(0,100,0)
  473. local Displaying = false
  474. local Unavailable = false
  475. local clr = BrickColor.new("White")
  476. function Cold(H,Model,Amount)
  477. local Tag = Model:FindFirstChild("ImCold")
  478. if Tag and Tag:IsA("NumberValue") then
  479. Tag.Value = Tag.Value + Amount
  480. else
  481. Tag = Instance.new("NumberValue",Model)
  482. Tag.Name = "ImCold"
  483. Tag.Value = Amount
  484. local ColdParts = {}
  485. local OldColors = {}
  486. local D = Model:GetDescendants()
  487. for i = 1,#D do
  488. if D[i]:IsA("BasePart") then
  489. table.insert(ColdParts,D[i])
  490. table.insert(OldColors,D[i].Color)
  491. D[i].BrickColor = BrickColor.new("Pastel Blue")
  492. end
  493. end
  494. local OldSpeed = H.WalkSpeed
  495. local OldJump = H.JumpPower
  496. local Stun = false
  497. H.WalkSpeed = H.WalkSpeed/4
  498. Slows = Slows + 1
  499. local Vic = game:GetService("Players"):GetPlayerFromCharacter(Model)
  500. spawn(function()
  501. local ScreenGui
  502. local Notif
  503. if Vic then
  504. ScreenGui = Instance.new("ScreenGui",Vic:FindFirstChild("PlayerGui"))
  505. Notif = Instance.new("TextLabel",ScreenGui)
  506. Notif.Position = UDim2.new(0,0,0.85,0)
  507. Notif.Font = Enum.Font.Fantasy
  508. Notif.TextScaled = true
  509. Notif.TextStrokeTransparency = 0
  510. Notif.TextColor3 = Color3.new(1,1,1)
  511. Notif.TextStrokeColor3 = Color3.new()
  512. Notif.BackgroundTransparency = 0.5
  513. Notif.TextXAlignment = Enum.TextXAlignment.Left
  514. Notif.Text = "You feel cold! Rapidly move."
  515. end
  516. local Last = H.MoveDirection
  517. while Tag.Parent and Tag.Value > 0 do
  518. local M = (Last - H.MoveDirection).Magnitude
  519. local Mov = true
  520. if M > 0.7 and H:GetState() ~= Enum.HumanoidStateType.Dead then
  521. Tag.Value = Tag.Value - 4
  522. if H.RootPart then
  523. PlayFX("C",1.2,1,H.RootPart.Position)
  524. end
  525. elseif (H.Jump or (Tag.Value > 100 and not H.PlatformStand)) and H:GetState() ~= Enum.HumanoidStateType.Dead then
  526. Tag.Value = Tag.Value - 2
  527. if H.RootPart then
  528. PlayFX("C",0.9,1,H.RootPart.Position)
  529. end
  530. else
  531. Mov = false
  532. Tag.Value = Tag.Value - 1
  533. end
  534. if Tag.Value > 100 then
  535. Stun = true
  536. H.JumpPower = 0
  537. H.Sit = false
  538. H.PlatformStand = true
  539. else
  540. if Stun then
  541. Stun = false
  542. H.PlatformStand = false
  543. H.Sit = true
  544. H.JumpPower = OldJump
  545. end
  546. end
  547. if Tag.Value > 400 then
  548. for i = 1,#ColdParts do
  549. ColdParts[i].BrickColor = BrickColor.new("Navy blue")
  550. end
  551. elseif Tag.Value > 300 then
  552. for i = 1,#ColdParts do
  553. ColdParts[i].BrickColor = BrickColor.new("Dark indigo")
  554. end
  555. elseif Tag.Value > 200 then
  556. for i = 1,#ColdParts do
  557. ColdParts[i].BrickColor = BrickColor.new("Deep blue")
  558. end
  559. elseif Tag.Value > 100 then
  560. for i = 1,#ColdParts do
  561. ColdParts[i].BrickColor = BrickColor.new("Cyan")
  562. end
  563. else
  564. for i = 1,#ColdParts do
  565. ColdParts[i].BrickColor = BrickColor.new("Pastel Blue")
  566. end
  567. end
  568. if Notif then
  569. local Disp = math.min(1,(math.ceil(Tag.Value/10)*10)/200)
  570. if Mov then
  571. Notif.BackgroundColor3 = Color3.new(0.1,0.2,1)
  572. else
  573. Notif.BackgroundColor3 = Color3.new(0.2,0.8,1)
  574. if Tag.Value%2 == 1 then
  575. Disp = math.min(1,(math.floor(Tag.Value/10)*10)/200)
  576. end
  577. end
  578. Notif.Size = UDim2.new(Disp,0,0.05,0)
  579. if Tag.Value > 100 then
  580. Notif.TextTransparency = 0
  581. else
  582. Notif.TextTransparency = 1
  583. end
  584. if Tag.Value > 400 then
  585. Notif.TextColor3 = Color3.new(0.2,0.2,0.7)
  586. elseif Tag.Value > 300 then
  587. Notif.TextColor3 = Color3.new(0.5,0,0.8)
  588. elseif Tag.Value > 200 then
  589. Notif.TextColor3 = Color3.new(0.2,0.8,1)
  590. else
  591. Notif.TextColor3 = Color3.new(1,1,1)
  592. end
  593. end
  594. Last = H.MoveDirection
  595. if H:GetState() == Enum.HumanoidStateType.Dead and ScreenGui and ScreenGui.Parent then
  596. ScreenGui:Destroy()
  597. end
  598. wait(0.05)
  599. end
  600. if Stun then
  601. H.PlatformStand = false
  602. H.Sit = true
  603. H.JumpPower = OldJump
  604. end
  605. H.WalkSpeed = OldSpeed
  606. for i = 1,#ColdParts do
  607. ColdParts[i].Color = OldColors[i]
  608. end
  609. Tag:Destroy()
  610. if ScreenGui then
  611. ScreenGui:Destroy()
  612. end
  613. Slows = Slows - 1
  614. end)
  615. end
  616. end
  617. function ApplyShield(Character,Humanoid,Size,StoredPower,Timer,Color)
  618. local function Play(sound,pitch,vol)
  619. sound.TimePosition = 0.2
  620. sound.PlaybackSpeed = pitch
  621. sound.Volume = vol
  622. sound:Play()
  623. end
  624. local Value = Humanoid:FindFirstChild("ShieldDurability")
  625. if Value then
  626. Value:Destroy()
  627. end
  628. local P = Humanoid:FindFirstChild("ShieldEffect")
  629. if P then
  630. P:Destroy()
  631. end
  632. P = Instance.new("Part",Humanoid)
  633. P.Name = "ShieldEffect"
  634. P.Shape = Enum.PartType.Ball
  635. P.Size = Vector3.new(0.5,0.5,0.5)*Size
  636. P.Material = Enum.Material.ForceField
  637. P.Position = Humanoid.RootPart.Position
  638. P.Locked = true
  639. P.CanCollide = false
  640. P.CastShadow = false
  641. local M = Instance.new("SpecialMesh",P)
  642. M.MeshType = Enum.MeshType.Sphere
  643. M.Scale = Vector3.new(16,16,16)
  644. local W = Instance.new("Weld",P)
  645. W.Part0 = P
  646. W.Part1 = Humanoid.RootPart
  647. local BBG2 = Instance.new("BillboardGui",P)
  648. BBG2.Size = UDim2.new(15*Size,0,1.5*Size,0)
  649. BBG2.LightInfluence = 0.25
  650. BBG2.StudsOffset = Vector3.new(1,4,-4)*Size
  651. BBG2.Adornee = P
  652. local TL2 = Instance.new("TextBox",BBG2)
  653. TL2.AnchorPoint = Vector2.new(0.5,0.5)
  654. TL2.Position = UDim2.new(0.5,0,0.5,0)
  655. TL2.Size = UDim2.new(1,0,1,0)
  656. TL2.BackgroundTransparency = 1
  657. TL2.TextStrokeTransparency = 0
  658. TL2.TextScaled = true
  659. TL2.Font = Enum.Font.Fantasy
  660. TL2.TextColor3 = Color.Color
  661. TL2.TextStrokeColor3 = Color3.new(1,1,1)
  662. TL2.TextTransparency = 0
  663. TL2.Text = ""
  664. Value = Instance.new("NumberValue",Humanoid)
  665. Value.Name = "ShieldDurability"
  666. Value.Value = 100*StoredPower
  667. local LastHealth = Humanoid.Health
  668. local Active = true
  669. local Cycle = false
  670. local First = true
  671. local function HealthChanged()
  672. if LastHealth > Humanoid.Health then
  673. if not First then
  674. Value.Value = Value.Value-(LastHealth-Humanoid.Health)
  675. if Value.Value < 0 then
  676. Value.Value = 0
  677. end
  678. end
  679. Humanoid.Health = LastHealth
  680. if Active then
  681. Active = false
  682. Deflect(P.Position)
  683. P.BrickColor = BrickColor.new("Deep blue")
  684. if Cycle then
  685. P.BrickColor = Color
  686. end
  687. P.Material = Enum.Material.Neon
  688. P.Transparency = 0
  689. P.CastShadow = true
  690. delay(0.05,function()
  691. P.Material = Enum.Material.ForceField
  692. P.CastShadow = false
  693. wait(0.05)
  694. Active = true
  695. end)
  696. end
  697. end
  698. LastHealth = Humanoid.Health
  699. end
  700. local Connect = Humanoid.HealthChanged:Connect(HealthChanged)
  701. local F = {}
  702. local C = Character:GetDescendants()
  703. for i = 1,#C do
  704. if C[i]:IsA("BasePart") and C[i].Name ~= "Torso" and C[i].Name ~= "UpperTorso" and C[i].Name ~= "HumanoidRootPart" then
  705. local FF = Instance.new("ForceField",C[i])
  706. FF.Visible = false
  707. table.insert(F,FF)
  708. end
  709. end
  710. local FirstF = Instance.new("ForceField",Character)
  711. FirstF.Visible = false
  712. local Soft = Value.Value
  713. local Hum = Instance.new("Sound",P)
  714. Hum.SoundId = "rbxasset://sounds/bass.mp3"
  715. Hum.Looped = true
  716. local Volume = 0.2
  717. local Raise = true
  718. local Alt = false
  719. Shields = Shields + 1
  720. while Timer > 0 and P.Parent and Value.Parent and Character.Parent and Humanoid.Parent and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead do
  721. Alt = not Alt
  722. if Raise then
  723. Volume = Volume+0.05
  724. if Volume > 0.35 then
  725. Raise = false
  726. end
  727. else
  728. Volume = Volume-0.05
  729. if Volume < 0.2 then
  730. Raise = true
  731. Cycle = not Cycle
  732. end
  733. end
  734. if Alt then
  735. Play(Hum,math.max(20-Soft/50,0.2),Volume)
  736. else
  737. Play(Hum,math.max(20-Timer/50,0.2),Volume)
  738. end
  739. Timer = Timer - 5
  740. if Active then
  741. P.Transparency = 1.2-Volume*3
  742. P.BrickColor = BrickColor.new("Cyan")
  743. if Cycle then
  744. P.BrickColor = Color
  745. end
  746. if Alt then
  747. P.Color = Color3.new(math.min(1,P.Color.r*(Timer/250)),math.min(1,P.Color.g*(Timer/250)),math.min(1,P.Color.b*(Timer/250)))
  748. elseif Timer <= 0 then
  749. P.BrickColor = BrickColor.new("White")
  750. elseif Timer < 75 then
  751. P.BrickColor = BrickColor.new("Really red")
  752. elseif Timer < 500 then
  753. P.BrickColor = BrickColor.new("Lime green")
  754. end
  755. end
  756. TL2.Text = "T: "..math.floor(Timer).." ("..math.floor(Soft)..")"
  757. wait(0.05)
  758. end
  759. First = false
  760. FirstF:Destroy()
  761. while Soft > 0 and P.Parent and Value.Parent and Character.Parent and Humanoid.Parent and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead do
  762. Alt = not Alt
  763. if Raise then
  764. Volume = Volume+0.05
  765. if Volume > 0.35 then
  766. Raise = false
  767. end
  768. else
  769. Volume = Volume-0.05
  770. if Volume < 0.2 then
  771. Raise = true
  772. Cycle = not Cycle
  773. end
  774. end
  775. if Alt then
  776. Play(Hum,math.max(20-Soft/50,0.2),Volume)
  777. else
  778. Play(Hum,math.max(20-Value.Value/50,0.2),Volume)
  779. end
  780. if Soft > Value.Value then
  781. if Soft - 5 < Value.Value then
  782. Soft = Value.Value
  783. else
  784. Soft = Soft - 5
  785. end
  786. end
  787. if Active then
  788. P.Transparency = 1.2-Volume*3
  789. P.BrickColor = BrickColor.new("Cyan")
  790. if Cycle then
  791. P.BrickColor = Color
  792. end
  793. if Alt then
  794. P.Color = Color3.new(math.min(1,P.Color.r*(Value.Value/250)),math.min(1,P.Color.g*(Value.Value/250)),math.min(1,P.Color.b*(Value.Value/250)))
  795. elseif Value.Value <= 0 then
  796. P.BrickColor = BrickColor.new("White")
  797. elseif Value.Value < 75 then
  798. P.BrickColor = BrickColor.new("Really red")
  799. elseif Value.Value < 500 then
  800. P.BrickColor = BrickColor.new("Lime green")
  801. end
  802. end
  803. TL2.Text = "D: "..math.floor(Value.Value).." ("..math.floor(Soft)..")"
  804. wait(0.05)
  805. end
  806. Shields = Shields - 1
  807. Value:Destroy()
  808. Connect:Disconnect()
  809. Shatter(P.Position)
  810. P:Destroy()
  811. for i = 1,#F do
  812. F[i]:Destroy()
  813. end
  814. local S = {}
  815. local V = {}
  816. local R = {}
  817. for i = 1,20 do
  818. local SE = Instance.new("WedgePart",script)
  819. SE.Name = "ShieldEffect"
  820. SE.Size = Vector3.new(0.5,2,2)*Size
  821. SE.Material = Enum.Material.ForceField
  822. SE.Position = P.Position+Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*Size
  823. SE.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  824. SE.Anchored = true
  825. SE.Locked = true
  826. SE.CanCollide = false
  827. if math.random(1,2) == 1 then
  828. SE.BrickColor = BrickColor.new("Really blue")
  829. else
  830. SE.BrickColor = Color
  831. end
  832. table.insert(S,SE)
  833. table.insert(V,Vector3.new(math.random(-800,800)/100,math.random(-800,800)/100,math.random(-800,800)/100)*Size)
  834. table.insert(R,Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
  835. end
  836. for a = 1,40 do
  837. for i = 1,#S do
  838. S[i].Position = S[i].Position+V[i]/20
  839. S[i].CFrame = S[i].CFrame*CFrame.new(0,0,0,R[i].X,R[i].Y,R[i].Z,1)
  840. S[i].Transparency = S[i].Transparency + 0.025
  841. end
  842. wait(0.05)
  843. end
  844. for i = 1,#S do
  845. S[i]:Destroy()
  846. end
  847. end
  848. function Ready()
  849. if Displaying then
  850. game:GetService("Debris"):AddItem(owner.Character,0)
  851. Unavailable = true
  852. return
  853. else
  854. Unavailable = false
  855. end
  856. local Pass = Skip
  857. if Skip then
  858. Skip = false
  859. else
  860. local ScreenGui = Instance.new("ScreenGui")
  861. ScreenGui.Name = "Something"
  862. local Btn = Instance.new("TextButton",ScreenGui)
  863. Btn.Size = UDim2.new(0.15,0,0.2,0)
  864. Btn.Position = UDim2.new(0.8,0,0.4,0)
  865. Btn.Font = Enum.Font.Fantasy
  866. Btn.TextScaled = true
  867. Btn.TextStrokeTransparency = 0
  868. Btn.TextColor3 = Color3.new(0,1,1)
  869. Btn.TextStrokeColor3 = Color3.new(0,0,0)
  870. Btn.BackgroundColor3 = Color3.new(1,0,0)
  871. Btn.BackgroundTransparency = 0.5
  872. local AddOn = "Doesn't look like a lot of time until danger. Prepare your Power and Shield!"
  873. if Spawned < 1 then
  874. local Choices = math.random(1,3)
  875. if Choices == 1 then
  876. if game:GetService("Lighting").ClockTime <= 4 or game:GetService("Lighting").ClockTime >= 19 then
  877. AddOn = "IT'S THE NIGHT... Defend yourself. Don't point the fire at your face."
  878. else
  879. AddOn = "IT'S THE TIME... Defend yourself. Don't point the fire at your face."
  880. end
  881. elseif Choices == 2 then
  882. AddOn = "A mysterious place, huh? Looks like I'm really lost... No time to rest!"
  883. end
  884. else
  885. Btn.TextColor3 = Color3.new(1-clr.r,1-clr.g,1-clr.b)
  886. Btn.BackgroundColor3 = clr.Color
  887. AddOn = [[Previous stats:
  888. Hits landed: ]]..LHitCount..[[
  889.  
  890. Blocked from: ]]..LDefCount..[[
  891.  
  892. Damage dealt: ]]..LDamageDone..[[
  893.  
  894. Health healed: ]]..LHealthHealed..[[
  895.  
  896. Confirmed last hits: ]]..LConfirmLast..[[
  897.  
  898. Explosive finishes: ]]..LExplosiveFinish..[[
  899.  
  900. Minions spawned: ]]..LMinionsSpawned..[[
  901.  
  902. Deaths rejected: ]]..LRejected..[[
  903.  
  904. Wizards spawned: ]]..Spawned
  905. end
  906. Btn.Text = AddOn
  907. Btn.MouseButton1Click:Connect(function()
  908. ScreenGui:Destroy()
  909. end)
  910. Spawned = Spawned + 1
  911. LHitCount = 0
  912. LDefCount = 0
  913. LDamageDone = 0
  914. LHealthHealed = 0
  915. LConfirmLast = 0
  916. LExplosiveFinish = 0
  917. LMinionsSpawned = 0
  918. LRejected = 0
  919. delay(0.25,function()
  920. ScreenGui.Parent = owner:FindFirstChild("PlayerGui")
  921. game:GetService("Debris"):AddItem(ScreenGui,60)
  922. end)
  923. end
  924. local Color = clr
  925. local T = Instance.new("Tool")
  926. T.Name = "Wand"
  927. T.TextureId = "rbxasset://textures/DevConsole/Minimize.png"
  928. local H = Instance.new("Part",T)
  929. H.Name = "Handle"
  930. H.Locked = true
  931. H.Size = Vector3.new(0.25,1.5,0.25)
  932. H.BrickColor = BrickColor.new("Brown")
  933. H.Material = Enum.Material.Wood
  934. local Att = Instance.new("Attachment",H)
  935. Att.Position = Vector3.new(0,0.75,0)
  936. local Att2 = Instance.new("Attachment",H)
  937. Att2.Position = Vector3.new(0,-0.75,0)
  938. local PE = Instance.new("ParticleEmitter",Att)
  939. PE.LightEmission = 0.8
  940. PE.Speed = NumberRange.new(0)
  941. PE.Lifetime = NumberRange.new(0.3,0.8)
  942. PE.Size = NumberSequence.new(0.8,0)
  943. PE.Rotation = NumberRange.new(0,360)
  944. PE.Rate = 100
  945. PE.ZOffset = 0.4
  946. PE.Enabled = false
  947. local PE2 = Instance.new("ParticleEmitter",Att2)
  948. PE2.Texture = "rbxasset://textures/particles/smoke_main.dds"
  949. PE2.LightEmission = 0.8
  950. PE2.Speed = NumberRange.new(3)
  951. PE2.Lifetime = NumberRange.new(0.5)
  952. PE2.Size = NumberSequence.new(0.3)
  953. PE2.Transparency = NumberSequence.new(0.8,0.95)
  954. PE2.Rotation = NumberRange.new(0,360)
  955. PE2.Rate = 100
  956. PE2.ZOffset = 0.4
  957. PE2.LockedToPart = true
  958. PE2.Color = ColorSequence.new(Color3.new(0.8,0.6,1),Color3.new(0.3,0,1))
  959. local PE3 = Instance.new("ParticleEmitter",Att)
  960. PE3.LightEmission = 0.8
  961. PE3.Speed = NumberRange.new(10)
  962. PE3.Lifetime = NumberRange.new(0.8,1.2)
  963. PE3.Size = NumberSequence.new(0.8,0)
  964. PE3.Rotation = NumberRange.new(0,360)
  965. PE3.SpreadAngle = Vector2.new(360,360)
  966. PE3.Rate = 100
  967. PE3.ZOffset = 0.4
  968. PE3.Enabled = false
  969. local PE4 = Instance.new("ParticleEmitter",Att)
  970. PE4.Texture = "rbxasset://textures/DevConsole/Maximize.png"
  971. PE4.LightEmission = 0.8
  972. PE4.Lifetime = NumberRange.new(0.8,1.4)
  973. PE4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  974. PE4.SpreadAngle = Vector2.new(360,360)
  975. PE4.Drag = 8
  976. PE4.ZOffset = 0.4
  977. PE4.Enabled = false
  978. local BBG = Instance.new("BillboardGui",H)
  979. BBG.Size = UDim2.new(5,0,1.5,0)
  980. BBG.LightInfluence = 0.25
  981. BBG.StudsOffset = Vector3.new(-0.5, 0.5, -1)
  982. BBG.Adornee = H
  983. local TL = Instance.new("TextBox",BBG)
  984. TL.AnchorPoint = Vector2.new(0.5,0.5)
  985. TL.Position = UDim2.new(0.5,0,0.5,0)
  986. TL.Size = UDim2.new(1,0,1,0)
  987. TL.BackgroundTransparency = 1
  988. TL.TextStrokeTransparency = 0
  989. TL.TextScaled = true
  990. TL.Font = Enum.Font.Fantasy
  991. TL.TextColor3 = Color3.new(0,0,0)
  992. TL.TextStrokeColor3 = Color.Color
  993. TL.TextTransparency = 0
  994. TL.Text = ""
  995. local I = Instance.new("Tool")
  996. I.Name = "Notes"
  997. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  998. local H2 = Instance.new("Part",I)
  999. H2.Name = "Handle"
  1000. H2.Locked = true
  1001. H2.Size = Vector3.new(2.4,1.35,0.2)
  1002. H2.BrickColor = BrickColor.new("Cashmere")
  1003. H2.Material = Enum.Material.Sand
  1004. local SG = Instance.new("SurfaceGui",H2)
  1005. SG.Face = Enum.NormalId.Back
  1006. SG.CanvasSize = Vector2.new(950,500)
  1007. local TB = Instance.new("TextBox",SG)
  1008. TB.TextScaled = true
  1009. TB.Size = UDim2.new(1,0,1,0)
  1010. TB.BackgroundColor3 = Color3.new(0.9,0.75,0.6)
  1011. TB.Font = Enum.Font.Code
  1012. TB.TextXAlignment = Enum.TextXAlignment.Left
  1013. TB.Text = [[ <<< Are you a wizard??? >>>
  1014. Start with 500 mana, gain 2 per 0.05 sec
  1015. Click Action Mana Dmg/Dur Special Detail
  1016. 1 Melee/BlastStab 0 30+4^P 2Knockback K(14*P)
  1017. 2 Fire Blast (*5) 10 17+3^P 3Stnd 7Boom R(3*(P-2))
  1018. 3 Air Burst 10 2+(2^P)/2 3Spin R(1+5*P) F(32+4*P) K(20*P)
  1019. 4 Ice Shot (*5) 10 4+2^P 2Sit 3Slow R(3*(P-2)) S(P)
  1020. 5 Healing 100 15*P R(1+5*P)
  1021. 6 Shield 150 100*P T(P*100/4)
  1022. 7 Power Increase 70
  1023. 8 Block Throw 50 30+3^P 2Sit 10Mtl V(24*P)
  1024. 9 Summon 300 34 N(P)
  1025. Aim up: Cast spell in air / Angle down: Cast when idle
  1026. F A I Put wand away to make your minions find another target
  1027. 2 3 4 If you're gone, minions will be gone in a minute
  1028. S 9 M 5 H Not giving up? Click message that appears when taken down
  1029. 8 7 6 Maximum 23 Power Increases at once
  1030. B P D Use Block Throw when standing still to turn it into a ball
  1031. Shield will have a brief moment of fully blocking
  1032. A fully blocking Shield can distract the ghosts ~ JJK83]]
  1033. local SoundA = Instance.new("Sound",H)
  1034. SoundA.SoundId = "rbxasset://sounds/bass.mp3"
  1035. SoundA.Looped = true
  1036. local SoundB = Instance.new("Sound",H)
  1037. SoundB.SoundId = "rbxasset://sounds/electronicpingshort.wav"
  1038. SoundB.Volume = 1
  1039. local SoundC = Instance.new("Sound",H)
  1040. SoundC.SoundId = "rbxasset://sounds/snap.mp3"
  1041. SoundC.Volume = 1
  1042. local ShieldSoundActive = false
  1043. local function Play(sound,pitch,vol)
  1044. sound.TimePosition = 0.2
  1045. sound.PlaybackSpeed = pitch
  1046. sound.Volume = vol
  1047. sound:Play()
  1048. end
  1049. local function Swing()
  1050. spawn(function()
  1051. for i = 1,6 do
  1052. Play(SoundC,0.1+i*0.15,0.5)
  1053. wait(0.05)
  1054. end
  1055. for i = 1,3 do
  1056. Play(SoundC,1,0.5-i*0.15)
  1057. wait(0.05)
  1058. end
  1059. end)
  1060. end
  1061. local function Fail()
  1062. spawn(function()
  1063. for i = 1,3 do
  1064. Play(SoundB,0.8,1)
  1065. wait(0.05)
  1066. end
  1067. for i = 1,10 do
  1068. Play(SoundB,0.4-i*0.03,1-i*0.09)
  1069. wait(0.05)
  1070. end
  1071. end)
  1072. end
  1073. local function FireBlast()
  1074. spawn(function()
  1075. for i = 1,3 do
  1076. Play(SoundC,0.8+i*0.08,1.5)
  1077. wait(0.05)
  1078. end
  1079. for i = 1,8 do
  1080. Play(SoundC,0.1+0.4/(i/3),1.5-i*0.05)
  1081. wait(0.05)
  1082. end
  1083. end)
  1084. end
  1085. local function IceShot()
  1086. spawn(function()
  1087. for i = 1,6 do
  1088. Play(SoundB,0.75,i*0.1)
  1089. Play(SoundC,2,i*0.1)
  1090. wait(0.05)
  1091. end
  1092. for i = 1,8 do
  1093. for a = 1,3 do
  1094. Play(SoundB,0.7,1-i*0.05-a*0.05)
  1095. Play(SoundC,2-i*0.1,1-i*0.05-a*0.05)
  1096. wait(0.05)
  1097. end
  1098. end
  1099. end)
  1100. end
  1101. local function Healing()
  1102. spawn(function()
  1103. for i = 1,35 do
  1104. Play(SoundC,0.5+i*0.05,1-i*0.025)
  1105. wait(0.05)
  1106. end
  1107. end)
  1108. end
  1109. local function Recover()
  1110. spawn(function()
  1111. for i = 1,7 do
  1112. Play(SoundB,1.42+i*0.2475,1)
  1113. wait(0.05)
  1114. end
  1115. for i = 1,15 do
  1116. Play(SoundB,3.4,1-i*0.05)
  1117. wait(0.05)
  1118. end
  1119. end)
  1120. end
  1121. local function Shield()
  1122. spawn(function()
  1123. ShieldSoundActive = true
  1124. for i = 1,15 do
  1125. Play(SoundA,2+i*0.2,1)
  1126. wait(0.05)
  1127. end
  1128. for i = 1,25 do
  1129. Play(SoundA,5,1-i*0.03)
  1130. wait(0.05)
  1131. end
  1132. SoundA:Stop()
  1133. ShieldSoundActive = false
  1134. end)
  1135. end
  1136. local function PowerIncrease()
  1137. spawn(function()
  1138. for i = 1,35 do
  1139. Play(SoundC,1+i*0.05,0.8-i*0.02)
  1140. wait(0.05)
  1141. end
  1142. end)
  1143. end
  1144. local function BlockThrow()
  1145. spawn(function()
  1146. for i = 1,38 do
  1147. Play(SoundC,1.6-i*0.02,1.2-i*0.03)
  1148. wait(0.05)
  1149. end
  1150. end)
  1151. end
  1152. local HatPart
  1153. local Hat2
  1154. local Hat3
  1155. local Hat4
  1156. local TextB
  1157. local DontChase = {}
  1158. local Gh = {}
  1159. local function Update()
  1160. I.ToolTip = "Now = H: "..LHitCount.." / B: "..LDefCount.." / D: "..LDamageDone.." / T: "..LHealthHealed.." / C: "..LConfirmLast.." / E: "..LExplosiveFinish.." / M: "..LMinionsSpawned.." / R: "..LRejected.." /// Total = H: "..HitCount.." / B: "..DefCount.." / D: "..DamageDone.." / T: "..HealthHealed.." / C: "..ConfirmLast.." / E: "..ExplosiveFinish.." / M: "..MinionsSpawned.." / R: "..Rejected.." / S: "..Spawned
  1161. end
  1162. local function NotifyHit()
  1163. I.TextureId = "rbxasset://textures/particles/sparkles_main.dds"
  1164. delay(0.5,function()
  1165. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  1166. end)
  1167. end
  1168. local function NotifyBlock()
  1169. I.TextureId = "rbxasset://textures/blackBkg_round.png"
  1170. delay(0.5,function()
  1171. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  1172. end)
  1173. end
  1174. local function NotifyKO()
  1175. spawn(function()
  1176. for i = 1,10 do
  1177. I.TextureId = "rbxasset://textures/DevConsole/Close.png"
  1178. wait(0.1)
  1179. I.TextureId = "rbxasset://textures/DevConsole/Maximize.png"
  1180. wait(0.1)
  1181. end
  1182. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  1183. end)
  1184. end
  1185. local function NotifyKaboom()
  1186. spawn(function()
  1187. for i = 1,10 do
  1188. I.TextureId = "rbxasset://textures/explosion.png"
  1189. wait(0.05)
  1190. I.TextureId = "rbxasset://textures/Cursors/Gamepad/PointerOver.png"
  1191. wait(0.05)
  1192. end
  1193. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  1194. end)
  1195. end
  1196. local function NotifyHeal()
  1197. I.TextureId = "rbxasset://textures/GameSettings/CheckedBoxDark.png"
  1198. delay(0.5,function()
  1199. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  1200. end)
  1201. end
  1202. local function NotifyHeal2()
  1203. I.TextureId = "rbxasset://textures/GameSettings/CheckedBoxLight.png"
  1204. delay(0.5,function()
  1205. I.TextureId = "rbxasset://textures/ui/Settings/MenuBarIcons/HelpTab.png"
  1206. end)
  1207. end
  1208. local function Make(Name,CF,Color,Player,Summoner,SHum,SetPlayer,Wand,Face,HM,HT,AddOns)
  1209. local Model = Instance.new("Model")
  1210. Model.Name = Name
  1211. local H = Instance.new("Part",Model)
  1212. H.Name = "Head"
  1213. H.CFrame = CF*CFrame.new(0,1.5,0)
  1214. H.Size = Vector3.new(2,1,1)
  1215. H.TopSurface = Enum.SurfaceType.Smooth
  1216. local face = Instance.new("Decal",H)
  1217. face.Name = "face"
  1218. face.Texture = Face
  1219. local Mesh = Instance.new("SpecialMesh",H)
  1220. Mesh.Scale = Vector3.new(1.25,1.25,1.25)
  1221. if HM then
  1222. Mesh.Scale = Vector3.new(1,1,1)
  1223. Mesh.MeshId = HM
  1224. if HT then
  1225. Mesh.TextureId = HT
  1226. end
  1227. end
  1228. local T = Instance.new("Part",Model)
  1229. T.Name = "Torso"
  1230. T.CFrame = CF
  1231. T.Size = Vector3.new(2,2,1)
  1232. T.LeftSurface = Enum.SurfaceType.Weld
  1233. T.RightSurface = Enum.SurfaceType.Weld
  1234. local roblox = Instance.new("Decal",T)
  1235. roblox.Name = "roblox"
  1236. local LA = Instance.new("Part",Model)
  1237. LA.Name = "Left Arm"
  1238. LA.CFrame = CF*CFrame.new(-1.5,0,0)
  1239. LA.Size = Vector3.new(1,2,1)
  1240. local RA = Instance.new("Part",Model)
  1241. RA.Name = "Right Arm"
  1242. RA.CFrame = CF*CFrame.new(1.5,0,0)
  1243. RA.Size = Vector3.new(1,2,1)
  1244. local LL = Instance.new("Part",Model)
  1245. LL.Name = "Left Leg"
  1246. LL.CFrame = CF*CFrame.new(-0.5,-2,0)
  1247. LL.Size = Vector3.new(1,2,1)
  1248. LL.BottomSurface = Enum.SurfaceType.Smooth
  1249. local RL = Instance.new("Part",Model)
  1250. RL.Name = "Right Leg"
  1251. RL.CFrame = CF*CFrame.new(0.5,-2,0)
  1252. RL.Size = Vector3.new(1,2,1)
  1253. RL.BottomSurface = Enum.SurfaceType.Smooth
  1254. local R = Instance.new("Part",Model)
  1255. R.Name = "HumanoidRootPart"
  1256. R.CFrame = CF
  1257. R.Size = Vector3.new(2,2,1)
  1258. R.Transparency = 1
  1259. Model.PrimaryPart = H
  1260. H.Locked = true
  1261. T.Locked = true
  1262. LA.Locked = true
  1263. RA.Locked = true
  1264. LL.Locked = true
  1265. RL.Locked = true
  1266. R.Locked = true
  1267. local N = Instance.new("Motor6D",T)
  1268. N.Name = "Neck"
  1269. N.Part0 = T
  1270. N.Part1 = H
  1271. N.C0 = CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0)
  1272. N.C1 = CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,-0)
  1273. N.MaxVelocity = 0.2
  1274. local LS = Instance.new("Motor6D",T)
  1275. LS.Name = "Left Shoulder"
  1276. LS.Part0 = T
  1277. LS.Part1 = LA
  1278. LS.C0 = CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0)
  1279. LS.C1 = CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0)
  1280. LS.MaxVelocity = 0.2
  1281. local RS = Instance.new("Motor6D",T)
  1282. RS.Name = "Right Shoulder"
  1283. RS.Part0 = T
  1284. RS.Part1 = RA
  1285. RS.C0 = CFrame.new(1,0.5,0,0,0,1,0,1,-0,-1,0,0)
  1286. RS.C1 = CFrame.new(-0.5,0.5,0,0,0,1,0,1,-0,-1,0,0)
  1287. RS.MaxVelocity = 0.2
  1288. local LH = Instance.new("Motor6D",T)
  1289. LH.Name = "Left Hip"
  1290. LH.Part0 = T
  1291. LH.Part1 = LL
  1292. LH.C0 = CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0)
  1293. LH.C1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
  1294. LH.MaxVelocity = 0.2
  1295. local RH = Instance.new("Motor6D",T)
  1296. RH.Name = "Right Hip"
  1297. RH.Part0 = T
  1298. RH.Part1 = RL
  1299. RH.C0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
  1300. RH.C1 = CFrame.new(0.5,1,0,0,0,1,0,1,-0,-1,0,0)
  1301. RH.MaxVelocity = 0.2
  1302. local RJ = Instance.new("Motor6D",R)
  1303. RJ.Name = "RootJoint"
  1304. RJ.Part0 = R
  1305. RJ.Part1 = T
  1306. RJ.C0 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,-0)
  1307. RJ.C1 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,-0)
  1308. RJ.MaxVelocity = 0.2
  1309. N.DesiredAngle = 0.385
  1310. LS.DesiredAngle = 0.385
  1311. RS.DesiredAngle = 1.57
  1312. LH.DesiredAngle = -0.385
  1313. RH.DesiredAngle = -0.385
  1314. RJ.DesiredAngle = -0.385
  1315. local FCA = Instance.new("Attachment",H)
  1316. FCA.Name = "FaceCenterAttachment"
  1317. local FFA = Instance.new("Attachment",H)
  1318. FFA.Name = "FaceFrontAttachment"
  1319. FFA.Position = Vector3.new(0,0,-0.6)
  1320. local HrA = Instance.new("Attachment",H)
  1321. HrA.Name = "HairAttachment"
  1322. HrA.Position = Vector3.new(0,0.6,0)
  1323. local HtA = Instance.new("Attachment",H)
  1324. HtA.Name = "HatAttachment"
  1325. HtA.Position = Vector3.new(0,0.6,0)
  1326. local BBA = Instance.new("Attachment",T)
  1327. BBA.Name = "BodyBackAttachment"
  1328. BBA.Position = Vector3.new(0,0,0.5)
  1329. local BFA = Instance.new("Attachment",T)
  1330. BFA.Name = "BodyFrontAttachment"
  1331. BFA.Position = Vector3.new(0,0,-0.5)
  1332. local LCA = Instance.new("Attachment",T)
  1333. LCA.Name = "LeftCollarAttachment"
  1334. LCA.Position = Vector3.new(-1,1,0)
  1335. local NA = Instance.new("Attachment",T)
  1336. NA.Name = "NeckAttachment"
  1337. NA.Position = Vector3.new(0,1,0)
  1338. local RCA = Instance.new("Attachment",T)
  1339. RCA.Name = "RightCollarAttachment"
  1340. RCA.Position = Vector3.new(1,1,0)
  1341. local WBA = Instance.new("Attachment",T)
  1342. WBA.Name = "WaistBackAttachment"
  1343. WBA.Position = Vector3.new(0,-1,0.5)
  1344. local WCA = Instance.new("Attachment",T)
  1345. WCA.Name = "WaistCenterAttachment"
  1346. WCA.Position = Vector3.new(0,-1,0)
  1347. local WFA = Instance.new("Attachment",T)
  1348. WFA.Name = "WaistFrontAttachment"
  1349. WFA.Position = Vector3.new(0,-1,-0.5)
  1350. local LGA = Instance.new("Attachment",LA)
  1351. LGA.Name = "LeftGripAttachment"
  1352. LGA.Position = Vector3.new(0,-1,0)
  1353. local LSA = Instance.new("Attachment",LA)
  1354. LSA.Name = "LeftShoulderAttachment"
  1355. LSA.Position = Vector3.new(0,1,0)
  1356. local RGA = Instance.new("Attachment",RA)
  1357. RGA.Name = "RightGripAttachment"
  1358. RGA.Position = Vector3.new(0,-1,0)
  1359. local RSA = Instance.new("Attachment",RA)
  1360. RSA.Name = "RightShoulderAttachment"
  1361. RSA.Position = Vector3.new(0,1,0)
  1362. local LFA = Instance.new("Attachment",LL)
  1363. LFA.Name = "LeftFootAttachment"
  1364. local RFA = Instance.new("Attachment",RL)
  1365. RFA.Name = "RightFootAttachment"
  1366. local RtA = Instance.new("Attachment",R)
  1367. RtA.Name = "RootAttachment"
  1368. local Humanoid = Instance.new("Humanoid",Model)
  1369. Humanoid.BreakJointsOnDeath = false
  1370. Humanoid.WalkSpeed = 24
  1371. Instance.new("Animator",Humanoid)
  1372. local pof = true
  1373. local function Died()
  1374. pof = false
  1375. local Amount = 1
  1376. if SetPlayer then
  1377. Amount = 3.5
  1378. end
  1379. game:GetService("Debris"):AddItem(Model,Amount)
  1380. N.DesiredAngle = 0
  1381. LS.DesiredAngle = -3.14
  1382. RS.DesiredAngle = 3.14
  1383. LH.DesiredAngle = -1.57
  1384. RH.DesiredAngle = 1.57
  1385. RJ.DesiredAngle = 0
  1386. wait(0.25)
  1387. LH.DesiredAngle = 0
  1388. RH.DesiredAngle = 0
  1389. end
  1390. Humanoid.Died:Connect(Died)
  1391. local In = true
  1392. table.insert(Gh,Model)
  1393. local function Changed(property)
  1394. if property == "Parent" and Model.Parent == nil then
  1395. if In then
  1396. In = false
  1397. pof = false
  1398. local P = Instance.new("Part",script)
  1399. P.Name = "VanishEffect"
  1400. P.Shape = Enum.PartType.Ball
  1401. P.Size = Vector3.new(1,1,1)
  1402. P.Transparency = 1
  1403. P.Material = Enum.Material.Neon
  1404. P.Position = R.Position
  1405. P.Anchored = true
  1406. P.Locked = true
  1407. P.CanCollide = false
  1408. P.BrickColor = Color
  1409. Poof(P.Position)
  1410. for i = 1,10 do
  1411. P.Transparency = P.Transparency - 0.05
  1412. P.Size = P.Size + Vector3.new(0.5,0.5,0.5)
  1413. wait(0.05)
  1414. end
  1415. for i = 1,5 do
  1416. P.Transparency = P.Transparency + 0.1
  1417. wait(0.05)
  1418. end
  1419. P:Destroy()
  1420. end
  1421. end
  1422. end
  1423. Model.Changed:Connect(Changed)
  1424. local function Changed2(property)
  1425. if property == "Parent" and Summoner.Parent == nil and pof then
  1426. pof = false
  1427. game:GetService("Debris"):AddItem(Model,60+table.find(Gh,Model)*0.5)
  1428. end
  1429. end
  1430. if Summoner then
  1431. Summoner.Changed:Connect(Changed2)
  1432. Changed2("Parent")
  1433. if SHum then
  1434. SHum.Died:Connect(function()
  1435. if pof then
  1436. pof = false
  1437. game:GetService("Debris"):AddItem(Model,60+table.find(Gh,Model)*0.5)
  1438. end
  1439. end)
  1440. end
  1441. end
  1442. if SetPlayer then
  1443. SetPlayer.Character = Model
  1444. end
  1445. for i = 1,#AddOns do
  1446. AddOns[i]:Clone().Parent = Model
  1447. end
  1448. local D = Model:GetDescendants()
  1449. for i = 1,#D do
  1450. if D[i]:IsA("BasePart") then
  1451. D[i].BrickColor = Color
  1452. D[i].CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Plastic)
  1453. D[i].Material = Enum.Material.ForceField
  1454. end
  1455. end
  1456. spawn(function()
  1457. local L = Instance.new("PointLight",R)
  1458. L.Range = 5
  1459. L.Color = Color.Color
  1460. local P = Instance.new("Part",script)
  1461. P.Name = "AppearEffect"
  1462. P.Shape = Enum.PartType.Ball
  1463. P.Size = Vector3.new(1,1,1)
  1464. P.Transparency = 1
  1465. P.Material = Enum.Material.Neon
  1466. P.CFrame = CF+Vector3.new(0,-2,0)
  1467. P.Anchored = true
  1468. P.Locked = true
  1469. P.CanCollide = false
  1470. P.BrickColor = Color
  1471. if not SetPlayer then
  1472. Appear(P.Position)
  1473. end
  1474. for i = 1,10 do
  1475. P.Transparency = P.Transparency - 0.1
  1476. P.Size = P.Size + Vector3.new(0.25,0.25,0.25)
  1477. P.Position = P.Position + Vector3.new(0,0.125,0)
  1478. if not SetPlayer then
  1479. wait(0.1)
  1480. end
  1481. end
  1482. Poof(P.Position)
  1483. if not SetPlayer then
  1484. Model.Parent = script
  1485. P:Destroy()
  1486. else
  1487. game:GetService("Debris"):AddItem(P,0.25)
  1488. end
  1489. local Targ
  1490. local Hum
  1491. local Count = 0
  1492. local LastAttack = 0
  1493. table.insert(DontChase,Humanoid)
  1494. local Bill
  1495. local Image
  1496. local ScreenGui
  1497. local Btn
  1498. local Atk = true
  1499. if SetPlayer then
  1500. if SetPlayer.Parent and game:GetService("Players"):GetPlayerFromCharacter(Model) == SetPlayer then
  1501. local Gui = SetPlayer:FindFirstChildWhichIsA("PlayerGui")
  1502. if Gui then
  1503. Bill = Instance.new("BillboardGui",Gui)
  1504. Bill.Size = UDim2.new(8,0,8,0)
  1505. Bill.AlwaysOnTop = true
  1506. Image = Instance.new("ImageLabel",Bill)
  1507. Image.Image = "rbxasset://textures/MouseLockedCursor.png"
  1508. Image.Size = UDim2.new(1,0,1,0)
  1509. Image.Position = UDim2.new(0.5,0,0.5,0)
  1510. Image.AnchorPoint = Vector2.new(0.5,0.5)
  1511. Image.BackgroundTransparency = 1
  1512. Image.ImageTransparency = 1
  1513. Image.ImageColor3 = Color.Color
  1514. ScreenGui = Instance.new("ScreenGui",Gui)
  1515. ScreenGui.Name = "Toggle"
  1516. Btn = Instance.new("TextButton",ScreenGui)
  1517. Btn.Size = UDim2.new(0.075,0,0.1,0)
  1518. Btn.Position = UDim2.new(0.875,0,0.2,0)
  1519. Btn.Font = Enum.Font.Fantasy
  1520. Btn.TextScaled = true
  1521. Btn.TextStrokeTransparency = 0
  1522. Btn.TextColor3 = Color3.new(1-Color.r,1-Color.g,1-Color.b)
  1523. Btn.TextStrokeColor3 = Color3.new(0,0,0)
  1524. Btn.BackgroundColor3 = Color.Color
  1525. Btn.BackgroundTransparency = 0.5
  1526. Btn.Text = "Attack by running: On"
  1527. Btn.MouseButton1Click:Connect(function()
  1528. Atk = not Atk
  1529. if Atk then
  1530. Btn.Text = "Attack by running: On"
  1531. else
  1532. Btn.Text = "Attack by running: Off"
  1533. end
  1534. end)
  1535. end
  1536. else
  1537. game:GetService("Debris"):AddItem(Model,1)
  1538. end
  1539. end
  1540. spawn(function()
  1541. while In do
  1542. wait(1)
  1543. Humanoid.Health = Humanoid.Health + 1
  1544. end
  1545. end)
  1546. local Speed = 0
  1547. local Tool
  1548. local ToolAnim = "Slash"
  1549. local LastToolAnim = 0
  1550. local Look = false
  1551. local AnimFrame = 0
  1552. local State = Humanoid:GetState()
  1553. local LastGround = 0
  1554. local function FallCheck(st)
  1555. if st == Enum.HumanoidStateType.FallingDown or st == Enum.HumanoidStateType.PlatformStanding or st == Enum.HumanoidStateType.Ragdoll or st == Enum.HumanoidStateType.Physics then
  1556. return true
  1557. else
  1558. return false
  1559. end
  1560. end
  1561. local function RunCheck(st)
  1562. if st == Enum.HumanoidStateType.Running or st == Enum.HumanoidStateType.RunningNoPhysics then
  1563. return true
  1564. else
  1565. return false
  1566. end
  1567. end
  1568. local function StateChanged(old,new)
  1569. State = new
  1570. end
  1571. Humanoid.StateChanged:Connect(StateChanged)
  1572. local function Movement(spd)
  1573. Speed = spd
  1574. end
  1575. Humanoid.Running:Connect(Movement)
  1576. Humanoid.Climbing:Connect(Movement)
  1577. Humanoid.Swimming:Connect(Movement)
  1578. spawn(function()
  1579. while In do
  1580. Tool = Model:FindFirstChildWhichIsA("Tool")
  1581. if Tool then
  1582. local A = Tool:FindFirstChild("toolanim")
  1583. if A and A:IsA("StringValue") then
  1584. LastToolAnim = workspace.DistributedGameTime
  1585. ToolAnim = A.Value
  1586. game:GetService("Debris"):AddItem(A,0.2)
  1587. if not FallCheck(State) and workspace.DistributedGameTime <= LastAttack + 0.75 then
  1588. if ToolAnim == "Lunge" then
  1589. N.DesiredAngle = 0
  1590. LS.DesiredAngle = 0.7
  1591. RS.DesiredAngle = 1.57
  1592. LH.DesiredAngle = 1.57
  1593. RH.DesiredAngle = 0.7
  1594. RJ.DesiredAngle = 0
  1595. elseif ToolAnim == "Slash" then
  1596. RS.DesiredAngle = 0
  1597. end
  1598. end
  1599. end
  1600. end
  1601. wait(0.05)
  1602. end
  1603. end)
  1604. spawn(function()
  1605. while In and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead do
  1606. if RunCheck(State) then
  1607. LastGround = workspace.DistributedGameTime
  1608. end
  1609. if workspace.DistributedGameTime <= LastAttack + 0.75 then
  1610. wait(0.05)
  1611. else
  1612. local Action = 0
  1613. if Tool then
  1614. if workspace.DistributedGameTime < LastToolAnim + 0.25 then
  1615. if ToolAnim == "Lunge" then
  1616. N.DesiredAngle = 0
  1617. LS.DesiredAngle = 0.7
  1618. RS.DesiredAngle = 1.57
  1619. LH.DesiredAngle = 1.57
  1620. RH.DesiredAngle = 0.7
  1621. RJ.DesiredAngle = 0
  1622. Action = 3
  1623. elseif ToolAnim == "Slash" then
  1624. RS.DesiredAngle = 0
  1625. Action = 2
  1626. end
  1627. else
  1628. RS.DesiredAngle = 1.57
  1629. Action = 1
  1630. end
  1631. end
  1632. if FallCheck(State) then
  1633. AnimFrame = 0
  1634. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1635. N.DesiredAngle = 0
  1636. RJ.DesiredAngle = 0
  1637. LS.DesiredAngle = -3.14
  1638. if not Tool then
  1639. RS.DesiredAngle = 3.14
  1640. end
  1641. LH.DesiredAngle = 1.57
  1642. RH.DesiredAngle = -1.57
  1643. end
  1644. wait(0.25)
  1645. while FallCheck(Humanoid:GetState()) do
  1646. if workspace.DistributedGameTime > LastAttack + 0.75 then
  1647. N.DesiredAngle = 0
  1648. RJ.DesiredAngle = 0
  1649. LS.DesiredAngle = -3.14
  1650. if not Tool then
  1651. RS.DesiredAngle = 3.14
  1652. end
  1653. LH.DesiredAngle = 0
  1654. RH.DesiredAngle = 0
  1655. if Tool then
  1656. if workspace.DistributedGameTime < LastToolAnim + 0.25 then
  1657. if ToolAnim == "Lunge" then
  1658. N.DesiredAngle = 0
  1659. LS.DesiredAngle = 0.7
  1660. RS.DesiredAngle = 1.57
  1661. LH.DesiredAngle = 1.57
  1662. RH.DesiredAngle = 0.7
  1663. RJ.DesiredAngle = 0
  1664. Action = 3
  1665. elseif ToolAnim == "Slash" then
  1666. RS.DesiredAngle = 0
  1667. Action = 2
  1668. end
  1669. else
  1670. RS.DesiredAngle = 1.57
  1671. Action = 1
  1672. end
  1673. end
  1674. end
  1675. wait(0.05)
  1676. end
  1677. elseif State == Enum.HumanoidStateType.Freefall then
  1678. AnimFrame = 0
  1679. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1680. if R.Velocity.Y > 1 or workspace.DistributedGameTime < LastGround + 0.15 then
  1681. if not Look then
  1682. N.DesiredAngle = 0
  1683. RJ.DesiredAngle = 0
  1684. end
  1685. LS.DesiredAngle = 0.7
  1686. if not Tool then
  1687. RS.DesiredAngle = -0.7
  1688. end
  1689. LH.DesiredAngle = 0.7
  1690. RH.DesiredAngle = -0.7
  1691. else
  1692. if not Look then
  1693. N.DesiredAngle = 0
  1694. RJ.DesiredAngle = 0
  1695. end
  1696. LS.DesiredAngle = -3.6
  1697. if not Tool then
  1698. RS.DesiredAngle = 3.6
  1699. end
  1700. LH.DesiredAngle = -0.7
  1701. RH.DesiredAngle = 0.3
  1702. end
  1703. end
  1704. wait(0.05)
  1705. elseif State == Enum.HumanoidStateType.Climbing then
  1706. if math.abs(Speed) > 0.1 then
  1707. if Speed > 0 then
  1708. AnimFrame = AnimFrame + 1
  1709. if AnimFrame > 4 then
  1710. AnimFrame = 1
  1711. end
  1712. else
  1713. AnimFrame = AnimFrame - 1
  1714. if AnimFrame < 1 then
  1715. AnimFrame = 4
  1716. end
  1717. end
  1718. if AnimFrame == 1 then
  1719. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1720. if not Look then
  1721. N.DesiredAngle = 0
  1722. RJ.DesiredAngle = 0
  1723. end
  1724. LS.DesiredAngle = -1.2
  1725. if not Tool then
  1726. RS.DesiredAngle = 1.9
  1727. end
  1728. LH.DesiredAngle = -0.7
  1729. RH.DesiredAngle = 0
  1730. end
  1731. elseif AnimFrame == 2 then
  1732. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1733. if not Look then
  1734. N.DesiredAngle = 0
  1735. RJ.DesiredAngle = 0
  1736. end
  1737. LS.DesiredAngle = -1.4
  1738. if not Tool then
  1739. RS.DesiredAngle = 1.6
  1740. end
  1741. LH.DesiredAngle = -0.5
  1742. RH.DesiredAngle = 0.3
  1743. end
  1744. elseif AnimFrame == 3 then
  1745. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1746. if not Look then
  1747. N.DesiredAngle = 0
  1748. RJ.DesiredAngle = 0
  1749. end
  1750. LS.DesiredAngle = -1.9
  1751. if not Tool then
  1752. RS.DesiredAngle = 1.2
  1753. end
  1754. LH.DesiredAngle = 0
  1755. RH.DesiredAngle = 0.7
  1756. end
  1757. else
  1758. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1759. if not Look then
  1760. N.DesiredAngle = 0
  1761. RJ.DesiredAngle = 0
  1762. end
  1763. LS.DesiredAngle = -1.6
  1764. if not Tool then
  1765. RS.DesiredAngle = 1.4
  1766. end
  1767. LH.DesiredAngle = -0.3
  1768. RH.DesiredAngle = 0.5
  1769. end
  1770. end
  1771. wait(0.15)
  1772. else
  1773. AnimFrame = 0
  1774. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1775. if not Look then
  1776. N.DesiredAngle = 0
  1777. RJ.DesiredAngle = 0
  1778. end
  1779. LS.DesiredAngle = -1.57
  1780. if not Tool then
  1781. RS.DesiredAngle = 1.57
  1782. end
  1783. LH.DesiredAngle = -0.5
  1784. RH.DesiredAngle = 0.5
  1785. end
  1786. wait(0.05)
  1787. end
  1788. elseif RunCheck(State) and Speed > 0.1 then
  1789. AnimFrame = AnimFrame + 1
  1790. if AnimFrame > 4 then
  1791. AnimFrame = 1
  1792. end
  1793. if Speed > 20 then
  1794. if AnimFrame == 1 then
  1795. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1796. if not Look then
  1797. N.DesiredAngle = -0.07
  1798. RJ.DesiredAngle = 0.1
  1799. end
  1800. LS.DesiredAngle = -1.45
  1801. if not Tool then
  1802. RS.DesiredAngle = 1.45
  1803. end
  1804. LH.DesiredAngle = 0.9
  1805. RH.DesiredAngle = -1.1
  1806. end
  1807. wait(0.15)
  1808. elseif AnimFrame == 3 then
  1809. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1810. if not Look then
  1811. N.DesiredAngle = 0.07
  1812. RJ.DesiredAngle = -0.1
  1813. end
  1814. LS.DesiredAngle = -1.45
  1815. if not Tool then
  1816. RS.DesiredAngle = 1.45
  1817. end
  1818. LH.DesiredAngle = 0.45
  1819. RH.DesiredAngle = -0.65
  1820. end
  1821. wait(0.15)
  1822. else
  1823. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1824. if not Look then
  1825. N.DesiredAngle = 0
  1826. RJ.DesiredAngle = 0
  1827. end
  1828. LS.DesiredAngle = -1.57
  1829. if not Tool then
  1830. RS.DesiredAngle = 1.57
  1831. end
  1832. LH.DesiredAngle = 0.75
  1833. RH.DesiredAngle = -0.8
  1834. end
  1835. wait(0.1)
  1836. end
  1837. else
  1838. if AnimFrame == 1 then
  1839. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1840. if not Look then
  1841. N.DesiredAngle = 0
  1842. RJ.DesiredAngle = 0
  1843. end
  1844. LS.DesiredAngle = 0.7
  1845. if not Tool then
  1846. RS.DesiredAngle = 0.7
  1847. end
  1848. LH.DesiredAngle = -0.7
  1849. RH.DesiredAngle = -0.7
  1850. end
  1851. elseif AnimFrame == 3 then
  1852. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1853. if not Look then
  1854. N.DesiredAngle = 0
  1855. RJ.DesiredAngle = 0
  1856. end
  1857. LS.DesiredAngle = -0.7
  1858. if not Tool then
  1859. RS.DesiredAngle = -0.7
  1860. end
  1861. LH.DesiredAngle = 0.7
  1862. RH.DesiredAngle = 0.7
  1863. end
  1864. else
  1865. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1866. if not Look then
  1867. N.DesiredAngle = 0
  1868. RJ.DesiredAngle = 0
  1869. end
  1870. LS.DesiredAngle = 0
  1871. if not Tool then
  1872. RS.DesiredAngle = 0
  1873. end
  1874. LH.DesiredAngle = 0
  1875. RH.DesiredAngle = 0
  1876. end
  1877. end
  1878. wait(0.15)
  1879. end
  1880. elseif State == Enum.HumanoidStateType.Swimming then
  1881. AnimFrame = AnimFrame + 1
  1882. if AnimFrame > 4 then
  1883. AnimFrame = 1
  1884. end
  1885. if AnimFrame == 1 then
  1886. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1887. if not Look then
  1888. N.DesiredAngle = -0.07
  1889. RJ.DesiredAngle = 0.1
  1890. end
  1891. LS.DesiredAngle = -3.5
  1892. if not Tool then
  1893. RS.DesiredAngle = 1.5
  1894. end
  1895. LH.DesiredAngle = 0.7
  1896. RH.DesiredAngle = 0.7
  1897. end
  1898. elseif AnimFrame == 2 then
  1899. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1900. if not Look then
  1901. N.DesiredAngle = 0
  1902. RJ.DesiredAngle = 0
  1903. end
  1904. LS.DesiredAngle = -1.9
  1905. if not Tool then
  1906. RS.DesiredAngle = 0.8
  1907. end
  1908. LH.DesiredAngle = 0.3
  1909. RH.DesiredAngle = 0.3
  1910. end
  1911. elseif AnimFrame == 3 then
  1912. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1913. if not Look then
  1914. N.DesiredAngle = 0.07
  1915. RJ.DesiredAngle = -0.1
  1916. end
  1917. LS.DesiredAngle = -1.5
  1918. if not Tool then
  1919. RS.DesiredAngle = 3.5
  1920. end
  1921. LH.DesiredAngle = -0.7
  1922. RH.DesiredAngle = -0.7
  1923. end
  1924. else
  1925. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1926. if not Look then
  1927. N.DesiredAngle = 0
  1928. RJ.DesiredAngle = 0
  1929. end
  1930. LS.DesiredAngle = -0.8
  1931. if not Tool then
  1932. RS.DesiredAngle = 1.9
  1933. end
  1934. LH.DesiredAngle = -0.3
  1935. RH.DesiredAngle = -0.3
  1936. end
  1937. end
  1938. wait(0.25)
  1939. elseif State == Enum.HumanoidStateType.Seated then
  1940. AnimFrame = 0
  1941. if not Look then
  1942. N.DesiredAngle = 0
  1943. RJ.DesiredAngle = 0
  1944. end
  1945. LS.DesiredAngle = -1.57
  1946. if not Tool then
  1947. RS.DesiredAngle = 1.57
  1948. end
  1949. LH.DesiredAngle = -1.57
  1950. RH.DesiredAngle = 1.57
  1951. wait(0.05)
  1952. else
  1953. AnimFrame = 0
  1954. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  1955. if not Look then
  1956. N.DesiredAngle = 0
  1957. RJ.DesiredAngle = 0
  1958. LS.DesiredAngle = 0
  1959. if not Tool then
  1960. RS.DesiredAngle = 0
  1961. end
  1962. LH.DesiredAngle = 0
  1963. RH.DesiredAngle = 0
  1964. end
  1965. end
  1966. wait(0.05)
  1967. end
  1968. end
  1969. end
  1970. end)
  1971. local function Pathfind(pos)
  1972. local Points = game:GetService("PathfindingService"):ComputeRawPathAsync(R.Position,pos,300)
  1973. local Co = Points:GetPointCoordinates()
  1974. local Offset = Vector3.new(0,0,0)
  1975. local Jump1 = false
  1976. local Jump2 = false
  1977. local Jump3 = false
  1978. local Find1
  1979. local Find2
  1980. local Find3
  1981. if Points.Status == Enum.PathStatus.Success or Points.Status == Enum.PathStatus.ClosestNoPath or Points.Status == Enum.PathStatus.ClosestOutOfRange then
  1982. local From = R.Position
  1983. if Co[1] then
  1984. Find1 = Co[1]
  1985. if Co[1].Y > From.Y + 1 or Humanoid.Sit or Humanoid.PlatformStand then
  1986. Jump1 = true
  1987. end
  1988. From = Co[1]
  1989. if Co[2] then
  1990. Find2 = Co[2]
  1991. if Co[2].Y > From.Y + 1 or Humanoid.Sit or Humanoid.PlatformStand then
  1992. Jump2 = true
  1993. end
  1994. From = Co[2]
  1995. if Co[3] then
  1996. Find3 = Co[3]
  1997. if Co[3].Y > From.Y + 1 or Humanoid.Sit or Humanoid.PlatformStand then
  1998. Jump3 = true
  1999. end
  2000. end
  2001. end
  2002. end
  2003. end
  2004. return Points.Status,Jump1,Jump2,Jump3,Find1,Find2,Find3
  2005. end
  2006. local function Check()
  2007. HC.Parent = script
  2008. HC.CFrame = R.CFrame
  2009. local Touching = HC:GetTouchingParts()
  2010. HC.Parent = nil
  2011. local Dist = math.huge
  2012. local Select
  2013. local Hm
  2014. for i = 1,#Touching do
  2015. local Ch = Touching[i].Parent
  2016. if Ch and Ch:FindFirstChildWhichIsA("ForceField") == nil and Ch ~= Summoner then
  2017. local Plr = game:GetService("Players"):GetPlayerFromCharacter(Ch)
  2018. if not Player or not Plr or (Player ~= Plr and (Player.Neutral or Plr.Neutral or Player.TeamColor.Name ~= Plr.TeamColor.Name)) then
  2019. local Hu = Touching[i].Parent:FindFirstChildWhichIsA("Humanoid")
  2020. if Hu and Hu.Health > 0 and Hu:GetState() ~= Enum.HumanoidStateType.Dead and not table.find(DontChase,Hu) then
  2021. local EP = Hu.RootPart
  2022. if EP == nil then
  2023. EP = Hu.Parent:FindFirstChildWhichIsA("BasePart")
  2024. end
  2025. if EP and (EP.Position-R.Position).Magnitude < Dist then
  2026. Dist = (EP.Position-R.Position).Magnitude
  2027. Select = EP
  2028. Hm = Hu
  2029. end
  2030. end
  2031. end
  2032. end
  2033. end
  2034. if Select and Hm then
  2035. Targ = Select
  2036. Hum = Hm
  2037. if Bill and Image then
  2038. Bill.Adornee = Targ
  2039. Image.ImageTransparency = 0.5
  2040. end
  2041. else
  2042. Targ = nil
  2043. Hum = nil
  2044. if Bill and Image then
  2045. Bill.Adornee = nil
  2046. Image.ImageTransparency = 1
  2047. end
  2048. end
  2049. end
  2050. local function LookAnim()
  2051. if Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  2052. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  2053. N.DesiredAngle = 0.4
  2054. RJ.DesiredAngle = 0.2
  2055. if RunCheck(State) and Speed <= 0.1 then
  2056. LS.DesiredAngle = 0.5
  2057. if not Tool then
  2058. RS.DesiredAngle = 0.5
  2059. end
  2060. LH.DesiredAngle = -0.3
  2061. RH.DesiredAngle = -0.3
  2062. end
  2063. end
  2064. wait(0.6)
  2065. if Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  2066. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  2067. N.DesiredAngle = -0.4
  2068. RJ.DesiredAngle = -0.2
  2069. if RunCheck(State) and Speed <= 0.1 then
  2070. LS.DesiredAngle = -0.5
  2071. if not Tool then
  2072. RS.DesiredAngle = -0.5
  2073. end
  2074. LH.DesiredAngle = 0.15
  2075. RH.DesiredAngle = 0.15
  2076. end
  2077. end
  2078. end
  2079. wait(0.3)
  2080. end
  2081. end
  2082. Check()
  2083. spawn(function()
  2084. while Humanoid:GetState() ~= Enum.HumanoidStateType.Dead and In do
  2085. if Btn and Btn.Parent then
  2086. if Atk and (not SetPlayer or Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0) then
  2087. Btn.TextStrokeColor3 = Color3.new(1,1,1)
  2088. else
  2089. Btn.TextStrokeColor3 = Color3.new(0,0,0)
  2090. end
  2091. end
  2092. if Targ and Targ:FindFirstAncestorWhichIsA("Workspace") and Hum and Hum:FindFirstAncestorWhichIsA("Workspace") and Hum.Health > 0 then
  2093. local Dist = (Targ.Position-R.Position).Magnitude
  2094. if Atk and Dist < R.Size.Magnitude*1.75 and workspace.DistributedGameTime > LastAttack + 0.75 and (not SetPlayer or Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0) then
  2095. if Btn and Btn.Parent then
  2096. Btn.TextStrokeColor3 = Color.Color
  2097. end
  2098. LastAttack = workspace.DistributedGameTime
  2099. if not SetPlayer then
  2100. Humanoid.WalkToPoint = Targ.Position
  2101. end
  2102. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  2103. if not Look then
  2104. N.DesiredAngle = 0.2
  2105. RJ.DesiredAngle = -0.25
  2106. end
  2107. LS.DesiredAngle = -0.2
  2108. RS.DesiredAngle = 3
  2109. LH.DesiredAngle = -0.5
  2110. RH.DesiredAngle = -0.5
  2111. end
  2112. Swish(R.Position)
  2113. wait(0.15)
  2114. if Btn and Btn.Parent then
  2115. if Atk and (not SetPlayer or Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0) then
  2116. Btn.TextStrokeColor3 = Color3.new(1,1,1)
  2117. else
  2118. Btn.TextStrokeColor3 = Color3.new(0,0,0)
  2119. end
  2120. end
  2121. if (ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25) and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  2122. if not Look then
  2123. N.DesiredAngle = -0.4
  2124. RJ.DesiredAngle = 0.5
  2125. end
  2126. LS.DesiredAngle = 0.5
  2127. RS.DesiredAngle = 0.8
  2128. LH.DesiredAngle = -0.8
  2129. RH.DesiredAngle = -0.8
  2130. end
  2131. Dist = (Targ.Position-R.Position).Magnitude
  2132. if Dist < R.Size.Magnitude*1.75 and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead and In and (not SetPlayer or Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0) then
  2133. local Stored = Hum.Health
  2134. local creator = Instance.new("ObjectValue",Hum)
  2135. creator.Name = "creator"
  2136. if Player and Player.Parent then
  2137. creator.Value = Player
  2138. end
  2139. game:GetService("Debris"):AddItem(creator,0.1)
  2140. Hum:TakeDamage(34)
  2141. if Hum.Health >= Stored then
  2142. Deflect(Targ.Position)
  2143. DefCount = DefCount + 1
  2144. LDefCount = LDefCount + 1
  2145. NotifyBlock()
  2146. Update()
  2147. else
  2148. HitCount = HitCount + 1
  2149. LHitCount = LHitCount + 1
  2150. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),34))
  2151. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),34))
  2152. if Stored > 0 and Hum.Health <= 0 then
  2153. ConfirmLast = ConfirmLast + 1
  2154. LConfirmLast = LConfirmLast + 1
  2155. NotifyKO()
  2156. else
  2157. NotifyHit()
  2158. end
  2159. Update()
  2160. Hurt(Targ.Position)
  2161. end
  2162. end
  2163. if not SetPlayer then
  2164. Humanoid.WalkToPoint = Targ.Position
  2165. end
  2166. wait(0.15)
  2167. if not SetPlayer then
  2168. Humanoid.WalkToPoint = (R.CFrame*CFrame.new(-1,0,5)).Position
  2169. end
  2170. wait(0.2)
  2171. else
  2172. if not SetPlayer then
  2173. local Status,Jump1,Jump2,Jump3,Find1,Find2,Find3 = Pathfind(Targ.Position)
  2174. if Status == Enum.PathStatus.Success or Status == Enum.PathStatus.ClosestNoPath or Status == Enum.PathStatus.ClosestOutOfRange and Find1 then
  2175. Humanoid.WalkToPoint = R.Position+(Find1-R.Position).Unit*32
  2176. if Jump1 then
  2177. Humanoid.Jump = true
  2178. Humanoid.Sit = false
  2179. end
  2180. if Find2 then
  2181. Humanoid.WalkToPoint = R.Position+(Find2-R.Position).Unit*32
  2182. if Jump2 then
  2183. Humanoid.Jump = true
  2184. Humanoid.Sit = false
  2185. end
  2186. wait(0.05)
  2187. if Find3 then
  2188. Humanoid.WalkToPoint = R.Position+(Find3-R.Position).Unit*32
  2189. if Jump3 then
  2190. Humanoid.Jump = true
  2191. Humanoid.Sit = false
  2192. end
  2193. wait(0.05)
  2194. end
  2195. end
  2196. wait(0.15)
  2197. elseif Dist < 100 then
  2198. Humanoid.WalkToPoint = Targ.Position
  2199. if (Targ.Position.Y > R.Position.Y + 1 and Humanoid:GetState() ~= Enum.HumanoidStateType.Climbing) or Humanoid.Sit or Humanoid.PlatformStand then
  2200. Humanoid.Jump = true
  2201. Humanoid.Sit = false
  2202. end
  2203. wait(0.2)
  2204. else
  2205. Count = Count + 1
  2206. wait(0.1)
  2207. end
  2208. else
  2209. wait(0.05)
  2210. end
  2211. end
  2212. Count = Count + 1
  2213. if Count > 19 then
  2214. Count = 0
  2215. Check()
  2216. end
  2217. elseif Summoner and Summoner:FindFirstAncestorWhichIsA("Workspace") and SHum and SHum:FindFirstAncestorWhichIsA("Workspace") and SHum:GetState() ~= Enum.HumanoidStateType.Dead then
  2218. Targ = nil
  2219. Hum = nil
  2220. if Bill and Image then
  2221. Bill.Adornee = nil
  2222. Image.ImageTransparency = 1
  2223. end
  2224. local RP = SHum.RootPart
  2225. if RP == nil then
  2226. RP = SHum.Parent:FindFirstChildWhichIsA("BasePart")
  2227. end
  2228. if RP and (RP.Position-R.Position).Magnitude < 100 then
  2229. local Goal = RP.Position+RP.CFrame.LookVector*RP.Size.Z*-12+(RP.CFrame.LookVector*math.min(table.find(Gh,Model)*-3,80))
  2230. local Status,Jump1,Jump2,Jump3,Find1,Find2,Find3 = Pathfind(Goal)
  2231. if Status == Enum.PathStatus.Success or Status == Enum.PathStatus.ClosestNoPath or Status == Enum.PathStatus.ClosestOutOfRange and Find1 then
  2232. if (R.Position-Goal).Magnitude < 10 then
  2233. Humanoid.WalkToPoint = Find1
  2234. else
  2235. Humanoid.WalkToPoint = R.Position+(Find1-R.Position).Unit*32
  2236. end
  2237. if Jump1 then
  2238. Humanoid.Jump = true
  2239. Humanoid.Sit = false
  2240. end
  2241. if Find2 then
  2242. if (R.Position-Goal).Magnitude < 10 then
  2243. Humanoid.WalkToPoint = Find2
  2244. else
  2245. Humanoid.WalkToPoint = R.Position+(Find2-R.Position).Unit*32
  2246. end
  2247. if Jump2 then
  2248. Humanoid.Jump = true
  2249. Humanoid.Sit = false
  2250. end
  2251. wait(0.05)
  2252. if Find3 then
  2253. if (R.Position-Goal).Magnitude < 10 then
  2254. Humanoid.WalkToPoint = Find3
  2255. else
  2256. Humanoid.WalkToPoint = R.Position+(Find3-R.Position).Unit*32
  2257. end
  2258. if Jump3 then
  2259. Humanoid.Jump = true
  2260. Humanoid.Sit = false
  2261. end
  2262. wait(0.05)
  2263. end
  2264. end
  2265. end
  2266. wait(0.15)
  2267. local WandHeld = false
  2268. if Wand and Wand.Parent == Summoner and SHum and SHum:GetState() ~= Enum.HumanoidStateType.Dead then
  2269. WandHeld = true
  2270. end
  2271. Count = Count + 1
  2272. if Count > 4 and not WandHeld then
  2273. Count = 0
  2274. Check()
  2275. end
  2276. else
  2277. Count = 0
  2278. local Status,Jump1,Jump2,Jump3,Find1,Find2,Find3 = Pathfind(R.Position+Vector3.new(math.random(-32,32),0,math.random(-32,32)))
  2279. if Status == Enum.PathStatus.Success or Status == Enum.PathStatus.ClosestNoPath or Status == Enum.PathStatus.ClosestOutOfRange and Find1 then
  2280. Humanoid.WalkToPoint = Find1
  2281. if Jump1 then
  2282. Humanoid.Jump = true
  2283. Humanoid.Sit = false
  2284. end
  2285. if Find2 then
  2286. Humanoid.WalkToPoint = Find2
  2287. if Jump2 then
  2288. Humanoid.Jump = true
  2289. Humanoid.Sit = false
  2290. end
  2291. wait(0.05)
  2292. if Find3 then
  2293. Humanoid.WalkToPoint = Find3
  2294. if Jump3 then
  2295. Humanoid.Jump = true
  2296. Humanoid.Sit = false
  2297. end
  2298. wait(0.05)
  2299. end
  2300. end
  2301. end
  2302. wait(math.random(75,200)/100)
  2303. Look = true
  2304. LookAnim()
  2305. Check()
  2306. if Targ and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  2307. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  2308. N.DesiredAngle = 0
  2309. RJ.DesiredAngle = 0
  2310. if RunCheck(State) and Speed <= 0.1 then
  2311. LS.DesiredAngle = -2.5
  2312. if not Tool then
  2313. RS.DesiredAngle = 0.3
  2314. end
  2315. LH.DesiredAngle = 0.1
  2316. RH.DesiredAngle = 0.1
  2317. end
  2318. end
  2319. end
  2320. wait(0.3)
  2321. Look = false
  2322. end
  2323. else
  2324. Targ = nil
  2325. Hum = nil
  2326. if Bill and Image then
  2327. Bill.Adornee = nil
  2328. Image.ImageTransparency = 1
  2329. end
  2330. Count = 0
  2331. if not SetPlayer then
  2332. local Status,Jump1,Jump2,Jump3,Find1,Find2,Find3 = Pathfind(R.Position+Vector3.new(math.random(-32,32),0,math.random(-32,32)))
  2333. if Status == Enum.PathStatus.Success or Status == Enum.PathStatus.ClosestNoPath or Status == Enum.PathStatus.ClosestOutOfRange and Find1 then
  2334. Humanoid.WalkToPoint = Find1
  2335. if Jump1 then
  2336. Humanoid.Jump = true
  2337. Humanoid.Sit = false
  2338. end
  2339. if Find2 then
  2340. Humanoid.WalkToPoint = Find2
  2341. if Jump2 then
  2342. Humanoid.Jump = true
  2343. Humanoid.Sit = false
  2344. end
  2345. wait(0.05)
  2346. if Find3 then
  2347. Humanoid.WalkToPoint = Find2
  2348. if Jump3 then
  2349. Humanoid.Jump = true
  2350. Humanoid.Sit = false
  2351. end
  2352. wait(0.05)
  2353. end
  2354. end
  2355. end
  2356. end
  2357. wait(math.random(75,200)/100)
  2358. Look = true
  2359. LookAnim()
  2360. Check()
  2361. if Targ and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  2362. if ToolAnim ~= "Lunge" or workspace.DistributedGameTime > LastToolAnim + 0.25 then
  2363. N.DesiredAngle = 0
  2364. RJ.DesiredAngle = 0
  2365. if RunCheck(State) and Speed <= 0.1 then
  2366. LS.DesiredAngle = -2.5
  2367. if not Tool then
  2368. RS.DesiredAngle = 0.3
  2369. end
  2370. LH.DesiredAngle = -0.1
  2371. RH.DesiredAngle = -0.1
  2372. end
  2373. end
  2374. end
  2375. wait(0.3)
  2376. Look = false
  2377. end
  2378. end
  2379. if Bill and Bill.Parent then
  2380. Bill:Destroy()
  2381. end
  2382. if ScreenGui and ScreenGui.Parent then
  2383. ScreenGui:Destroy()
  2384. end
  2385. table.remove(DontChase,table.find(DontChase,Humanoid))
  2386. table.remove(Gh,table.find(Gh,Model))
  2387. end)
  2388. end)
  2389. return Model
  2390. end
  2391. local Ch = owner.Character
  2392. if Ch then
  2393. local Hu = Ch:FindFirstChildWhichIsA("Humanoid")
  2394. if Hu and Hu.RootPart and Hu:GetState() ~= Enum.HumanoidStateType.Dead then
  2395. table.insert(DontChase,Hu)
  2396. Hu.BreakJointsOnDeath = false
  2397. local RP = Hu.RootPart
  2398. local In = true
  2399. local Agh = false
  2400. local Triggered = false
  2401. local NowThatsALottaDamage = false
  2402. local Allowed = false
  2403. if not Pass then
  2404. spawn(function()
  2405. ApplyShield(Ch,Hu,1,0,500,BrickColor.new("Really blue"))
  2406. end)
  2407. end
  2408. delay(1,function()
  2409. Allowed = true
  2410. end)
  2411. local function Gone()
  2412. if not Triggered and owner.Parent and not Displaying then
  2413. Triggered = true
  2414. Displaying = true
  2415. local ScreenGui = Instance.new("ScreenGui",owner:FindFirstChild("PlayerGui"))
  2416. ScreenGui.Name = "Goodbye"
  2417. local Btn = Instance.new("TextButton",ScreenGui)
  2418. Btn.Size = UDim2.new(0.075,0,0.1,0)
  2419. Btn.Position = UDim2.new(0.8,0,0.3,0)
  2420. Btn.Font = Enum.Font.Fantasy
  2421. Btn.TextScaled = true
  2422. Btn.TextStrokeTransparency = 0
  2423. Btn.TextColor3 = Color3.new(1-Color.r,1-Color.g,1-Color.b)
  2424. Btn.TextStrokeColor3 = Color3.new(0,0,0)
  2425. Btn.BackgroundColor3 = Color.Color
  2426. Btn.BackgroundTransparency = 0.5
  2427. local First = ""
  2428. local AddOn = "Did they actually get you?"
  2429. local C = Hu:GetChildren()
  2430. local Found
  2431. for i = 1,#C do
  2432. if C[i].Name == "creator" and C[i]:IsA("ObjectValue") then
  2433. if C[i].Value ~= nil then
  2434. Found = C[i].Value
  2435. if C[i].Value ~= owner then
  2436. First = C[i].Value.Name.." was after you. "
  2437. else
  2438. First = "You had yourself. "
  2439. end
  2440. elseif not Found then
  2441. First = "It felt like someone else was after you. "
  2442. end
  2443. end
  2444. end
  2445. local Choices = math.random(1,3)
  2446. if Choices == 1 then
  2447. AddOn = "Now isn't the time to make a fall..."
  2448. elseif Choices == 2 then
  2449. AddOn = "Go for it again!"
  2450. end
  2451. Btn.Text = First..AddOn
  2452. Btn.MouseButton1Click:Connect(function()
  2453. Skip = true
  2454. end)
  2455. delay(3,function()
  2456. ScreenGui:Destroy()
  2457. Displaying = false
  2458. if owner.Parent and Skip then
  2459. local MM = Make(owner.Name,LastCF+Vector3.new(0,2,0),Color,owner,nil,nil,owner,nil,fc,HM,HT,acc)
  2460. table.insert(DontChase,MM:FindFirstChildWhichIsA("Humanoid"))
  2461. MM.Parent = workspace
  2462. Rejected = Rejected + 1
  2463. LRejected = LRejected + 1
  2464. elseif owner.Parent and Unavailable then
  2465. owner:LoadCharacter()
  2466. end
  2467. end)
  2468. local ScreenGui2
  2469. local Btn2
  2470. if Found and Found:IsA("Player") then
  2471. ScreenGui2 = Instance.new("ScreenGui",Found:FindFirstChild("PlayerGui"))
  2472. ScreenGui2.Name = "Gotcha"
  2473. game:GetService("Debris"):AddItem(ScreenGui2,10)
  2474. Btn2 = Instance.new("TextButton",ScreenGui2)
  2475. Btn2.Size = UDim2.new(0.075,0,0.1,0)
  2476. Btn2.Position = UDim2.new(0.875,0,0.3,0)
  2477. Btn2.Font = Enum.Font.Fantasy
  2478. Btn2.TextScaled = true
  2479. Btn2.TextStrokeTransparency = 0
  2480. Btn2.TextColor3 = Color3.new(1-Color.r,1-Color.g,1-Color.b)
  2481. Btn2.TextStrokeColor3 = Color3.new(0,0,0)
  2482. Btn2.BackgroundColor3 = Color.Color
  2483. Btn2.BackgroundTransparency = 0.5
  2484. local AddOn2 = "Does "..owner.Name.." really know what's going on?"
  2485. if Choices == 1 then
  2486. AddOn2 = "Nobody knows how "..owner.Name.." feels..."
  2487. elseif Choices == 2 then
  2488. AddOn2 = "That's certain to leave a nasty mark on "..owner.Name.."!"
  2489. end
  2490. Btn2.Text = AddOn2
  2491. Btn2.MouseButton1Click:Connect(function()
  2492. ScreenGui2:Destroy()
  2493. end)
  2494. end
  2495. if NowThatsALottaDamage then
  2496. spawn(function()
  2497. for i = 1,10 do
  2498. wait(0.05)
  2499. Btn.Position = UDim2.new(0.8,0,0.28,0)
  2500. if Btn2 then
  2501. Btn2.Position = UDim2.new(0.875,0,0.28,0)
  2502. end
  2503. wait(0.05)
  2504. Btn.Position = UDim2.new(0.8,0,0.3,0)
  2505. if Btn2 then
  2506. Btn2.Position = UDim2.new(0.875,0,0.3,0)
  2507. end
  2508. end
  2509. end)
  2510. end
  2511. end
  2512. end
  2513. local function Changed(property)
  2514. if property == "Parent" and (Ch.Parent == nil or Hu.Parent ~= Ch) then
  2515. if In then
  2516. In = false
  2517. wait()
  2518. Gone()
  2519. if not Pass and Agh and Hu.Parent == Ch then
  2520. local Tool = Ch:FindFirstChildWhichIsA("Tool")
  2521. if Tool then
  2522. game:GetService("Debris"):AddItem(Tool,0)
  2523. end
  2524. game:GetService("Debris"):AddItem(Ch,300)
  2525. Ch.Parent = workspace
  2526. end
  2527. end
  2528. end
  2529. end
  2530. Ch.Changed:Connect(Changed)
  2531. Hu.Changed:Connect(Changed)
  2532. local Hd = Ch:FindFirstChild("Head")
  2533. local W1
  2534. if Hd and Hd:IsA("BasePart") then
  2535. if not Pass then
  2536. HatPart = Instance.new("Part",Hu)
  2537. HatPart.Name = "HatPart"
  2538. HatPart.Material = Enum.Material.Sand
  2539. HatPart.Size = Vector3.new(1.5,0.25,1.5)
  2540. HatPart.CFrame = Hd.CFrame*CFrame.new(0,0.5,0)
  2541. HatPart.Locked = true
  2542. HatPart.CanCollide = false
  2543. HatPart.Massless = true
  2544. HatPart.BrickColor = Color
  2545. W1 = Instance.new("Weld",HatPart)
  2546. W1.Part0 = HatPart
  2547. W1.Part1 = Hd
  2548. W1.C0 = CFrame.new(0,-0.5,0)
  2549. Hat2 = Instance.new("Part",Hu)
  2550. Hat2.Name = "Hat2"
  2551. Hat2.Material = Enum.Material.Sand
  2552. Hat2.Size = Vector3.new(0.5,0.5,0.5)
  2553. Hat2.CFrame = HatPart.CFrame*CFrame.new(0,0.375,0)
  2554. Hat2.Locked = true
  2555. Hat2.CanCollide = false
  2556. Hat2.Massless = true
  2557. Hat2.BrickColor = Color
  2558. local W2 = Instance.new("Weld",Hat2)
  2559. W2.Part0 = Hat2
  2560. W2.Part1 = HatPart
  2561. W2.C0 = CFrame.new(0,-0.375,0)
  2562. Hat3 = Instance.new("Part",Hu)
  2563. Hat3.Name = "Hat3"
  2564. Hat3.Material = Enum.Material.SmoothPlastic
  2565. Hat3.Size = Vector3.new(0.75,0.25,0.75)
  2566. Hat3.CFrame = Hat2.CFrame*CFrame.new(0,-0.125,0)
  2567. Hat3.Locked = true
  2568. Hat3.CanCollide = false
  2569. Hat3.Massless = true
  2570. Hat3.BrickColor = BrickColor.new("Brown")
  2571. local W3 = Instance.new("Weld",Hat3)
  2572. W3.Part0 = Hat3
  2573. W3.Part1 = Hat2
  2574. W3.C0 = CFrame.new(0,0.125,0)
  2575. Hat4 = Instance.new("Part",Hu)
  2576. Hat4.Name = "Hat4"
  2577. Hat4.Material = Enum.Material.Sand
  2578. Hat4.Size = Vector3.new(0.25,0.25,0.25)
  2579. Hat4.CFrame = Hat2.CFrame*CFrame.new(0,0.375,0)
  2580. Hat4.Locked = true
  2581. Hat4.CanCollide = false
  2582. Hat4.Massless = true
  2583. Hat4.BrickColor = Color
  2584. local W4 = Instance.new("Weld",Hat4)
  2585. W4.Part0 = Hat4
  2586. W4.Part1 = Hat2
  2587. W4.C0 = CFrame.new(0.0625,-0.375,-0.0625)
  2588. end
  2589. end
  2590. local Bill = Instance.new("BillboardGui",RP)
  2591. Bill.Size = UDim2.new(15,0,2,0)
  2592. Bill.LightInfluence = 0.25
  2593. Bill.StudsOffset = Vector3.new(0,6,0)
  2594. Bill.Adornee = RP
  2595. TextB = Instance.new("TextBox",Bill)
  2596. TextB.AnchorPoint = Vector2.new(0.5,0.5)
  2597. TextB.Position = UDim2.new(0.5,0,0.5,0)
  2598. TextB.Size = UDim2.new(1,0,1,0)
  2599. TextB.BackgroundTransparency = 1
  2600. TextB.TextStrokeTransparency = 0
  2601. TextB.TextScaled = true
  2602. TextB.Font = Enum.Font.Fantasy
  2603. TextB.TextColor3 = Color.Color
  2604. TextB.TextStrokeColor3 = Color3.new()
  2605. TextB.TextTransparency = 0
  2606. TextB.Text = ""
  2607. local SoundV = Instance.new("Sound",RP)
  2608. SoundV.SoundId = "rbxasset://sounds/bass.mp3"
  2609. SoundV.Looped = true
  2610. local Interrupt = 0
  2611. local function AAAAH()
  2612. spawn(function()
  2613. if math.random(1,2) == 1 then
  2614. for i = 1,5 do
  2615. Play(SoundV,7+i*1.4,0.7)
  2616. wait(0.05)
  2617. end
  2618. for i = 1,25 do
  2619. Play(SoundV,12-i*0.15,0.7-i*0.02)
  2620. wait(0.05)
  2621. end
  2622. else
  2623. for i = 1,4 do
  2624. Play(SoundV,4+i*1.1,0.7)
  2625. wait(0.05)
  2626. end
  2627. for i = 1,14 do
  2628. Play(SoundV,9+i*0.5,0.7)
  2629. wait(0.05)
  2630. end
  2631. for i = 1,23 do
  2632. Play(SoundV,13-i*0.15,0.7-i*0.03)
  2633. wait(0.05)
  2634. end
  2635. end
  2636. SoundV:Stop()
  2637. end)
  2638. end
  2639. local function AOW()
  2640. spawn(function()
  2641. for i = 1,3 do
  2642. Play(SoundV,4.9+i*1.4,0.7)
  2643. wait(0.05)
  2644. end
  2645. for i = 1,15 do
  2646. Play(SoundV,7-i*0.2,0.7-i*0.04)
  2647. wait(0.05)
  2648. end
  2649. SoundV:Stop()
  2650. end)
  2651. end
  2652. local function OW()
  2653. spawn(function()
  2654. for i = 1,4 do
  2655. if Interrupt > 3 then break end
  2656. Play(SoundV,4.5+i*0.6,0.7)
  2657. wait(0.05)
  2658. end
  2659. for i = 1,7 do
  2660. if Interrupt > 3 then break end
  2661. Play(SoundV,6.9+i*0.3,0.7)
  2662. wait(0.05)
  2663. end
  2664. for i = 1,8 do
  2665. if Interrupt > 3 then break end
  2666. Play(SoundV,7.9-i*0.25,0.7-i*0.06)
  2667. wait(0.05)
  2668. end
  2669. if Interrupt <= 3 then
  2670. SoundV:Stop()
  2671. Interrupt = 0
  2672. end
  2673. end)
  2674. end
  2675. local function Ouch()
  2676. spawn(function()
  2677. for i = 1,2 do
  2678. if Interrupt > 2 then break end
  2679. Play(SoundV,2.2+i*0.7,0.55)
  2680. wait(0.05)
  2681. end
  2682. for i = 1,8 do
  2683. if Interrupt > 2 then break end
  2684. Play(SoundV,6.4-i*0.4,0.55-i*0.06)
  2685. wait(0.05)
  2686. end
  2687. if Interrupt <= 2 then
  2688. SoundV:Stop()
  2689. Interrupt = 0
  2690. end
  2691. end)
  2692. end
  2693. local function Uh()
  2694. spawn(function()
  2695. for i = 1,5 do
  2696. if Interrupt > 1 then break end
  2697. Play(SoundV,1.6-i*0.15,0.5-i*0.08)
  2698. wait(0.05)
  2699. end
  2700. if Interrupt <= 1 then
  2701. SoundV:Stop()
  2702. Interrupt = 0
  2703. end
  2704. end)
  2705. end
  2706. local function Blah()
  2707. local Rand1 = math.random(350,420)/100
  2708. local Rand2 = math.random(-30,40)/100
  2709. if Hu.Health < 100 then
  2710. Rand1 = Rand1-0.1
  2711. end
  2712. if Hu.Health <= 75 then
  2713. Rand1 = Rand1-0.1
  2714. end
  2715. if Hu.Health <= 50 then
  2716. Rand1 = Rand1-0.2
  2717. end
  2718. if Hu.Health <= 25 then
  2719. Rand1 = Rand1-0.2
  2720. end
  2721. for i = 1,math.random(2,5) do
  2722. if Interrupt > 0 then break end
  2723. Play(SoundV,Rand1+Rand2*i,0.8)
  2724. wait(0.05)
  2725. end
  2726. if Interrupt == 0 then
  2727. SoundV:Stop()
  2728. end
  2729. wait(0.05)
  2730. end
  2731. local function RoughTalk()
  2732. local Rand1 = math.random(480,570)/100
  2733. local Rand2 = math.random(-70,100)/100
  2734. if Hu.Health < 100 then
  2735. Rand1 = Rand1-0.1
  2736. end
  2737. if Hu.Health <= 75 then
  2738. Rand1 = Rand1-0.1
  2739. end
  2740. if Hu.Health <= 50 then
  2741. Rand1 = Rand1-0.2
  2742. end
  2743. if Hu.Health <= 25 then
  2744. Rand1 = Rand1-0.2
  2745. end
  2746. for i = 1,math.random(2,5) do
  2747. if Interrupt > 0 then break end
  2748. Play(SoundV,Rand1+Rand2*i,0.8)
  2749. wait(0.05)
  2750. end
  2751. if Interrupt == 0 then
  2752. SoundV:Stop()
  2753. end
  2754. wait(0.05)
  2755. end
  2756. local function End()
  2757. local Rand1 = math.random(320,380)/100
  2758. local Rand2 = math.random(-30,-10)/100
  2759. if Hu.Health < 100 then
  2760. Rand1 = Rand1-0.1
  2761. end
  2762. if Hu.Health <= 75 then
  2763. Rand1 = Rand1-0.1
  2764. end
  2765. if Hu.Health <= 50 then
  2766. Rand1 = Rand1-0.2
  2767. end
  2768. if Hu.Health <= 25 then
  2769. Rand1 = Rand1-0.2
  2770. end
  2771. for i = 1,math.random(2,5) do
  2772. if Interrupt > 0 then break end
  2773. Play(SoundV,Rand1+Rand2*i,0.8)
  2774. wait(0.05)
  2775. end
  2776. if Interrupt == 0 then
  2777. SoundV:Stop()
  2778. end
  2779. wait(0.15)
  2780. end
  2781. local function Oh()
  2782. local Rand1 = math.random(320,380)/100
  2783. local Rand2 = math.random(-15,-8)/100
  2784. if Hu.Health < 100 then
  2785. Rand1 = Rand1-0.1
  2786. end
  2787. if Hu.Health <= 75 then
  2788. Rand1 = Rand1-0.1
  2789. end
  2790. if Hu.Health <= 50 then
  2791. Rand1 = Rand1-0.2
  2792. end
  2793. if Hu.Health <= 25 then
  2794. Rand1 = Rand1-0.2
  2795. end
  2796. for i = 1,math.random(5,15) do
  2797. if Interrupt > 0 then break end
  2798. Play(SoundV,Rand1+Rand2*i,0.8)
  2799. wait(0.05)
  2800. end
  2801. if Interrupt == 0 then
  2802. SoundV:Stop()
  2803. end
  2804. wait(0.05)
  2805. end
  2806. local function Huh()
  2807. local Rand1 = math.random(350,420)/100
  2808. local Rand2 = math.random(20,70)/100
  2809. if Hu.Health < 100 then
  2810. Rand1 = Rand1-0.1
  2811. end
  2812. if Hu.Health <= 75 then
  2813. Rand1 = Rand1-0.1
  2814. end
  2815. if Hu.Health <= 50 then
  2816. Rand1 = Rand1-0.2
  2817. end
  2818. if Hu.Health <= 25 then
  2819. Rand1 = Rand1-0.2
  2820. end
  2821. for i = 1,math.random(4,7) do
  2822. if Interrupt > 0 then break end
  2823. Play(SoundV,Rand1+Rand2*i,0.8)
  2824. wait(0.05)
  2825. end
  2826. if Interrupt == 0 then
  2827. SoundV:Stop()
  2828. end
  2829. wait(0.05)
  2830. end
  2831. local function Wow()
  2832. local Rand1 = math.random(370,450)/100
  2833. local Rand2 = math.random(40,90)/100
  2834. if Hu.Health < 100 then
  2835. Rand1 = Rand1-0.1
  2836. end
  2837. if Hu.Health <= 75 then
  2838. Rand1 = Rand1-0.1
  2839. end
  2840. if Hu.Health <= 50 then
  2841. Rand1 = Rand1-0.2
  2842. end
  2843. if Hu.Health <= 25 then
  2844. Rand1 = Rand1-0.2
  2845. end
  2846. for i = 1,math.random(2,4) do
  2847. if Interrupt > 0 then break end
  2848. Rand1 = Rand1+Rand2*2
  2849. Play(SoundV,Rand1,0.8)
  2850. wait(0.05)
  2851. end
  2852. for i = 1,math.random(4,6) do
  2853. if Interrupt > 0 then break end
  2854. Rand1 = Rand1-Rand2
  2855. Play(SoundV,Rand1,0.8)
  2856. wait(0.05)
  2857. end
  2858. if Interrupt == 0 then
  2859. SoundV:Stop()
  2860. end
  2861. wait(0.05)
  2862. end
  2863. local function Wha()
  2864. local Rand1 = math.random(370,450)/100
  2865. local Rand2 = math.random(30,60)/100
  2866. if Hu.Health < 100 then
  2867. Rand1 = Rand1-0.1
  2868. end
  2869. if Hu.Health <= 75 then
  2870. Rand1 = Rand1-0.1
  2871. end
  2872. if Hu.Health <= 50 then
  2873. Rand1 = Rand1-0.2
  2874. end
  2875. if Hu.Health <= 25 then
  2876. Rand1 = Rand1-0.2
  2877. end
  2878. for i = 1,math.random(8,14) do
  2879. if Interrupt > 0 then break end
  2880. Rand1 = Rand1+Rand2*2
  2881. Play(SoundV,Rand1,0.8)
  2882. wait(0.05)
  2883. end
  2884. if Interrupt == 0 then
  2885. SoundV:Stop()
  2886. end
  2887. wait(0.05)
  2888. end
  2889. local function AAH()
  2890. if math.random(1,2) == 1 then
  2891. for i = 1,5 do
  2892. if Interrupt > 0 then break end
  2893. Play(SoundV,7+i*1.4,0.7)
  2894. wait(0.05)
  2895. end
  2896. for i = 1,25 do
  2897. if Interrupt > 0 then break end
  2898. Play(SoundV,12-i*0.15,0.7-i*0.02)
  2899. wait(0.05)
  2900. end
  2901. else
  2902. for i = 1,4 do
  2903. if Interrupt > 0 then break end
  2904. Play(SoundV,4+i*1.1,0.7)
  2905. wait(0.05)
  2906. end
  2907. for i = 1,14 do
  2908. if Interrupt > 0 then break end
  2909. Play(SoundV,9+i*0.5,0.7)
  2910. wait(0.05)
  2911. end
  2912. for i = 1,23 do
  2913. if Interrupt > 0 then break end
  2914. Play(SoundV,13-i*0.15,0.7-i*0.03)
  2915. wait(0.05)
  2916. end
  2917. end
  2918. if Interrupt <= 0 then
  2919. SoundV:Stop()
  2920. end
  2921. wait(0.05)
  2922. end
  2923. local function EEE()
  2924. Play(SoundV,15,0.8)
  2925. wait(0.05)
  2926. if Interrupt == 0 then
  2927. SoundV:Stop()
  2928. end
  2929. wait(0.05)
  2930. end
  2931. local HP = Hu.Health
  2932. local Recorded = Hu.Health
  2933. local LastHurt = 0
  2934. local Dmg = 0
  2935. local function HealthChanged()
  2936. if Hu:GetState() ~= Enum.HumanoidStateType.Dead and Hu.Health < HP then
  2937. LastHurt = workspace.DistributedGameTime
  2938. Dmg = Hu.Health - HP
  2939. if Hu:GetState() ~= Enum.HumanoidStateType.Dead then
  2940. Recorded = Hu.Health
  2941. end
  2942. if Hu.Health > 0 then
  2943. if Dmg <= math.random(-50,-20) and Interrupt < 3 then
  2944. Interrupt = 3
  2945. OW()
  2946. elseif Dmg <= math.random(-15,-5) and Interrupt < 2 then
  2947. Interrupt = 2
  2948. Ouch()
  2949. elseif Interrupt < 1 then
  2950. Interrupt = 1
  2951. Uh()
  2952. end
  2953. end
  2954. end
  2955. HP = Hu.Health
  2956. end
  2957. Hu.HealthChanged:Connect(HealthChanged)
  2958. local function Died()
  2959. if not Agh then
  2960. Agh = true
  2961. Interrupt = 5
  2962. local Dif = math.abs(Recorded)
  2963. if workspace.DistributedGameTime <= LastHurt + 0.2 then
  2964. Dif = math.max(Dif,-Dmg)
  2965. end
  2966. if Dif >= 60 then
  2967. NowThatsALottaDamage = true
  2968. end
  2969. Gone()
  2970. if RP:FindFirstAncestorWhichIsA("Workspace") then
  2971. if Dif >= math.random(25000,50000) or RP.Velocity.Magnitude >= 300 then
  2972. AAAAH()
  2973. else
  2974. AOW()
  2975. end
  2976. elseif Allowed then
  2977. Scream(RP.Position)
  2978. end
  2979. if Allowed and (RP.Position.Y <= workspace.FallenPartsDestroyHeight or #RP:GetJoints() > 0) then
  2980. delay(1.25,function()
  2981. if RP.Velocity.Y < -100 then
  2982. Fall(RP.Position)
  2983. end
  2984. wait(2)
  2985. if RP.Position.Y <= workspace.FallenPartsDestroyHeight then
  2986. Splash(RP.Position)
  2987. end
  2988. end)
  2989. end
  2990. game:GetService("Debris"):AddItem(Bill,10)
  2991. if not Pass then
  2992. spawn(function()
  2993. local LScript = script.StopAnim:Clone()
  2994. LScript.Parent = Hu
  2995. LScript.Disabled = false
  2996. game:GetService("Debris"):AddItem(LScript)
  2997. wait(0.4)
  2998. local LS = Ch:FindFirstChild("Left Shoulder",true)
  2999. local RS = Ch:FindFirstChild("Right Shoulder",true)
  3000. local LH = Ch:FindFirstChild("Left Hip",true)
  3001. local RH = Ch:FindFirstChild("Right Hip",true)
  3002. if LS and LS:IsA("Motor6D") then
  3003. LS.MaxVelocity = 0.2
  3004. LS.DesiredAngle = -3.14
  3005. end
  3006. if RS and RS:IsA("Motor6D") then
  3007. RS.MaxVelocity = 0.2
  3008. RS.DesiredAngle = 3.14
  3009. end
  3010. if LH and LH:IsA("Motor6D") then
  3011. LH.MaxVelocity = 0.2
  3012. LH.DesiredAngle = -1.57
  3013. end
  3014. if RH and RH:IsA("Motor6D") then
  3015. RH.MaxVelocity = 0.2
  3016. RH.DesiredAngle = 1.57
  3017. end
  3018. wait(0.25)
  3019. if LH and LH:IsA("Motor6D") then
  3020. LH.DesiredAngle = 0
  3021. end
  3022. if RH and RH:IsA("Motor6D") then
  3023. RH.DesiredAngle = 0
  3024. end
  3025. end)
  3026. end
  3027. if HatPart and HatPart.Parent and W1 then
  3028. HatPart.CanCollide = true
  3029. Hat2.CanCollide = true
  3030. W1:Destroy()
  3031. local BV = Instance.new("BodyVelocity",HatPart)
  3032. BV.MaxForce = Vector3.new(1000000,1000000,1000000)
  3033. BV.Velocity = (HatPart.CFrame.UpVector*0.45-HatPart.CFrame.LookVector*0.6)*math.min(250,Dif)
  3034. game:GetService("Debris"):AddItem(BV,math.min(10,math.max(0.2,Dif/1500)))
  3035. if Dif >= 20 then
  3036. spawn(function()
  3037. local SoundF = Instance.new("Sound",HatPart)
  3038. SoundF.SoundId = "rbxasset://sounds/electronicpingshort.wav"
  3039. SoundF.Looped = true
  3040. local P = 1.3
  3041. for i = 1,400 do
  3042. if i > 10 and HatPart.Velocity.Y < 5 then
  3043. break
  3044. end
  3045. P = P + math.max(0,0.15-i/400)
  3046. Play(SoundF,P,0.8)
  3047. wait(0.05)
  3048. end
  3049. for i = 1,10 do
  3050. P = P/1.1
  3051. Play(SoundF,P,0.8-i*0.06)
  3052. wait(0.05)
  3053. end
  3054. SoundF:Destroy()
  3055. end)
  3056. end
  3057. end
  3058. end
  3059. end
  3060. Hu.Died:Connect(Died)
  3061. local ChatTimer = 60
  3062. local Text = ""
  3063. local Add = {}
  3064. local ToSay = {}
  3065. local Talking = false
  3066. local Speak = false
  3067. local function Chatted(msg)
  3068. if string.sub(msg,1,3) ~= "/e " then
  3069. msg = game:GetService("Chat"):FilterStringAsync(msg,owner,owner)
  3070. local Current = 0
  3071. local Times = 0
  3072. local MultType = 0
  3073. local Letters = ""
  3074. local Hard = true
  3075. local function Throw()
  3076. if Times >= 4 then
  3077. Current = 9
  3078. end
  3079. table.insert(Add,Letters)
  3080. table.insert(ToSay,Current)
  3081. Current = 0
  3082. Times = 0
  3083. MultType = 0
  3084. Letters = ""
  3085. Hard = true
  3086. end
  3087. if Talking then
  3088. Letters = " "
  3089. Throw()
  3090. else
  3091. Talking = true
  3092. end
  3093. for i = 1,string.len(msg) do
  3094. local txt = string.sub(msg,i,i)
  3095. Letters = Letters..txt
  3096. if Current == 2 or Current == 3 then
  3097. if txt == "." then
  3098. Current = 3
  3099. else
  3100. Throw()
  3101. end
  3102. elseif Current == 4 then
  3103. if txt == "!" then
  3104. Current = 7
  3105. else
  3106. Throw()
  3107. end
  3108. elseif Current == 5 then
  3109. if txt == "?" then
  3110. Current = 7
  3111. else
  3112. Throw()
  3113. end
  3114. elseif txt == "." then
  3115. Current = 2
  3116. elseif txt == "?" then
  3117. Current = 4
  3118. elseif txt == "!" then
  3119. Current = 5
  3120. elseif txt == "," or txt == "-" or txt == ":" or txt == ";" or txt == "~" then
  3121. Throw()
  3122. Throw()
  3123. elseif txt == "#" then
  3124. Current = 6
  3125. Throw()
  3126. elseif txt ~= " " then
  3127. if string.upper(txt) ~= txt then
  3128. Hard = false
  3129. end
  3130. if Times < 4 then
  3131. if string.lower(txt) == "a" then
  3132. if MultType ~= 1 then
  3133. MultType = 1
  3134. Times = 1
  3135. else
  3136. Times = Times + 1
  3137. end
  3138. elseif string.lower(txt) == "e" then
  3139. if MultType ~= 2 then
  3140. MultType = 2
  3141. Times = 1
  3142. else
  3143. Times = Times + 1
  3144. end
  3145. else
  3146. Times = 0
  3147. end
  3148. end
  3149. if Hard then
  3150. Current = 8
  3151. else
  3152. Current = 1
  3153. end
  3154. else
  3155. Throw()
  3156. end
  3157. end
  3158. if Letters ~= "" then
  3159. Throw()
  3160. end
  3161. end
  3162. end
  3163. local Connect = owner.Chatted:Connect(Chatted)
  3164. spawn(function()
  3165. while In and Hu:GetState() ~= Enum.HumanoidStateType.Dead do
  3166. if Hu.RootPart and not Displaying then
  3167. LastCF = Hu.RootPart.CFrame
  3168. end
  3169. wait(0.05)
  3170. end
  3171. end)
  3172. local EquipSpam = 0
  3173. local function ChildAdded(item)
  3174. if item:IsA("Tool") then
  3175. EquipSpam = EquipSpam + 1
  3176. delay(2,function()
  3177. EquipSpam = EquipSpam - 1
  3178. end)
  3179. if In and Hu:GetState() ~= Enum.HumanoidStateType.Dead and Interrupt == 0 and Add[1] == nil and not Speak then
  3180. if item.Name == "Notes" then
  3181. if EquipSpam >= 5 then
  3182. table.insert(Add,"")
  3183. table.insert(ToSay,7)
  3184. elseif EquipSpam >= 3 then
  3185. table.insert(Add,"")
  3186. table.insert(ToSay,8)
  3187. else
  3188. table.insert(Add,"")
  3189. table.insert(ToSay,1)
  3190. table.insert(Add,"")
  3191. table.insert(ToSay,4)
  3192. end
  3193. else
  3194. if EquipSpam >= 5 then
  3195. table.insert(Add,"")
  3196. table.insert(ToSay,3)
  3197. elseif EquipSpam >= 3 then
  3198. table.insert(Add,"")
  3199. table.insert(ToSay,8)
  3200. else
  3201. table.insert(Add,"")
  3202. table.insert(ToSay,1)
  3203. table.insert(Add,"")
  3204. table.insert(ToSay,2)
  3205. end
  3206. end
  3207. end
  3208. end
  3209. end
  3210. Ch.ChildAdded:Connect(ChildAdded)
  3211. spawn(function()
  3212. while In and Hu:GetState() ~= Enum.HumanoidStateType.Dead do
  3213. if Interrupt > 0 or Add[1] == nil then
  3214. ChatTimer = ChatTimer - 1
  3215. if Add[1] == nil and ChatTimer <= 0 then
  3216. Text = ""
  3217. TextB.Text = ""
  3218. Talking = false
  3219. end
  3220. if Interrupt == 0 then
  3221. local Tool = Ch:FindFirstChildWhichIsA("Tool")
  3222. if Tool then
  3223. local A = Tool:FindFirstChild("toolanim")
  3224. if A and A:IsA("StringValue") then
  3225. local ToolAnim = A.Value
  3226. game:GetService("Debris"):AddItem(A,0.2)
  3227. if ToolAnim == "Slash" or ToolAnim == "Lunge" then
  3228. table.insert(Add,"")
  3229. table.insert(ToSay,5)
  3230. end
  3231. end
  3232. end
  3233. end
  3234. wait(0.05)
  3235. else
  3236. Speak = true
  3237. if Add[1] ~= "" then
  3238. ChatTimer = 60
  3239. end
  3240. Text = Text..Add[1]
  3241. TextB.Text = Text
  3242. table.remove(Add,1)
  3243. if ToSay[1] == 1 then
  3244. Blah()
  3245. elseif ToSay[1] == 2 then
  3246. End()
  3247. elseif ToSay[1] == 3 then
  3248. Oh()
  3249. elseif ToSay[1] == 4 then
  3250. Huh()
  3251. elseif ToSay[1] == 5 then
  3252. Wow()
  3253. elseif ToSay[1] == 6 then
  3254. EEE()
  3255. elseif ToSay[1] == 7 then
  3256. Wha()
  3257. elseif ToSay[1] == 8 then
  3258. RoughTalk()
  3259. elseif ToSay[1] == 9 then
  3260. AAH()
  3261. else
  3262. wait(0.05)
  3263. end
  3264. table.remove(ToSay,1)
  3265. if Hu.Health < 100 then
  3266. wait(0.05)
  3267. end
  3268. if Hu.Health <= 75 then
  3269. wait(0.05)
  3270. end
  3271. if Hu.Health <= 50 then
  3272. wait(0.1)
  3273. end
  3274. if Hu.Health <= 25 then
  3275. wait(0.1)
  3276. end
  3277. Speak = false
  3278. end
  3279. end
  3280. if Connect then
  3281. Connect:Disconnect()
  3282. end
  3283. end)
  3284. end
  3285. end
  3286. T.Parent = owner.Backpack
  3287. T.Grip = CFrame.new(0,-0.75,0)
  3288. I.Parent = owner.Backpack
  3289. I.Grip = CFrame.new(1.65,-0.25,0)
  3290. Update()
  3291. local PL = Instance.new("PointLight",H)
  3292. PL.Range = 3
  3293. PL.Shadows = true
  3294. local Neutral = owner.Neutral
  3295. spawn(function()
  3296. if not Pass then
  3297. local App = game:GetService("Players"):GetCharacterAppearanceAsync(owner.UserId)
  3298. fc = "rbxasset://textures/face.png"
  3299. acc = {}
  3300. HM = nil
  3301. HT = nil
  3302. local C = App:GetChildren()
  3303. for i = 1,#C do
  3304. if C[i].Archivable and (C[i]:IsA("Accessory") or C[i]:IsA("Hat") or C[i]:IsA("Shirt") or C[i]:IsA("Pants") or C[i]:IsA("ShirtGraphic")) then
  3305. local Cl = C[i]:Clone()
  3306. table.insert(acc,Cl)
  3307. elseif C[i].Name == "R6" then
  3308. local C2 = C[i]:GetChildren()
  3309. for ii = 1,#C2 do
  3310. local Cl = C2[ii]:Clone()
  3311. table.insert(acc,Cl)
  3312. end
  3313. elseif C[i]:IsA("SpecialMesh") then
  3314. HM = C[i].MeshId
  3315. HT = C[i].TextureId
  3316. elseif C[i]:IsA("Decal") then
  3317. fc = C[i].Texture
  3318. end
  3319. end
  3320. if Neutral then
  3321. Color = App["Body Colors"].TorsoColor
  3322. clr = Color
  3323. TL.TextStrokeColor3 = Color.Color
  3324. if TextB then
  3325. TextB.TextColor3 = Color.Color
  3326. end
  3327. if HatPart then
  3328. HatPart.BrickColor = Color
  3329. Hat2.BrickColor = Color
  3330. Hat4.BrickColor = Color
  3331. end
  3332. end
  3333. end
  3334. end)
  3335. if not Neutral then
  3336. Color = owner.TeamColor
  3337. clr = Color
  3338. H.BrickColor = Color
  3339. PE2.Color = ColorSequence.new(owner.TeamColor.Color,Color3.new(1,1,1))
  3340. TL.TextStrokeColor3 = Color.Color
  3341. if TextB then
  3342. TextB.TextColor3 = Color.Color
  3343. end
  3344. if HatPart then
  3345. HatPart.BrickColor = Color
  3346. Hat2.BrickColor = Color
  3347. Hat3.BrickColor = BrickColor.new(Color3.new(1-Color.Color.r,1-Color.Color.g,1-Color.Color.b))
  3348. Hat4.BrickColor = Color
  3349. end
  3350. end
  3351. local Cast = 0
  3352. local Power = 1
  3353. local SwingId = 0
  3354. local Shoot = false
  3355. local Shots = 0
  3356. local Yah = 0
  3357. local Mana = 500
  3358. local Buzz = 0.5
  3359. local BuzzInc = true
  3360. local MeleeHit = {}
  3361. local SwingKnocked = {}
  3362. local SwingPower = 1
  3363. local SwingBlast = false
  3364. local function Perform()
  3365. local Character = T.Parent
  3366. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  3367. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3368. if Humanoid and Humanoid.RootPart and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  3369. if Cast == 2 then
  3370. Shoot = 1
  3371. Shots = 5
  3372. elseif Cast == 3 then
  3373. Shoot = 2
  3374. elseif Cast == 4 then
  3375. Shoot = 3
  3376. Shots = 5
  3377. elseif Cast == 5 then
  3378. Shoot = 4
  3379. elseif Cast == 6 then
  3380. Shoot = 5
  3381. elseif Cast == 7 and Mana >= 70 and Power < 23 then
  3382. Power = Power + 1
  3383. PowerIncrease()
  3384. PE2.Transparency = NumberSequence.new(math.max(0,0.8-(Power-1)*0.04),math.max(0.1,0.95-(Power-1)*0.04))
  3385. PE3.Color = ColorSequence.new(Color3.new(1,1,0))
  3386. PE3.Acceleration = Vector3.new()
  3387. PE3.Enabled = true
  3388. delay(0.5,function()
  3389. PE3.Enabled = false
  3390. end)
  3391. Mana = Mana - 70
  3392. Cast = 0
  3393. elseif Cast == 8 then
  3394. Shoot = 7
  3395. elseif Cast == 9 then
  3396. Shoot = 8
  3397. else
  3398. if Cast ~= 0 and Cast ~= 1 then
  3399. PE3.Color = ColorSequence.new(Color3.new(1,1,0))
  3400. PE3.Acceleration = Vector3.new(0,-100,0)
  3401. PE3.Enabled = true
  3402. delay(0.5,function()
  3403. PE3.Enabled = false
  3404. end)
  3405. Fail()
  3406. end
  3407. Cast = 0
  3408. end
  3409. end
  3410. end
  3411. local function Activated()
  3412. local Character = T.Parent
  3413. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  3414. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3415. if Humanoid and Humanoid.RootPart and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  3416. SwingPower = Power
  3417. SwingBlast = false
  3418. if Shoot then
  3419. local toolanim = Instance.new("StringValue",T)
  3420. toolanim.Name = "toolanim"
  3421. toolanim.Value = "Lunge"
  3422. local Size = Humanoid.RootPart.Size.Magnitude/3
  3423. local From = Humanoid.RootPart.CFrame*CFrame.new(Humanoid.RootPart.Size.X*0.75,Humanoid.RootPart.Size.Y*0.25,Humanoid.RootPart.Size.Z*-3)
  3424. local Aim = CFrame.new(0,-15,-100)
  3425. if Power > 10 then
  3426. Aim = CFrame.new(0,-8,-100)
  3427. end
  3428. local Air = false
  3429. local Move = false
  3430. local Dir = false
  3431. if Humanoid.Jump or Humanoid:GetState() == Enum.HumanoidStateType.Jumping or Humanoid:GetState() == Enum.HumanoidStateType.Freefall or Humanoid:GetState() == Enum.HumanoidStateType.Climbing then
  3432. Air = true
  3433. end
  3434. if Humanoid.MoveDirection.X ~= 0 or Humanoid.MoveDirection.Z ~= 0 then
  3435. Move = true
  3436. end
  3437. if Air and not Move then
  3438. Aim = CFrame.new(0,100,0)
  3439. elseif Move then
  3440. Aim = CFrame.new(0,0,-100)
  3441. end
  3442. if (not Humanoid.AutoRotate or Humanoid.WalkSpeed < 0.005 or Humanoid:GetState() == Enum.HumanoidStateType.FallingDown or Humanoid:GetState() == Enum.HumanoidStateType.Ragdoll or Humanoid:GetState() == Enum.HumanoidStateType.Physics or Humanoid:GetState() == Enum.HumanoidStateType.PlatformStanding or Humanoid:GetState() == Enum.HumanoidStateType.Seated or Humanoid:GetState() == Enum.HumanoidStateType.Swimming) and Move then
  3443. Dir = true
  3444. end
  3445. T.Grip = CFrame.new(0,-0.75,0,1,0,0,1)
  3446. PE3.Enabled = true
  3447. PE3.Acceleration = Vector3.new()
  3448. Yah = Yah + 1
  3449. delay(0.5,function()
  3450. Yah = Yah - 1
  3451. if (Cast == 0 or Shots > 0) and Yah == 0 then
  3452. T.Grip = CFrame.new(0,-0.75,0)
  3453. end
  3454. PE3.Enabled = false
  3455. end)
  3456. local StoredPower = Power
  3457. local Stored = Cast
  3458. local StoredShots = Shots
  3459. Shots = Shots - 1
  3460. if Shots < 1 then
  3461. Shots = 0
  3462. Power = math.max(1,Power-1)
  3463. Cast = 0
  3464. Shoot = false
  3465. end
  3466. PE2.Transparency = NumberSequence.new(math.max(0,0.8-(Power-1)*0.04),math.max(0.1,0.95-(Power-1)*0.04))
  3467. if Stored == 2 then
  3468. PE3.Color = ColorSequence.new(Color3.new(1,0.5,0))
  3469. elseif Stored == 3 then
  3470. PE3.Color = ColorSequence.new(Color3.new(1,1,1))
  3471. elseif Stored == 4 then
  3472. PE3.Color = ColorSequence.new(Color3.new(0.2,0.8,1))
  3473. elseif Stored == 5 then
  3474. PE3.Color = ColorSequence.new(Color3.new(0,1,0))
  3475. elseif Stored == 6 then
  3476. PE3.Color = ColorSequence.new(Color3.new(0.1,0.2,1))
  3477. elseif Stored == 8 then
  3478. PE3.Color = ColorSequence.new(Color3.new(1,0.5,1))
  3479. elseif Stored == 9 then
  3480. PE3.Color = ColorSequence.new(Color3.new(1,0.2,0.2))
  3481. end
  3482. if Stored == 2 and Mana >= 10 then
  3483. FireBlast()
  3484. Mana = Mana - 10
  3485. local Shot = Instance.new("Part",script)
  3486. Shot.Name = "Fire"
  3487. Shot.Locked = true
  3488. Shot.CanCollide = false
  3489. Shot.Size = Vector3.new(1,1,3)*Size
  3490. if Dir then
  3491. Shot.CFrame = CFrame.new(From.Position,From.Position+Humanoid.MoveDirection*100)
  3492. else
  3493. Shot.CFrame = CFrame.new(From.Position,(From*Aim).Position)
  3494. end
  3495. Shot.BrickColor = BrickColor.new("Neon orange")
  3496. Shot.Material = Enum.Material.Neon
  3497. Shot.Velocity = Shot.CFrame.LookVector*160*Size
  3498. Shot:SetNetworkOwner(nil)
  3499. local L = Instance.new("PointLight",Shot)
  3500. L.Color = Shot.Color
  3501. L.Brightness = 10
  3502. L.Range = 12
  3503. L.Shadows = true
  3504. local BV = Instance.new("BodyVelocity",Shot)
  3505. BV.Velocity = Shot.CFrame.LookVector*160*Size
  3506. BV.MaxForce = Vector3.new(400000,400000,400000)
  3507. local BG = Instance.new("BodyGyro",Shot)
  3508. BG.CFrame = Shot.CFrame
  3509. BG.MaxTorque = Vector3.new(4000000,4000000,4000000)
  3510. game:GetService("Debris"):AddItem(Shot,30)
  3511. local Dont = Character
  3512. local Attacker = Player
  3513. local Kaboom = StoredPower > 6 and StoredShots > 3
  3514. local Collided = false
  3515. local Blast = false
  3516. local Hit = {}
  3517. local Active = true
  3518. local function Touched(hit)
  3519. if hit and hit.Parent and (Dont == nil or not hit:IsDescendantOf(Dont)) then
  3520. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  3521. if H and not table.find(Hit,H) then
  3522. local Stored = H.Health
  3523. local creator = Instance.new("ObjectValue",H)
  3524. creator.Name = "creator"
  3525. if Attacker and Attacker.Parent then
  3526. creator.Value = Attacker
  3527. end
  3528. game:GetService("Debris"):AddItem(creator,0.1)
  3529. H:TakeDamage(17+3^StoredPower)
  3530. if H.Health >= Stored then
  3531. if Active then
  3532. Active = false
  3533. Deflect(hit.Position)
  3534. delay(0.1,function()
  3535. Active = true
  3536. end)
  3537. end
  3538. DefCount = DefCount + 1
  3539. LDefCount = LDefCount + 1
  3540. NotifyBlock()
  3541. Update()
  3542. Dont = hit.Parent
  3543. Attacker = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
  3544. if (Shot.Position-hit.Position).Magnitude > 0 then
  3545. Shot.Velocity = -Shot.Velocity
  3546. BV.Velocity = -BV.Velocity
  3547. end
  3548. else
  3549. if StoredPower > 2 then
  3550. H.Sit = false
  3551. end
  3552. HitCount = HitCount + 1
  3553. LHitCount = LHitCount + 1
  3554. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),17+3^StoredPower))
  3555. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),17+3^StoredPower))
  3556. if Stored > 0 and H.Health <= 0 then
  3557. ConfirmLast = ConfirmLast + 1
  3558. LConfirmLast = LConfirmLast + 1
  3559. NotifyKO()
  3560. else
  3561. NotifyHit()
  3562. end
  3563. Update()
  3564. if 17+3^StoredPower >= 60 then
  3565. Damages(hit.Position)
  3566. else
  3567. Hurt(hit.Position)
  3568. end
  3569. table.insert(Hit,H)
  3570. Collided = true
  3571. end
  3572. elseif (not hit:IsA("Terrain") or table.find(Shot:GetTouchingParts(),hit)) and hit.CanCollide then
  3573. Collided = true
  3574. end
  3575. if Collided and not Blast then
  3576. Blast = true
  3577. if StoredPower < 3 then
  3578. PlayFX("C",0.15,1,Shot.Position)
  3579. Shot:Destroy()
  3580. local P = Instance.new("Part",script)
  3581. P.Name = "Smoke"
  3582. P.Shape = Enum.PartType.Ball
  3583. P.Size = Vector3.new(2,2,2)*Size
  3584. P.Transparency = 0.1
  3585. P.Material = Enum.Material.Neon
  3586. P.Position = Shot.Position
  3587. P.Anchored = true
  3588. P.Locked = true
  3589. P.CanCollide = false
  3590. local Colors = {Color.Name,"Bright red",Color.Name,"Bright red",Color.Name,"Bright red","Crimson","Dark stone grey","Black","Really black"}
  3591. for i = 1,10 do
  3592. P.BrickColor = BrickColor.new(Colors[i])
  3593. wait(0.05)
  3594. P.Transparency = P.Transparency + 0.075
  3595. P.Position = P.Position + Vector3.new(0,0.2,0)
  3596. end
  3597. P:Destroy()
  3598. elseif StoredShots > 3 then
  3599. local P = Instance.new("Part",script)
  3600. P.Name = "Fire"
  3601. P.Shape = Enum.PartType.Ball
  3602. P.Size = Vector3.new(3,3,3)*(StoredPower-2)*Size
  3603. P.Material = Enum.Material.Neon
  3604. P.Position = Shot.Position
  3605. P.Anchored = true
  3606. P.Locked = true
  3607. P.CanCollide = false
  3608. local P2 = Instance.new("Part",script)
  3609. P2.Name = "FireEffect"
  3610. P2.Shape = Enum.PartType.Ball
  3611. P2.Size = Vector3.new(3,3,3)*(StoredPower-2)*Size
  3612. P2.Material = Enum.Material.Neon
  3613. P2.Position = Shot.Position
  3614. P2.Anchored = true
  3615. P2.Locked = true
  3616. P2.CanCollide = false
  3617. local M = Instance.new("SpecialMesh",P)
  3618. M.MeshType = Enum.MeshType.Sphere
  3619. M.Scale = Vector3.new(0.5,0.5,0.5)
  3620. local M2 = Instance.new("SpecialMesh",P2)
  3621. M2.MeshType = Enum.MeshType.Sphere
  3622. M2.Scale = Vector3.new(0.5,0.5,0.5)
  3623. local function Touched(hit)
  3624. if hit and hit.Parent then
  3625. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  3626. if H and not table.find(Hit,H) then
  3627. local Stored = H.Health
  3628. local creator = Instance.new("ObjectValue",H)
  3629. creator.Name = "creator"
  3630. if Attacker and Attacker.Parent then
  3631. creator.Value = Attacker
  3632. end
  3633. game:GetService("Debris"):AddItem(creator,0.1)
  3634. H:TakeDamage(17+3^StoredPower)
  3635. table.insert(Hit,H)
  3636. if H.Health >= Stored then
  3637. Deflect(hit.Position)
  3638. DefCount = DefCount + 1
  3639. LDefCount = LDefCount + 1
  3640. NotifyBlock()
  3641. Update()
  3642. else
  3643. HitCount = HitCount + 1
  3644. LHitCount = LHitCount + 1
  3645. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),17+3^StoredPower))
  3646. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),17+3^StoredPower))
  3647. if Stored > 0 and H.Health <= 0 then
  3648. ConfirmLast = ConfirmLast + 1
  3649. LConfirmLast = LConfirmLast + 1
  3650. NotifyKO()
  3651. else
  3652. NotifyHit()
  3653. end
  3654. Update()
  3655. if StoredPower > 2 then
  3656. H.Sit = false
  3657. end
  3658. if 17+3^StoredPower >= 60 then
  3659. Damages(hit.Position)
  3660. else
  3661. Hurt(hit.Position)
  3662. end
  3663. end
  3664. end
  3665. end
  3666. end
  3667. P.Touched:Connect(Touched)
  3668. if Kaboom then
  3669. P.Name = "Explosion"
  3670. local E = Instance.new("Explosion",workspace)
  3671. E.BlastRadius = 0.75*(StoredPower-2)*Size
  3672. E.BlastPressure = 3500000
  3673. E.Position = P.Position
  3674. E.Hit:Connect(function(part)
  3675. if part and part.Parent and part.Parent:FindFirstChildWhichIsA("ForceField") == nil then
  3676. local H = part.Parent:FindFirstChildWhichIsA("Humanoid")
  3677. if H and H:GetState() ~= Enum.HumanoidStateType.Dead then
  3678. if part.Name == "Torso" or part.Name == "UpperTorso" then
  3679. ExplosiveFinish = ExplosiveFinish + 1
  3680. LExplosiveFinish = LExplosiveFinish + 1
  3681. NotifyKaboom()
  3682. Update()
  3683. end
  3684. end
  3685. end
  3686. Touched(part)
  3687. end)
  3688. Explode(P.Position)
  3689. else
  3690. FireBurst(P.Position)
  3691. end
  3692. local P1 = Instance.new("SurfaceLight",P)
  3693. P1.Angle = 130
  3694. P1.Brightness = 40
  3695. P1.Range = 30+StoredPower*2*Size
  3696. P1.Shadows = true
  3697. local F = Enum.NormalId:GetEnumItems()
  3698. local L = {}
  3699. for a = 1,#F do
  3700. local Light = P1
  3701. if a > 1 then
  3702. Light = P1:Clone()
  3703. Light.Parent = P
  3704. end
  3705. Light.Face = F[a]
  3706. table.insert(L,Light)
  3707. end
  3708. for i = 1,10 do
  3709. P.BrickColor = BrickColor.new("Bright red")
  3710. M.Scale = Vector3.new(1,1,1)
  3711. P.Transparency = 0.55-i/20+0.1
  3712. if Kaboom and i < 10 and i%2 == 0 then
  3713. P.Transparency = 0
  3714. P.BrickColor = BrickColor.new("Cool yellow")
  3715. M.Scale = Vector3.new(0.5,0.5,0.5)
  3716. elseif i%2 == 0 then
  3717. P.BrickColor = Color
  3718. end
  3719. P2.Transparency = 0.55-i/20
  3720. P2.BrickColor = BrickColor.new("Neon orange")
  3721. if i%2 == 1 then
  3722. P2.BrickColor = Color
  3723. end
  3724. M2.Scale = Vector3.new(0.25+i*0.05,0.25+i*0.05,0.25+i*0.05)
  3725. if i > 5 then
  3726. for a = 1,#L do
  3727. L[a].Color = P.Color
  3728. L[a].Brightness = L[a].Brightness - 4
  3729. end
  3730. end
  3731. local T = P:GetTouchingParts()
  3732. for a = 1,#T do
  3733. Touched(T[a])
  3734. end
  3735. wait(0.05)
  3736. end
  3737. P.Transparency = 0.1
  3738. P2.Transparency = 0
  3739. for i = 1,5 do
  3740. P.BrickColor = BrickColor.new("Bright red")
  3741. P.Transparency = P.Transparency + 0.2
  3742. if i%2 == 0 then
  3743. P.BrickColor = Color
  3744. end
  3745. P2.BrickColor = BrickColor.new("Neon orange")
  3746. P2.Transparency = P2.Transparency + 0.2
  3747. if i%2 == 1 then
  3748. P2.BrickColor = Color
  3749. end
  3750. for a = 1,#L do
  3751. L[a].Color = P2.Color
  3752. L[a].Brightness = L[a].Brightness - 4
  3753. end
  3754. local T = P:GetTouchingParts()
  3755. for a = 1,#T do
  3756. Touched(T[a])
  3757. end
  3758. wait(0.05)
  3759. end
  3760. P:Destroy()
  3761. P2:Destroy()
  3762. end
  3763. end
  3764. end
  3765. end
  3766. Shot.Touched:Connect(Touched)
  3767. local Travel = 0
  3768. while Shot.Parent do
  3769. Travel = Travel + 1
  3770. if Travel < 38 and not Collided then
  3771. PlayFX("C",2-Travel*0.05,0.5,Shot.Position)
  3772. end
  3773. if Travel%3 == 0 then
  3774. Shot.BrickColor = BrickColor.new("Neon orange")
  3775. elseif Travel%3 == 1 then
  3776. Shot.BrickColor = BrickColor.new("Bright red")
  3777. if Kaboom then
  3778. Shot.BrickColor = BrickColor.new("White")
  3779. end
  3780. else
  3781. Shot.BrickColor = Color
  3782. end
  3783. L.Color = Shot.Color
  3784. wait(0.05)
  3785. end
  3786. elseif Stored == 3 and Mana >= 10 then
  3787. Mana = Mana - 10
  3788. AirBurst(Humanoid.RootPart.Position)
  3789. if Move or Air then
  3790. Humanoid.Sit = false
  3791. Humanoid.PlatformStand = false
  3792. local BV = Humanoid.RootPart:FindFirstChildWhichIsA("BodyVelocity")
  3793. if BV then
  3794. BV:Destroy()
  3795. end
  3796. BV = Instance.new("BodyVelocity",Humanoid.RootPart)
  3797. BV.MaxForce = Vector3.new(1000000,1000000,1000000)
  3798. BV.Velocity = Humanoid.RootPart.CFrame.LookVector*(32+4*StoredPower)*Size
  3799. if Dir then
  3800. BV.Velocity = Humanoid.MoveDirection*(32+4*StoredPower)*Size
  3801. end
  3802. if not Move then
  3803. BV.Velocity = Vector3.new()
  3804. end
  3805. if Air then
  3806. BV.Velocity = BV.Velocity + Vector3.new(0,32+4*StoredPower,0)*Size
  3807. end
  3808. game:GetService("Debris"):AddItem(BV,0.8)
  3809. end
  3810. local P = Instance.new("Part",script)
  3811. P.Name = "Pressure"
  3812. P.Shape = Enum.PartType.Ball
  3813. P.Size = Vector3.new(1,1,1)*StoredPower*Size
  3814. P.Transparency = 1
  3815. P.Material = Enum.Material.Glass
  3816. P.Position = Humanoid.RootPart.Position
  3817. P.Anchored = true
  3818. P.Locked = true
  3819. P.CanCollide = false
  3820. local Dont = Character
  3821. local Attacker = Player
  3822. local Hit = {}
  3823. local Knocked = {}
  3824. local function Touched(hit)
  3825. if hit and hit.Parent and (Dont == nil or not hit:IsDescendantOf(Dont)) then
  3826. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  3827. if H and not table.find(Hit,H) then
  3828. local Stored = H.Health
  3829. local creator = Instance.new("ObjectValue",H)
  3830. creator.Name = "creator"
  3831. if Attacker and Attacker.Parent then
  3832. creator.Value = Attacker
  3833. end
  3834. game:GetService("Debris"):AddItem(creator,0.1)
  3835. H:TakeDamage(2+(2^StoredPower)/2)
  3836. table.insert(Hit,H)
  3837. if H.Health >= Stored then
  3838. Deflect(hit.Position)
  3839. DefCount = DefCount + 1
  3840. LDefCount = LDefCount + 1
  3841. NotifyBlock()
  3842. Update()
  3843. else
  3844. HitCount = HitCount + 1
  3845. LHitCount = LHitCount + 1
  3846. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),2+(2^StoredPower)/2))
  3847. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),2+(2^StoredPower)/2))
  3848. if Stored > 0 and H.Health <= 0 then
  3849. ConfirmLast = ConfirmLast + 1
  3850. LConfirmLast = LConfirmLast + 1
  3851. NotifyKO()
  3852. else
  3853. NotifyHit()
  3854. end
  3855. Update()
  3856. if 2+(2^StoredPower)/2 >= 60 then
  3857. Damages(hit.Position)
  3858. else
  3859. Hurt(hit.Position)
  3860. end
  3861. end
  3862. end
  3863. if not table.find(Knocked,hit) then
  3864. table.insert(Knocked,hit)
  3865. if (hit.Position-P.Position).Magnitude > 0 then
  3866. local BV = Instance.new("BodyVelocity",hit)
  3867. BV.MaxForce = Vector3.new(1000000,1000000,1000000)
  3868. BV.Velocity = (hit.Position-P.Position).Unit*20*StoredPower*Size
  3869. game:GetService("Debris"):AddItem(BV,0.2)
  3870. end
  3871. if StoredPower > 2 and not hit.Anchored then
  3872. local BAV = Instance.new("BodyAngularVelocity",hit)
  3873. BAV.AngularVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  3874. BAV.MaxTorque = Vector3.new(4000000,4000000,4000000)
  3875. game:GetService("Debris"):AddItem(BAV,0.2)
  3876. end
  3877. end
  3878. end
  3879. end
  3880. P.Touched:Connect(Touched)
  3881. for i = 1,10 do
  3882. P.Transparency = P.Transparency - 0.05
  3883. P.Size = P.Size + Vector3.new(0.5,0.5,0.5)*StoredPower*Size
  3884. if i%2 == 0 then
  3885. P.BrickColor = BrickColor.new("Mid gray")
  3886. else
  3887. P.BrickColor = Color
  3888. end
  3889. local T = P:GetTouchingParts()
  3890. for a = 1,#T do
  3891. Touched(T[a])
  3892. end
  3893. wait(0.05)
  3894. end
  3895. for i = 1,5 do
  3896. P.Transparency = P.Transparency + 0.1
  3897. if i%2 == 0 then
  3898. P.BrickColor = BrickColor.new("Mid gray")
  3899. else
  3900. P.BrickColor = Color
  3901. end
  3902. local T = P:GetTouchingParts()
  3903. for a = 1,#T do
  3904. Touched(T[a])
  3905. end
  3906. wait(0.05)
  3907. end
  3908. P:Destroy()
  3909. elseif Stored == 4 and Mana >= 10 then
  3910. Mana = Mana - 10
  3911. IceShot()
  3912. local Shot = Instance.new("Part",script)
  3913. Shot.Name = "Ice"
  3914. Shot.Locked = true
  3915. Shot.CanCollide = false
  3916. Shot.Size = Vector3.new(2,2,2)*Size
  3917. Shot.Material = Enum.Material.Neon
  3918. Shot.Transparency = 0.7
  3919. Shot.Shape = Enum.PartType.Ball
  3920. local E1 = Instance.new("Part",Shot)
  3921. E1.Name = "IceEffect"
  3922. E1.Locked = true
  3923. E1.CanCollide = false
  3924. E1.Size = Vector3.new(0.5,2.5,0.5)*Size
  3925. E1.Material = Enum.Material.Ice
  3926. local E2 = Instance.new("Part",Shot)
  3927. E2.Name = "IceEffect"
  3928. E2.Locked = true
  3929. E2.CanCollide = false
  3930. E2.Size = Vector3.new(2.5,0.5,0.5)*Size
  3931. E2.Material = Enum.Material.Ice
  3932. local E3 = Instance.new("Part",Shot)
  3933. E3.Name = "IceEffect"
  3934. E3.Locked = true
  3935. E3.CanCollide = false
  3936. E3.Size = Vector3.new(0.5,0.5,2.5)*Size
  3937. E3.Material = Enum.Material.Ice
  3938. local W1 = Instance.new("Weld",Shot)
  3939. W1.Part0 = Shot
  3940. W1.Part1 = E1
  3941. local W2 = Instance.new("Weld",Shot)
  3942. W2.Part0 = Shot
  3943. W2.Part1 = E2
  3944. local W3 = Instance.new("Weld",Shot)
  3945. W3.Part0 = Shot
  3946. W3.Part1 = E3
  3947. if Dir then
  3948. Shot.CFrame = CFrame.new(From.Position,From.Position+Humanoid.MoveDirection*100)
  3949. else
  3950. Shot.CFrame = CFrame.new(From.Position,(From*Aim).Position)
  3951. end
  3952. Shot.BrickColor = BrickColor.new("Medium blue")
  3953. E1.BrickColor = Shot.BrickColor
  3954. E2.BrickColor = Shot.BrickColor
  3955. E3.BrickColor = Shot.BrickColor
  3956. Shot.Material = Enum.Material.Neon
  3957. Shot.Velocity = Shot.CFrame.LookVector*160*Size
  3958. Shot:SetNetworkOwner(nil)
  3959. local L = Instance.new("PointLight",Shot)
  3960. L.Color = Shot.Color
  3961. L.Brightness = 10
  3962. L.Range = 12
  3963. L.Shadows = true
  3964. local BV = Instance.new("BodyVelocity",Shot)
  3965. BV.Velocity = Shot.CFrame.LookVector*160*Size
  3966. BV.MaxForce = Vector3.new(400000,400000,400000)
  3967. local BAV = Instance.new("BodyAngularVelocity",Shot)
  3968. BAV.AngularVelocity = Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3969. BAV.MaxTorque = Vector3.new(4000000,4000000,4000000)
  3970. game:GetService("Debris"):AddItem(Shot,30)
  3971. local Dont = Character
  3972. local Attacker = Player
  3973. local Collided = false
  3974. local Blast = false
  3975. local Hit = {}
  3976. local Active = true
  3977. local function Touched(hit)
  3978. if hit and hit.Parent and (Dont == nil or not hit:IsDescendantOf(Dont)) then
  3979. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  3980. if H and not table.find(Hit,H) then
  3981. local Stored = H.Health
  3982. local creator = Instance.new("ObjectValue",H)
  3983. creator.Name = "creator"
  3984. if Attacker and Attacker.Parent then
  3985. creator.Value = Attacker
  3986. end
  3987. game:GetService("Debris"):AddItem(creator,0.1)
  3988. H:TakeDamage(4+2^StoredPower)
  3989. if H.Health >= Stored then
  3990. if Active then
  3991. Active = false
  3992. Deflect(hit.Position)
  3993. delay(0.1,function()
  3994. Active = true
  3995. end)
  3996. end
  3997. DefCount = DefCount + 1
  3998. LDefCount = LDefCount + 1
  3999. NotifyBlock()
  4000. Update()
  4001. Dont = hit.Parent
  4002. Attacker = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
  4003. if (Shot.Position-hit.Position).Magnitude > 0 then
  4004. Shot.Velocity = -Shot.Velocity
  4005. BV.Velocity = -BV.Velocity
  4006. end
  4007. else
  4008. if StoredPower > 1 then
  4009. local Tag = hit.Parent:FindFirstChild("ImCold")
  4010. if not (Tag and Tag:IsA("NumberValue")) or Tag.Value <= 100 then
  4011. H.Sit = true
  4012. end
  4013. end
  4014. HitCount = HitCount + 1
  4015. LHitCount = LHitCount + 1
  4016. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),4+2^StoredPower))
  4017. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),4+2^StoredPower))
  4018. if Stored > 0 and H.Health <= 0 then
  4019. ConfirmLast = ConfirmLast + 1
  4020. LConfirmLast = LConfirmLast + 1
  4021. NotifyKO()
  4022. else
  4023. NotifyHit()
  4024. end
  4025. Update()
  4026. if 4+2^StoredPower >= 60 then
  4027. Damages(hit.Position)
  4028. else
  4029. Hurt(hit.Position)
  4030. end
  4031. table.insert(Hit,H)
  4032. if StoredPower > 2 then
  4033. local Amount = 20*StoredPower
  4034. Cold(H,hit.Parent,Amount)
  4035. end
  4036. Collided = true
  4037. end
  4038. elseif (not hit:IsA("Terrain") or table.find(Shot:GetTouchingParts(),hit)) and hit.CanCollide then
  4039. Collided = true
  4040. end
  4041. if Collided and not Blast then
  4042. Blast = true
  4043. if StoredPower < 3 then
  4044. PlayFX("C",1.2,1,Shot.Position)
  4045. Shot:Destroy()
  4046. local P = Instance.new("Part",script)
  4047. P.Name = "Frost"
  4048. P.Shape = Enum.PartType.Ball
  4049. P.Size = Vector3.new(2,2,2)*Size
  4050. P.Transparency = 0.1
  4051. P.Material = Enum.Material.Neon
  4052. P.Position = Shot.Position
  4053. P.Anchored = true
  4054. P.Locked = true
  4055. P.CanCollide = false
  4056. local Colors = {Color.Name,"Medium blue",Color.Name,"Medium blue",Color.Name,"Medium blue","Pastel Blue","White","Medium blue","Dark blue"}
  4057. for i = 1,10 do
  4058. P.BrickColor = BrickColor.new(Colors[i])
  4059. wait(0.05)
  4060. P.Transparency = P.Transparency + 0.075
  4061. P.Position = P.Position + Vector3.new(0,0.2,0)
  4062. end
  4063. P:Destroy()
  4064. elseif StoredShots > 3 then
  4065. local P = Instance.new("Part",script)
  4066. P.Name = "Ice"
  4067. P.Shape = Enum.PartType.Ball
  4068. P.Size = Vector3.new(3,3,3)*(StoredPower-2)*Size
  4069. P.Material = Enum.Material.Ice
  4070. P.Position = Shot.Position
  4071. P.Anchored = true
  4072. P.Locked = true
  4073. P.CanCollide = false
  4074. local P2 = Instance.new("Part",script)
  4075. P2.Name = "IceEffect"
  4076. P2.Shape = Enum.PartType.Ball
  4077. P2.Size = Vector3.new(3,3,3)*(StoredPower-2)*Size
  4078. P2.Material = Enum.Material.Neon
  4079. P2.Position = Shot.Position
  4080. P2.Anchored = true
  4081. P2.Locked = true
  4082. P2.CanCollide = false
  4083. local M = Instance.new("SpecialMesh",P)
  4084. M.MeshType = Enum.MeshType.Sphere
  4085. M.Scale = Vector3.new(0.5,0.5,0.5)
  4086. local M2 = Instance.new("SpecialMesh",P2)
  4087. M2.MeshType = Enum.MeshType.Sphere
  4088. M2.Scale = Vector3.new(0.5,0.5,0.5)
  4089. local function Touched(hit)
  4090. if hit and hit.Parent then
  4091. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  4092. if H and not table.find(Hit,H) then
  4093. local Stored = H.Health
  4094. local creator = Instance.new("ObjectValue",H)
  4095. creator.Name = "creator"
  4096. if Attacker and Attacker.Parent then
  4097. creator.Value = Attacker
  4098. end
  4099. game:GetService("Debris"):AddItem(creator,0.1)
  4100. H:TakeDamage(4+2^StoredPower)
  4101. table.insert(Hit,H)
  4102. if H.Health >= Stored then
  4103. Deflect(hit.Position)
  4104. DefCount = DefCount + 1
  4105. LDefCount = LDefCount + 1
  4106. NotifyBlock()
  4107. Update()
  4108. else
  4109. if StoredPower > 1 then
  4110. local Tag = hit.Parent:FindFirstChild("ImCold")
  4111. if not (Tag and Tag:IsA("NumberValue")) or Tag.Value <= 100 then
  4112. H.Sit = true
  4113. end
  4114. end
  4115. HitCount = HitCount + 1
  4116. LHitCount = LHitCount + 1
  4117. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),4+2^StoredPower))
  4118. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),4+2^StoredPower))
  4119. if Stored > 0 and H.Health <= 0 then
  4120. ConfirmLast = ConfirmLast + 1
  4121. LConfirmLast = LConfirmLast + 1
  4122. NotifyKO()
  4123. else
  4124. NotifyHit()
  4125. end
  4126. Update()
  4127. if 4+2^StoredPower >= 60 then
  4128. Damages(hit.Position)
  4129. else
  4130. Hurt(hit.Position)
  4131. end
  4132. if StoredPower > 2 then
  4133. local Amount = 20*StoredPower
  4134. Cold(H,hit.Parent,Amount)
  4135. end
  4136. end
  4137. end
  4138. end
  4139. end
  4140. P.Touched:Connect(Touched)
  4141. Shatter(P.Position)
  4142. for i = 1,10 do
  4143. P.BrickColor = BrickColor.new("Cyan")
  4144. M.Scale = Vector3.new(1,1,1)
  4145. P.Transparency = 0.55-i/20+0.1
  4146. if i%2 == 0 then
  4147. P.BrickColor = Color
  4148. end
  4149. P2.Transparency = 0.55-i/20
  4150. P2.BrickColor = BrickColor.new("Pastel Blue")
  4151. if i%2 == 1 then
  4152. P2.BrickColor = Color
  4153. end
  4154. M2.Scale = Vector3.new(0.25+i*0.05,0.25+i*0.05,0.25+i*0.05)
  4155. local T = P:GetTouchingParts()
  4156. for a = 1,#T do
  4157. Touched(T[a])
  4158. end
  4159. wait(0.05)
  4160. end
  4161. P.Transparency = 0.1
  4162. P2.Transparency = 0
  4163. for i = 1,5 do
  4164. P.BrickColor = BrickColor.new("Cyan")
  4165. P.Transparency = P.Transparency + 0.2
  4166. if i%2 == 0 then
  4167. P.BrickColor = Color
  4168. end
  4169. P2.BrickColor = BrickColor.new("Pastel Blue")
  4170. P2.Transparency = P2.Transparency + 0.2
  4171. if i%2 == 1 then
  4172. P2.BrickColor = Color
  4173. end
  4174. local T = P:GetTouchingParts()
  4175. for a = 1,#T do
  4176. Touched(T[a])
  4177. end
  4178. wait(0.05)
  4179. end
  4180. P:Destroy()
  4181. P2:Destroy()
  4182. end
  4183. end
  4184. end
  4185. end
  4186. Shot.Touched:Connect(Touched)
  4187. local Travel = 0
  4188. while Shot.Parent do
  4189. Travel = Travel + 1
  4190. if Travel < 40 and not Collided then
  4191. PlayFX("C",0.35-Travel*0.005,0.25-Travel*0.005,Shot.Position)
  4192. end
  4193. if Travel%3 == 0 then
  4194. Shot.BrickColor = BrickColor.new("Steel blue")
  4195. elseif Travel%3 == 1 then
  4196. Shot.BrickColor = BrickColor.new("Medium blue")
  4197. if StoredPower > 2 and StoredShots > 3 then
  4198. Shot.BrickColor = BrickColor.new("White")
  4199. end
  4200. else
  4201. Shot.BrickColor = Color
  4202. end
  4203. L.Color = Shot.Color
  4204. wait(0.05)
  4205. end
  4206. elseif Stored == 5 and Mana >= 100 then
  4207. Mana = Mana - 100
  4208. PE4.Color = ColorSequence.new(Color3.new(1,1,0))
  4209. PE4.Size = NumberSequence.new(0.4*StoredPower,0.4*StoredPower)
  4210. PE4.Speed = NumberRange.new(0,15*StoredPower)
  4211. PE4.Acceleration = Vector3.new(0,5*StoredPower,0)
  4212. PE4.Rate = StoredPower*200
  4213. local e = Color3.new(0,1,0)
  4214. local E = Color.Color
  4215. local c = ColorSequenceKeypoint.new
  4216. local CS = ColorSequence.new({c(0,e),c(0.1,E),c(0.2,e),c(0.3,E),c(0.4,e),c(0.5,E),c(0.6,e),c(0.7,E),c(0.8,e),c(0.9,E),c(1,e)})
  4217. PE4.Color = CS
  4218. PE4.Enabled = true
  4219. delay(0.2,function()
  4220. PE4.Enabled = false
  4221. end)
  4222. Healing()
  4223. local Healed = {}
  4224. local P = Instance.new("Part",script)
  4225. P.Name = "Heal"
  4226. P.Shape = Enum.PartType.Ball
  4227. P.Size = Vector3.new(1,1,1)*StoredPower*Size
  4228. P.Transparency = 1
  4229. P.Material = Enum.Material.Neon
  4230. P.Position = Humanoid.RootPart.Position
  4231. P.Anchored = true
  4232. P.Locked = true
  4233. P.CanCollide = false
  4234. P.BrickColor = BrickColor.new("Lime green")
  4235. local function Touched(hit)
  4236. if hit and hit.Parent then
  4237. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  4238. if H and H:GetState() ~= Enum.HumanoidStateType.Dead and not table.find(Healed,H) then
  4239. table.insert(Healed,H)
  4240. if H.Health + 15*StoredPower < H.MaxHealth then
  4241. HealthHealed = HealthHealed + 15*StoredPower
  4242. LHealthHealed = LHealthHealed + 15*StoredPower
  4243. NotifyHeal()
  4244. Update()
  4245. H.Health = H.Health + 15*StoredPower
  4246. Recover()
  4247. elseif H.Health < H.MaxHealth then
  4248. HealthHealed = HealthHealed + math.ceil(H.MaxHealth-H.Health)
  4249. LHealthHealed = LHealthHealed + math.ceil(H.MaxHealth-H.Health)
  4250. NotifyHeal2()
  4251. Update()
  4252. H.Health = H.MaxHealth
  4253. Recover()
  4254. end
  4255. end
  4256. end
  4257. end
  4258. P.Touched:Connect(Touched)
  4259. for i = 1,10 do
  4260. P.Transparency = P.Transparency - 0.1
  4261. P.Size = P.Size + Vector3.new(0.5,0.5,0.5)*math.min(StoredPower,20)*Size
  4262. if i%3 ~= 0 then
  4263. P.BrickColor = BrickColor.new("Lime green")
  4264. else
  4265. P.BrickColor = Color
  4266. end
  4267. local T = P:GetTouchingParts()
  4268. for a = 1,#T do
  4269. Touched(T[a])
  4270. end
  4271. wait(0.05)
  4272. end
  4273. for i = 1,5 do
  4274. P.Transparency = P.Transparency + 0.2
  4275. if i%3 ~= 2 then
  4276. P.BrickColor = BrickColor.new("Lime green")
  4277. else
  4278. P.BrickColor = Color
  4279. end
  4280. local T = P:GetTouchingParts()
  4281. for a = 1,#T do
  4282. Touched(T[a])
  4283. end
  4284. wait(0.05)
  4285. end
  4286. P:Destroy()
  4287. elseif Stored == 6 and Mana >= 150 then
  4288. Mana = Mana - 150
  4289. Shield()
  4290. ApplyShield(Character,Humanoid,Size,StoredPower,StoredPower*100/4,Color)
  4291. elseif Stored == 8 and Mana >= 50 then
  4292. Mana = Mana - 50
  4293. if StoredPower > 2 then
  4294. BlockThrow()
  4295. end
  4296. local Shot = Instance.new("Part",script)
  4297. Shot.Name = "Block"
  4298. Shot.Locked = true
  4299. Shot.Size = Vector3.new(8,8,8)*Size
  4300. Shot.CFrame = Humanoid.RootPart.CFrame*CFrame.new(0,2,-7*Size)
  4301. if Dir then
  4302. Shot.Velocity = Humanoid.MoveDirection*32*StoredPower*Size
  4303. else
  4304. Shot.Velocity = CFrame.new(From.Position,(From*Aim).Position).LookVector*32*StoredPower*Size
  4305. end
  4306. Shot.BrickColor = BrickColor.new("Pink")
  4307. Shot.Material = Enum.Material.Neon
  4308. local Round = false
  4309. local Sel
  4310. if not Air and not Move then
  4311. Sel = Instance.new("SelectionSphere",Shot)
  4312. Sel.Transparency = 0.3
  4313. Shot.Shape = Enum.PartType.Ball
  4314. Shot.Name = "Ball"
  4315. Round = true
  4316. else
  4317. Sel = Instance.new("SelectionBox",Shot)
  4318. end
  4319. Sel.Color3 = Color3.new(1,0.5,0)
  4320. Sel.Adornee = Shot
  4321. local L = Instance.new("PointLight",Shot)
  4322. L.Color = Shot.Color
  4323. L.Brightness = 10
  4324. L.Range = 12
  4325. L.Shadows = true
  4326. local After = false
  4327. delay(270,function()
  4328. After = true
  4329. Shot.BrickColor = BrickColor.new("Royal purple")
  4330. L.Color = Shot.Color
  4331. wait(300)
  4332. for i = 1,20 do
  4333. for a = 1,5 do
  4334. Shot.Transparency = 0.5-a*0.1
  4335. wait(0.05)
  4336. end
  4337. wait(0.75)
  4338. end
  4339. for i = 1,20 do
  4340. Shot.Transparency = 1
  4341. wait(0.25)
  4342. Shot.Transparency = 0
  4343. wait(0.25)
  4344. end
  4345. Shot:Destroy()
  4346. end)
  4347. local Dont = Character
  4348. local Attacker = Player
  4349. local Hit = {}
  4350. local Active = true
  4351. local Settled = false
  4352. local Heavy = StoredPower >= 10
  4353. if Heavy then
  4354. if math.random(1,2) == 1 then
  4355. Shot.Material = Enum.Material.DiamondPlate
  4356. else
  4357. Shot.Material = Enum.Material.CorrodedMetal
  4358. end
  4359. end
  4360. local Connect
  4361. spawn(function()
  4362. while not Settled and Shot.Parent do
  4363. Shot.BrickColor = BrickColor.new("Pink")
  4364. L.Color = Shot.Color
  4365. wait(0.1)
  4366. if Settled then
  4367. break
  4368. end
  4369. Shot.BrickColor = Color
  4370. L.Color = Shot.Color
  4371. wait(0.1)
  4372. end
  4373. end)
  4374. local function Touched(hit)
  4375. if hit and hit.Parent and (Dont == nil or not hit:IsDescendantOf(Dont)) then
  4376. local H = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  4377. if H and not table.find(Hit,H) then
  4378. local Stored = H.Health
  4379. local creator = Instance.new("ObjectValue",H)
  4380. creator.Name = "creator"
  4381. if Attacker and Attacker.Parent then
  4382. creator.Value = Attacker
  4383. end
  4384. game:GetService("Debris"):AddItem(creator,0.1)
  4385. H:TakeDamage(30+3^StoredPower)
  4386. table.insert(Hit,H)
  4387. if H.Health >= Stored then
  4388. Deflect(hit.Position)
  4389. DefCount = DefCount + 1
  4390. LDefCount = LDefCount + 1
  4391. NotifyBlock()
  4392. Update()
  4393. else
  4394. if StoredPower > 1 then
  4395. local Tag = hit.Parent:FindFirstChild("ImCold")
  4396. if not (Tag and Tag:IsA("NumberValue")) or Tag.Value <= 100 then
  4397. H.Sit = true
  4398. end
  4399. end
  4400. HitCount = HitCount + 1
  4401. LHitCount = LHitCount + 1
  4402. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),30+3^StoredPower))
  4403. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),30+3^StoredPower))
  4404. if Stored > 0 and H.Health <= 0 then
  4405. ConfirmLast = ConfirmLast + 1
  4406. LConfirmLast = LConfirmLast + 1
  4407. NotifyKO()
  4408. else
  4409. NotifyHit()
  4410. end
  4411. Update()
  4412. if 30+3^StoredPower >= 60 then
  4413. Damages(hit.Position)
  4414. else
  4415. Hurt(hit.Position)
  4416. end
  4417. table.insert(Hit,H)
  4418. end
  4419. if Heavy then
  4420. if Round then
  4421. Ting(Shot.Position)
  4422. else
  4423. Ftwang(Shot.Position)
  4424. end
  4425. end
  4426. wait(0.75)
  4427. if Shot.Velocity.Magnitude < 32 and Connect and not Settled then
  4428. Connect:Disconnect()
  4429. Settled = true
  4430. Shot.Material = Enum.Material.Neon
  4431. spawn(function()
  4432. for i = 1,3 do
  4433. Shot.BrickColor = BrickColor.new("White")
  4434. L.Color = Shot.Color
  4435. wait(0.05)
  4436. Shot.BrickColor = BrickColor.new("Royal purple")
  4437. L.Color = Shot.Color
  4438. wait(0.05)
  4439. end
  4440. if not After then
  4441. Shot.BrickColor = Color
  4442. L.Color = Shot.Color
  4443. end
  4444. end)
  4445. Sel.Color3 = Color3.new(0,1,0)
  4446. Set(Shot.Position)
  4447. end
  4448. elseif (not hit:IsA("Terrain") or table.find(Shot:GetTouchingParts(),hit)) and hit.CanCollide then
  4449. if Active then
  4450. Active = false
  4451. PlayFX("C",0.2,1,Shot.Position)
  4452. if Heavy then
  4453. if Round then
  4454. PlayFX("A",1.45,2,Shot.Position)
  4455. PlayFX("B",1.66,2,Shot.Position)
  4456. else
  4457. PlayFX("A",1.35,2,Shot.Position)
  4458. PlayFX("B",1.6,2,Shot.Position)
  4459. end
  4460. end
  4461. delay(0.1,function()
  4462. Active = true
  4463. end)
  4464. end
  4465. wait(0.75)
  4466. if Shot.Velocity.Magnitude < 32 and Connect and not Settled then
  4467. Connect:Disconnect()
  4468. Settled = true
  4469. Shot.Material = Enum.Material.Neon
  4470. spawn(function()
  4471. for i = 1,3 do
  4472. Shot.BrickColor = BrickColor.new("White")
  4473. L.Color = Shot.Color
  4474. wait(0.05)
  4475. Shot.BrickColor = BrickColor.new("Royal purple")
  4476. L.Color = Shot.Color
  4477. wait(0.05)
  4478. end
  4479. if not After then
  4480. Shot.BrickColor = Color
  4481. L.Color = Shot.Color
  4482. end
  4483. end)
  4484. Sel.Color3 = Color3.new(0,1,0)
  4485. Set(Shot.Position)
  4486. end
  4487. end
  4488. end
  4489. end
  4490. Connect = Shot.Touched:Connect(Touched)
  4491. elseif Stored == 9 and Mana >= 300 then
  4492. Mana = Mana - 300
  4493. local CF1 = Humanoid.RootPart.CFrame * CFrame.new(-5,1,10)
  4494. local CF2 = Humanoid.RootPart.CFrame * CFrame.new(-10,1,-5)
  4495. local CF3 = Humanoid.RootPart.CFrame * CFrame.new(5,1,-10)
  4496. local CF4 = Humanoid.RootPart.CFrame * CFrame.new(10,1,5)
  4497. for i = 1,StoredPower do
  4498. local Select = CF4
  4499. if i%4 == 1 then
  4500. Select = CF1
  4501. CF1 = CF1+Vector3.new(0,4,0)
  4502. elseif i%4 == 2 then
  4503. Select = CF2
  4504. CF2 = CF2+Vector3.new(0,4,0)
  4505. elseif i%4 == 3 then
  4506. Select = CF3
  4507. CF3 = CF3+Vector3.new(0,4,0)
  4508. else
  4509. CF4 = CF4+Vector3.new(0,4,0)
  4510. end
  4511. Make(Player.Name.."'s Minion",Select,Color,Player,Character,Humanoid,nil,T,"rbxasset://textures/face.png",nil,nil,{})
  4512. MinionsSpawned = MinionsSpawned + 1
  4513. LMinionsSpawned = LMinionsSpawned + 1
  4514. wait(0.5)
  4515. end
  4516. else
  4517. PE3.Acceleration = Vector3.new(0,-100,0)
  4518. Fail()
  4519. end
  4520. else
  4521. if Cast == 0 then
  4522. MeleeHit = {}
  4523. SwingKnocked = {}
  4524. local toolanim = Instance.new("StringValue",T)
  4525. toolanim.Name = "toolanim"
  4526. toolanim.Value = "Slash"
  4527. Swing()
  4528. T.Grip = CFrame.new(0,-0.75,0,1,0,0,1)
  4529. elseif Cast == 1 then
  4530. local toolanim = Instance.new("StringValue",T)
  4531. toolanim.Name = "toolanim"
  4532. toolanim.Value = "Lunge"
  4533. end
  4534. Cast = Cast + 1
  4535. if Cast > 9 then
  4536. Cast = 2
  4537. end
  4538. if Cast > 1 then
  4539. Play(SoundB,1.42+(Cast-1)*0.2475,1)
  4540. end
  4541. local Spark = (((Cast==2 or Cast==4) and Mana >= 30) or (Cast==3 and Mana >= 10) or (Cast==5 and Mana >= 100) or (Cast==6 and Mana >= 150) or (Cast==7 and Mana >= 70) or (Cast==8 and Mana >= 50) or (Cast==9 and Mana >= 300))
  4542. local CastReady = Shoot and Spark
  4543. PE.Enabled = Spark
  4544. if Spark then
  4545. if Cast == 2 then
  4546. PE.Color = ColorSequence.new(Color3.new(1,0.5,0))
  4547. PL.Color = Color3.new(1,0.5,0)
  4548. elseif Cast == 3 then
  4549. PE.Color = ColorSequence.new(Color3.new(1,1,1))
  4550. PL.Color = Color3.new(1,1,1)
  4551. elseif Cast == 4 then
  4552. PE.Color = ColorSequence.new(Color3.new(0.2,0.8,1))
  4553. PL.Color = Color3.new(0.2,0.8,1)
  4554. elseif Cast == 5 then
  4555. PE.Color = ColorSequence.new(Color3.new(0,1,0))
  4556. PL.Color = Color3.new(0,1,0)
  4557. elseif Cast == 6 then
  4558. PE.Color = ColorSequence.new(Color3.new(0.1,0.2,1))
  4559. PL.Color = Color3.new(0.1,0.2,1)
  4560. elseif Cast == 7 then
  4561. PE.Color = ColorSequence.new(Color3.new(1,1,0))
  4562. PL.Color = Color3.new(1,1,0)
  4563. elseif Cast == 8 then
  4564. PE.Color = ColorSequence.new(Color3.new(1,0.5,1))
  4565. PL.Color = Color3.new(1,0.5,1)
  4566. elseif Cast == 9 then
  4567. PE.Color = ColorSequence.new(Color3.new(1,0.2,0.2))
  4568. PL.Color = Color3.new(1,0.2,0.2)
  4569. end
  4570. end
  4571. if Cast == 2 then
  4572. T.Grip = CFrame.new(0,-0.75,0,0.7,-0.8,0,1)
  4573. elseif Cast == 3 then
  4574. T.Grip = CFrame.new(0,-0.75,0,0.4,0,0,1)
  4575. elseif Cast == 4 then
  4576. T.Grip = CFrame.new(0,-0.75,0,0.7,0.8,0,1)
  4577. elseif Cast == 5 then
  4578. T.Grip = CFrame.new(0,-0.75,0,1.6,1.3,0,1)
  4579. elseif Cast == 6 then
  4580. T.Grip = CFrame.new(0,-0.75,0,4,1.4,0,1)
  4581. elseif Cast == 7 then
  4582. T.Grip = CFrame.new(0,-0.75,0,4,0,0,1)
  4583. elseif Cast == 8 then
  4584. T.Grip = CFrame.new(0,-0.75,0,4,-1.4,0,1)
  4585. elseif Cast == 9 then
  4586. T.Grip = CFrame.new(0,-0.75,0,1.6,-1.3,0,1)
  4587. end
  4588. SwingId = SwingId + 1
  4589. local Stored = SwingId
  4590. wait(0.4)
  4591. if Stored == SwingId then
  4592. T.Grip = CFrame.new(0,-0.75,0)
  4593. if Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  4594. Perform()
  4595. end
  4596. end
  4597. end
  4598. end
  4599. end
  4600. T.Activated:Connect(Activated)
  4601. local function Unequipped()
  4602. Cast = 0
  4603. if Shots > 0 and Shots < 5 then
  4604. Power = math.max(1,Power-1)
  4605. end
  4606. Shots = 0
  4607. Shoot = false
  4608. end
  4609. T.Unequipped:Connect(Unequipped)
  4610. local function Touched(hit)
  4611. local Character = T.Parent
  4612. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  4613. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  4614. if Humanoid and Humanoid.RootPart and Humanoid:GetState() ~= Enum.HumanoidStateType.Dead then
  4615. local Size = Humanoid.RootPart.Size.Magnitude/3
  4616. if Cast == 1 and hit and hit.Parent and not hit:IsDescendantOf(Character) then
  4617. local Hm = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  4618. if Hm and not table.find(MeleeHit,Hm) then
  4619. local Stored = Hm.Health
  4620. local creator = Instance.new("ObjectValue",Hm)
  4621. creator.Name = "creator"
  4622. if Player and Player.Parent then
  4623. creator.Value = Player
  4624. end
  4625. game:GetService("Debris"):AddItem(creator,0.1)
  4626. Hm:TakeDamage(30+4^SwingPower)
  4627. table.insert(MeleeHit,Hm)
  4628. if Hm.Health >= Stored then
  4629. Deflect(hit.Position)
  4630. DefCount = DefCount + 1
  4631. LDefCount = LDefCount + 1
  4632. NotifyBlock()
  4633. Update()
  4634. else
  4635. if 30+4^SwingPower >= 60 then
  4636. Damages(hit.Position)
  4637. else
  4638. Hurt(hit.Position)
  4639. end
  4640. HitCount = HitCount + 1
  4641. LHitCount = LHitCount + 1
  4642. DamageDone = DamageDone + math.max(0,math.min(math.ceil(Stored),30+4^SwingPower))
  4643. LDamageDone = LDamageDone + math.max(0,math.min(math.ceil(Stored),30+4^SwingPower))
  4644. if Stored > 0 and Hm.Health <= 0 then
  4645. ConfirmLast = ConfirmLast + 1
  4646. LConfirmLast = LConfirmLast + 1
  4647. NotifyKO()
  4648. else
  4649. NotifyHit()
  4650. end
  4651. Update()
  4652. end
  4653. end
  4654. if SwingPower > 1 and (Hm or not hit.Anchored) then
  4655. if not table.find(SwingKnocked,hit) and (hit.Position-H.Position).Magnitude > 0 then
  4656. table.insert(SwingKnocked,hit)
  4657. local BV = Instance.new("BodyVelocity",hit)
  4658. BV.MaxForce = Vector3.new(1000000,1000000,1000000)
  4659. BV.Velocity = (hit.Position-H.Position).Unit*14*SwingPower*Size
  4660. game:GetService("Debris"):AddItem(BV,0.2)
  4661. end
  4662. if not SwingBlast then
  4663. SwingBlast = true
  4664. Power = math.max(1,Power-1)
  4665. PE2.Transparency = NumberSequence.new(math.max(0,0.8-(Power-1)*0.04),math.max(0.1,0.95-(Power-1)*0.04))
  4666. AirBurst(H.Position)
  4667. local P = Instance.new("Part",script)
  4668. P.Name = "AirEffect"
  4669. P.Shape = Enum.PartType.Ball
  4670. P.Size = Vector3.new(1,1,1)*Size
  4671. P.Transparency = 1
  4672. P.Material = Enum.Material.Glass
  4673. P.Position = H.Position
  4674. P.Anchored = true
  4675. P.Locked = true
  4676. P.CanCollide = false
  4677. for i = 1,10 do
  4678. P.Transparency = P.Transparency - 0.05
  4679. P.Size = P.Size + Vector3.new(0.5,0.5,0.5)*Size
  4680. if i%2 == 0 then
  4681. P.BrickColor = BrickColor.new("Pink")
  4682. else
  4683. P.BrickColor = Color
  4684. end
  4685. wait(0.05)
  4686. end
  4687. for i = 1,5 do
  4688. P.Transparency = P.Transparency + 0.1
  4689. if i%2 == 0 then
  4690. P.BrickColor = BrickColor.new("Pink")
  4691. else
  4692. P.BrickColor = Color
  4693. end
  4694. wait(0.05)
  4695. end
  4696. P:Destroy()
  4697. end
  4698. end
  4699. end
  4700. end
  4701. end
  4702. H.Touched:Connect(Touched)
  4703. local Stopped = true
  4704. Wands = Wands + 1
  4705. while T:FindFirstAncestorWhichIsA("DataModel") do
  4706. if Mana < 500 then
  4707. Mana = Mana + 2
  4708. end
  4709. local Note = ""
  4710. local Spark = (((Cast==2 or Cast==3 or Cast==4) and Mana >= 10) or (Cast==5 and Mana >= 100) or (Cast==6 and Mana >= 150) or (Cast==7 and Mana >= 70) or (Cast==8 and Mana >= 50) or (Cast==9 and Mana >= 300))
  4711. local CastReady = Shoot and Spark
  4712. local Enough = Mana>=30
  4713. PE.Enabled = Spark
  4714. if Cast == 1 then
  4715. local Start = "Melee"
  4716. if Power > 1 then
  4717. Start = "Blast Stab"
  4718. end
  4719. Note = Start.." <"..(30+4^Power)..">"
  4720. elseif Spark then
  4721. if Cast == 2 then
  4722. PE.Color = ColorSequence.new(Color3.new(1,0.5,0))
  4723. PL.Color = Color3.new(1,0.5,0)
  4724. Note = "Fire Blast <"..(17+3^Power).."> -10 * "..Shots
  4725. elseif Cast == 3 then
  4726. PE.Color = ColorSequence.new(Color3.new(1,1,1))
  4727. PL.Color = Color3.new(1,1,1)
  4728. Note = "Air Burst <"..(2+(2^Power)/2).."> -10"
  4729. elseif Cast == 4 then
  4730. PE.Color = ColorSequence.new(Color3.new(0.2,0.8,1))
  4731. PL.Color = Color3.new(0.2,0.8,1)
  4732. local Add = ""
  4733. Note = "Ice Shot <"..(4+2^Power).."> -10 * "..Shots
  4734. elseif Cast == 5 then
  4735. PE.Color = ColorSequence.new(Color3.new(0,1,0))
  4736. PL.Color = Color3.new(0,1,0)
  4737. Note = "Healing <"..(15*Power).."> -100"
  4738. elseif Cast == 6 then
  4739. PE.Color = ColorSequence.new(Color3.new(0.1,0.2,1))
  4740. PL.Color = Color3.new(0.1,0.2,1)
  4741. Note = "Shield <"..(100*Power).."> -150"
  4742. elseif Cast == 7 then
  4743. PE.Color = ColorSequence.new(Color3.new(1,1,0))
  4744. PL.Color = Color3.new(1,1,0)
  4745. Note = "Power Increase <"..(Power+1).."> -70"
  4746. if Power >= 23 then
  4747. Note = "Too Powerful"
  4748. end
  4749. elseif Cast == 8 then
  4750. PE.Color = ColorSequence.new(Color3.new(1,0.5,1))
  4751. PL.Color = Color3.new(1,0.5,1)
  4752. Note = "Block Throw <"..(30+3^Power).."> -50"
  4753. elseif Cast == 9 then
  4754. PE.Color = ColorSequence.new(Color3.new(1,0.2,0.2))
  4755. PL.Color = Color3.new(1,0.2,0.2)
  4756. Note = "Summon <"..(Power).."> -300"
  4757. end
  4758. elseif Cast > 1 then
  4759. Note = "Low Mana"
  4760. end
  4761. if CastReady then
  4762. PE.Size = NumberSequence.new(1.2,0)
  4763. else
  4764. PE.Size = NumberSequence.new(0.4,0)
  4765. end
  4766. PE2.Lifetime = NumberRange.new(Mana/1000)
  4767. PE2.Enabled = Enough
  4768. if BuzzInc then
  4769. Buzz = Buzz+0.05
  4770. if Buzz > 0.9 then
  4771. BuzzInc = false
  4772. end
  4773. else
  4774. Buzz = Buzz-0.05
  4775. if Buzz < 0.3 then
  4776. BuzzInc = true
  4777. end
  4778. end
  4779. if Spark and Enough then
  4780. PL.Brightness = Buzz*1.5
  4781. if Shoot then
  4782. PL.Brightness = Buzz*3
  4783. end
  4784. else
  4785. PL.Brightness = 0
  4786. end
  4787. PL.Range = 6*Power
  4788. TL.Text = Note..[[
  4789.  
  4790. C: ]]..Cast..[[
  4791.  
  4792. M: ]]..Mana..[[
  4793.  
  4794. P: ]]..Power
  4795. T.ToolTip = Note.." / C: "..Cast.." / M: "..Mana.." / P: "..Power
  4796. Update()
  4797. if T:FindFirstAncestorWhichIsA("Workspace") and Power > 1 and Enough and not ShieldSoundActive then
  4798. Stopped = false
  4799. Play(SoundA,0.575+Power*0.075,Buzz)
  4800. elseif not Stopped then
  4801. Stopped = true
  4802. SoundA:Stop()
  4803. end
  4804. wait(0.05)
  4805. end
  4806. Wands = Wands - 1
  4807. end
  4808. owner.CharacterAdded:Connect(Ready)
  4809. if owner.Character then
  4810. Ready()
  4811. end
  4812. end))
  4813. Script1.Disabled = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement