Advertisement
Prozanity

Untitled

Aug 3rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 137.22 KB | None | 0 0
  1. -----------/XESTER THE CARD MASTER\\-----------
  2. --[[Movelist
  3. Q = The disappearing act.
  4. E = Full house
  5. R = Cardnado
  6. T = Teleport
  7. Y = Big card(Click to smash.)
  8. U = Black hole
  9. P = Card shield(Click to bounce people off, press p again to shred.)
  10. F = Transform(You can switch between modes any time.)
  11. -----------/SECOND FORM MOVES\-----------
  12. T = Laugh
  13. G = Fire ball
  14. H = Huge fire ball
  15. J = Dragon's breath(The longer you hold, the more insaner it gets.)
  16. K = Beam(The longer you hold down the key, the stronger it gets/longer it lasts.)
  17. ---------]]
  18.  
  19. --"Now you see me 2" is a good movie, which is why i've made this.--
  20. --IF YOU'RE USING THIS IN A SB, BE SURE TO ALWAYS TYPE G/NL AFTER USING THIS SCRIPT!, IF YOU DON'T, IT'LL MESS UP!--
  21. --DON'T YOU DARE REMOVE SB'S ROBLOX!!!--
  22. --Do you hear those heavy footsteps? Hmmmm, what could it be?--
  23. --Don't you guys just hate it when people come in sb just to be "overpowered"? Pisses me off.--
  24. --If your character gets bugged, such as missing limbs, you can press . to fix yourself!--
  25.  
  26.  
  27. --Look if this was logged cause I used it on VSB I'm sorry Supr, I know you won't be able to trust me again.
  28. --Creterisk
  29.  
  30. wait(1/60)
  31.  
  32. Player=game:GetService("Players").LocalPlayer
  33. Character=Player.Character
  34. Character.Humanoid.Name = "noneofurbusiness"
  35. hum = Character.noneofurbusiness
  36. LeftArm=Character["Left Arm"]
  37. LeftLeg=Character["Left Leg"]
  38. RightArm=Character["Right Arm"]
  39. RightLeg=Character["Right Leg"]
  40. Root=Character["HumanoidRootPart"]
  41. Head=Character["Head"]
  42. Torso=Character["Torso"]
  43. Neck=Torso["Neck"]
  44. walking = false
  45. jumping = false
  46. allowgrassy = false
  47. zxc = false
  48. matte = nil
  49. colori = nil
  50. bigball = false
  51. attacking = false
  52. laughing = false
  53. running = false
  54. downpress = false
  55. taim = nil
  56. change = 0
  57. ws = 10
  58. appi = false
  59. tauntdebounce = false
  60. position = nil
  61. staybooming = false
  62. MseGuide = true
  63. levitate = false
  64. firsttime5 = false
  65. notallowedtransform = false
  66. settime = 0
  67. firsttime2 = false
  68. sine = 0
  69. t = 0
  70. combo1 = true
  71. dgs = 75
  72. combo2 = false
  73. firsttime3 = false
  74. combo3 = false
  75. local bl = {907530553,907527750,907527912}
  76. colortable = {"Really black","Really red"}
  77. colors = #colortable
  78. blz = #bl
  79. local aces = {1880203893,1881287656,1881287420,1881288034}
  80. ace = #aces
  81. local laughs = {2011349649,2011349983,2011351501,2011352223,2011355991,2011356475}
  82. laugh = #laughs
  83. mouse = Player:GetMouse()
  84. RunSrv = game:GetService("RunService")
  85. RenderStepped = game:GetService("RunService").RenderStepped
  86. removeuseless = game:GetService("Debris")
  87. damageall={}
  88. Repeater={}
  89. Repeater2={}
  90. magictable={}
  91. nonmeshRepeater={}
  92. nonmeshRepeater2={}
  93. dmgii={}
  94. DamageAll2={}
  95. SlowlyFade={}
  96. th1={}
  97. lolzor={}
  98. lolzor2={}
  99. th2={}
  100. keyYsize={}
  101. blocktrail={}
  102. keyYtransparency={}
  103. th3={}
  104. laughingtable={}
  105. Extreme={}
  106. ExtremeM={}
  107. ExtremeM2={}
  108. m3={}
  109. th4={}
  110. th5={}
  111. UpMover={}
  112. openshocktable={}
  113. LessSize={}
  114. ForwardMover={}
  115. FadeIn={}
  116. signtransparency={}
  117. signmover={}
  118. signrotator={}
  119.  
  120. screenGui = Instance.new("ScreenGui")
  121. screenGui.Parent = script.Parent
  122.  
  123. FireBall = Instance.new("Sound",LeftArm)
  124. FireBall.SoundId = "rbxassetid://842332424"
  125. FireBall.Volume = 5
  126. FireBall.Pitch = 2.5
  127.  
  128. BigFireBall = Instance.new("Sound",LeftArm)
  129. BigFireBall.SoundId = "rbxassetid://842332424"
  130. BigFireBall.Volume = 8
  131. BigFireBall.Pitch = 1.5
  132.  
  133. local HEADLERP = Instance.new("ManualWeld")
  134. HEADLERP.Parent = Head
  135. HEADLERP.Part0 = Head
  136. HEADLERP.Part1 = Head
  137. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  138.  
  139. local TORSOLERP = Instance.new("ManualWeld")
  140. TORSOLERP.Parent = Root
  141. TORSOLERP.Part0 = Torso
  142. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  143.  
  144. local ROOTLERP = Instance.new("ManualWeld")
  145. ROOTLERP.Parent = Root
  146. ROOTLERP.Part0 = Root
  147. ROOTLERP.Part1 = Torso
  148. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  149.  
  150. local RIGHTARMLERP = Instance.new("ManualWeld")
  151. RIGHTARMLERP.Parent = RightArm
  152. RIGHTARMLERP.Part0 = RightArm
  153. RIGHTARMLERP.Part1 = Torso
  154. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  155.  
  156. local LEFTARMLERP = Instance.new("ManualWeld")
  157. LEFTARMLERP.Parent = LeftArm
  158. LEFTARMLERP.Part0 = LeftArm
  159. LEFTARMLERP.Part1 = Torso
  160. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  161.  
  162. local RIGHTLEGLERP = Instance.new("ManualWeld")
  163. RIGHTLEGLERP.Parent = RightLeg
  164. RIGHTLEGLERP.Part0 = RightLeg
  165. RIGHTLEGLERP.Part1 = Torso
  166. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  167.  
  168. local LEFTLEGLERP = Instance.new("ManualWeld")
  169. LEFTLEGLERP.Parent = LeftLeg
  170. LEFTLEGLERP.Part0 = LeftLeg
  171. LEFTLEGLERP.Part1 = Torso
  172. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  173.  
  174. local function weldBetween(a, b)
  175. local weld = Instance.new("ManualWeld", a)
  176. weld.Part0 = a
  177. weld.Part1 = b
  178. weld.C0 = a.CFrame:inverse() * b.CFrame
  179. return weld
  180. end
  181.  
  182. function makeblockytrail()
  183. coroutine.wrap(function()
  184. while true do
  185. for i,v in pairs(blocktrail) do
  186. smke = Instance.new("Part",v)
  187. smke.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  188. smke.Material = "Neon"
  189. smke.Anchored = true
  190. smke.CanCollide = false
  191. removeuseless:AddItem(smke,2)
  192. end
  193. swait()
  194. end
  195. end)()
  196. end
  197.  
  198. local function ci(x, c, y, n)
  199. so = Instance.new("Sound", x)
  200. so.SoundId = c
  201. so.Volume = y
  202. so.Looped = n
  203. end
  204.  
  205. function ghost()
  206. fakeeyo2 = Instance.new("Part",Head)
  207. fakeeyo2.BrickColor = BrickColor.new("White")
  208. fakeeyo2.Material = "Neon"
  209. fakeeyo2.Shape = "Ball"
  210. fakeeyo2.Anchored = true
  211. fakeeyo2.CFrame = eyo2.CFrame
  212. fakeeyo2.CanCollide = false
  213. fakeeyo2.Size = Vector3.new(0.33, 0.33, 0.33)
  214. table.insert(ghosttable,fakeeyo2)
  215. removeuseless:AddItem(fakeeyo2,3)
  216.  
  217. fakeeyo1 = Instance.new("Part",Head)
  218. fakeeyo1.BrickColor = BrickColor.new("White")
  219. fakeeyo1.Material = "Neon"
  220. fakeeyo1.Shape = "Ball"
  221. fakeeyo1.CanCollide = false
  222. fakeeyo1.Anchored = true
  223. fakeeyo1.CFrame = eyo1.CFrame
  224. fakeeyo1.Size = Vector3.new(0.33, 0.33, 0.33)
  225. table.insert(ghosttable,fakeeyo1)
  226. removeuseless:AddItem(fakeeyo1,3)
  227.  
  228. fakemask = Instance.new("Part",Character)
  229. fakemask.Size = Vector3.new(1,1,1)
  230. fakemask.CFrame = mask.CFrame
  231. fakemask.Material = "Neon"
  232. fakemask.CanCollide = false
  233. fakemask.Anchored = true
  234. fakemask.BrickColor = BrickColor.new("White")
  235. fakemask.Transparency = .5
  236. mfMask = Instance.new("SpecialMesh", fakemask)
  237. mfMask.MeshType = "FileMesh"
  238. mfMask.Scale = Vector3.new(0.13, 0.13, 0.1)
  239. mfMask.MeshId = 'http://www.roblox.com/asset/?id=5158270'
  240. table.insert(ghosttable,fakemask)
  241. removeuseless:AddItem(fakemask,3)
  242.  
  243.  
  244. fakejester = Instance.new("Part",Character)
  245. fakejester.Size = Vector3.new(2,2,2)
  246. fakejester.CFrame = jester.CFrame
  247. fakejester.CanCollide = false
  248. fakejester.Transparency = .5
  249. fakejester.Anchored = true
  250. fakejester.BrickColor = BrickColor.new("White")
  251. fakejesterm = Instance.new("SpecialMesh", fakejester)
  252. fakejesterm.MeshType = "FileMesh"
  253. fakejesterm.Scale = Vector3.new(1.1, 1.1, 1.1)
  254. fakejesterm.MeshId = 'rbxassetid://1241662062'
  255. table.insert(ghosttable,fakejester)
  256. removeuseless:AddItem(fakejester,3)
  257.  
  258.  
  259. fakehead = Instance.new("Part",Character)
  260. fakehead.Size = Vector3.new(1.01,1.01,1.01)
  261. fakehead.Anchored = true
  262. fakehead.CanCollide = false
  263. fakehead.Transparency = .5
  264. fakehead.BrickColor = BrickColor.new("White")
  265. fakehead.Material = "Neon"
  266. fakehead.CFrame = Head.CFrame
  267. fakeheadmesh = Instance.new("SpecialMesh",fakehead)
  268. fakeheadmesh.MeshType = "Head"
  269. fakeheadmesh.Scale = Vector3.new(1.255,1.255,1.255)
  270. table.insert(ghosttable,fakehead)
  271. removeuseless:AddItem(fakehead,3)
  272.  
  273.  
  274. fakelarm = Instance.new("Part",Character)
  275. fakelarm.CFrame = LeftArm.CFrame
  276. fakelarm.Size = Vector3.new(1,2,1)
  277. fakelarm.CanCollide = false
  278. fakelarm.Transparency = .5
  279. fakelarm.Material = "Neon"
  280. fakelarm.Anchored = true
  281. table.insert(ghosttable,fakelarm)
  282. removeuseless:AddItem(fakelarm,3)
  283.  
  284.  
  285. fakerarm = Instance.new("Part",Character)
  286. fakerarm.CFrame = RightArm.CFrame
  287. fakerarm.Size = Vector3.new(1,2,1)
  288. fakerarm.Transparency = .5
  289. fakerarm.CanCollide = false
  290. fakerarm.Material = "Neon"
  291. fakerarm.Anchored = true
  292. table.insert(ghosttable,fakerarm)
  293. removeuseless:AddItem(fakerarm,3)
  294.  
  295.  
  296. fakelleg = Instance.new("Part",Character)
  297. fakelleg.CFrame = LeftLeg.CFrame
  298. fakelleg.Size = Vector3.new(1,2,1)
  299. fakelleg.Transparency = .5
  300. fakelleg.CanCollide = false
  301. fakelleg.Material = "Neon"
  302. fakelleg.Anchored = true
  303. table.insert(ghosttable,fakelleg)
  304. removeuseless:AddItem(fakelleg,3)
  305.  
  306.  
  307. fakerleg = Instance.new("Part",Character)
  308. fakerleg.CFrame = RightLeg.CFrame
  309. fakerleg.Size = Vector3.new(1,2,1)
  310. fakerleg.Transparency = .5
  311. fakerleg.CanCollide = false
  312. fakerleg.Material = "Neon"
  313. fakerleg.Anchored = true
  314. table.insert(ghosttable,fakerleg)
  315. removeuseless:AddItem(fakerleg,3)
  316.  
  317.  
  318. fakeTorso = Instance.new("Part",Character)
  319. fakeTorso.CFrame = Torso.CFrame
  320. fakeTorso.Size = Vector3.new(2,2,1)
  321. fakeTorso.Transparency = .5
  322. fakeTorso.CanCollide = false
  323. fakeTorso.Material = "Neon"
  324. fakeTorso.Anchored = true
  325. table.insert(ghosttable,fakeTorso)
  326. removeuseless:AddItem(fakeTorso,3)
  327. end
  328.  
  329. ghosttable={}
  330. coroutine.wrap(function()
  331. while true do
  332. for i,v in pairs(ghosttable) do
  333. v.Transparency = v.Transparency + 0.025
  334. end
  335. wait()
  336. end
  337. end)()
  338.  
  339. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  340. A = Instance.new("Attachment", PARENT)
  341. A.Position = POSITION1
  342. A.Name = "A"
  343. B = Instance.new("Attachment", PARENT)
  344. B.Position = POSITION2
  345. B.Name = "B"
  346. tr1 = Instance.new("Trail", PARENT)
  347. tr1.Attachment0 = A
  348. tr1.Attachment1 = B
  349. tr1.Enabled = true
  350. tr1.Lifetime = LIFETIME
  351. tr1.TextureMode = "Static"
  352. tr1.LightInfluence = 0
  353. tr1.Color = COLOR
  354. tr1.Transparency = NumberSequence.new(0, 1)
  355. end
  356.  
  357. function clean()
  358. damageall={}
  359. Repeater={}
  360. Repeater2={}
  361. nonmeshRepeater={}
  362. nonmeshRepeater2={}
  363. dmgii={}
  364. DamageAll2={}
  365. SlowlyFade={}
  366. th1={}
  367. th2={}
  368. th3={}
  369. Extreme={}
  370. ExtremeM={}
  371. ExtremeM2={}
  372. m3={}
  373. th4={}
  374. th5={}
  375. UpMover={}
  376. openshocktable={}
  377. LessSize={}
  378. ForwardMover={}
  379. FadeIn={}
  380. signtransparency={}
  381. signmover={}
  382. signrotator={}
  383. end
  384.  
  385. coroutine.wrap(function()
  386. while wait() do
  387. hum.WalkSpeed = ws
  388. LeftArm.BrickColor = BrickColor.new("Really black")
  389. RightArm.BrickColor = BrickColor.new("Really black")
  390. Head.BrickColor = BrickColor.new("Really black")
  391. end
  392. end)()
  393. godmode = coroutine.wrap(function()
  394. for i,v in pairs(Character:GetChildren()) do
  395. if v:IsA("BasePart") and v ~= Root then
  396. v.Anchored = false
  397. end
  398. end
  399. while true do
  400. hum.MaxHealth = math.huge
  401. wait(0.0000001)
  402. hum.Health = math.huge
  403. wait()
  404. end
  405. end)
  406. godmode()
  407. ff = Instance.new("ForceField", Character)
  408. ff.Visible = false
  409.  
  410. coroutine.wrap(function()
  411. for i,v in pairs(Character:GetChildren()) do
  412. if v.Name == "Animate" then v:Remove()
  413. end
  414. end
  415. end)()
  416.  
  417. function damagealll(Radius,Position)
  418. local Returning = {}
  419. for _,v in pairs(workspace:GetChildren()) do
  420. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  421. if v:FindFirstChild("Torso") then
  422. local Mag = (v.Torso.Position - Position).magnitude
  423. if Mag < Radius then
  424. table.insert(Returning,v)
  425. end
  426. elseif v:FindFirstChild("UpperTorso") then
  427. local Mag = (v.UpperTorso.Position - Position).magnitude
  428. if Mag < Radius then
  429. table.insert(Returning,v)
  430. end
  431. end
  432. end
  433. end
  434. return Returning
  435. end
  436.  
  437. ArtificialHB = Instance.new("BindableEvent", script)
  438. ArtificialHB.Name = "Heartbeat"
  439. script:WaitForChild("Heartbeat")
  440.  
  441. frame = 1 / 60
  442. tf = 0
  443. allowframeloss = false
  444. tossremainder = false
  445.  
  446.  
  447. lastframe = tick()
  448. script.Heartbeat:Fire()
  449.  
  450.  
  451. game:GetService("RunService").Heartbeat:connect(function(s, p)
  452. tf = tf + s
  453. if tf >= frame then
  454. if allowframeloss then
  455. script.Heartbeat:Fire()
  456. lastframe = tick()
  457. else
  458. for i = 1, math.floor(tf / frame) do
  459. script.Heartbeat:Fire()
  460. end
  461. lastframe = tick()
  462. end
  463. if tossremainder then
  464. tf = 0
  465. else
  466. tf = tf - frame * math.floor(tf / frame)
  467. end
  468. end
  469. end)
  470.  
  471. function swait(num)
  472. if num == 0 or num == nil then
  473. game:service("RunService").Stepped:wait(0)
  474. else
  475. for i = 0, num do
  476. game:service("RunService").Stepped:wait(0)
  477. end
  478. end
  479. end
  480.  
  481. doomtheme = Instance.new("Sound", Torso)
  482. doomtheme.Volume = 3
  483. doomtheme.Name = "doomtheme"
  484. doomtheme.Looped = true
  485. doomtheme.SoundId = "rbxassetid://1843358057"
  486. doomtheme:Play()
  487.  
  488. Torso.ChildRemoved:connect(function(removed)
  489. if removed.Name == "doomtheme" then
  490. if levitate then
  491. doomtheme = Instance.new("Sound", Torso)
  492. doomtheme.Volume = 3
  493. doomtheme.Name = "doomtheme"
  494. doomtheme.Looped = true
  495. doomtheme.SoundId = "rbxassetid://1382488262"
  496. doomtheme:Play()
  497. else
  498. doomtheme = Instance.new("Sound", Torso)
  499. doomtheme.Volume = 3
  500. doomtheme.Name = "doomtheme"
  501. doomtheme.Looped = true
  502. doomtheme.SoundId = "rbxassetid://1843358057"
  503. doomtheme:Play()
  504. doomtheme.TimePosition = 20.7
  505. end
  506. end
  507. end)
  508.  
  509. for _,n in pairs(Character:GetChildren()) do
  510. if n:IsA("Accessory") then n:Remove() end
  511. end
  512. for _,x in pairs(Character:GetChildren()) do
  513. if x:IsA("Decal") then x:Remove() end
  514. end
  515.  
  516. glow = Instance.new("Part",Head)
  517. glow.Size = Vector3.new(.488,.3,.1)
  518. glow.CanCollide = false
  519. glow.Material = "Neon"
  520. glow.Transparency = 1
  521. glow.BrickColor = BrickColor.new("Really white")
  522. glowweld = weldBetween(glow,Head)
  523. glowweld.C0 = CFrame.new(0,.2,.565)
  524.  
  525. leftlocation = Instance.new("Part",LeftArm)
  526. leftlocation.Size = Vector3.new(1,1,1)
  527. leftlocation.Transparency = 1
  528. leftlocationweld = weldBetween(leftlocation,LeftArm)
  529. leftlocationweld.C0 = CFrame.new(0,1.2,0)
  530. rightlocation = Instance.new("Part",RightArm)
  531. rightlocation.Size = Vector3.new(1,1,1)
  532. rightlocation.Transparency = 1
  533. rightlocationweld = weldBetween(rightlocation,RightArm)
  534. rightlocationweld.C0 = CFrame.new(0,1.2,0)
  535.  
  536. shirt = Instance.new("Shirt", Character)
  537. shirt.Name = "Shirt"
  538. pants = Instance.new("Pants", Character)
  539. pants.Name = "Pants"
  540. Character.Shirt.ShirtTemplate = "rbxassetid://676428254"----lol
  541. Character.Pants.PantsTemplate = "rbxassetid://676428351"
  542.  
  543. fakehed = Instance.new("Part",Character)
  544. fakehed.Size = Vector3.new(1.01,1.01,1.01)
  545. fakehed.Anchored = false
  546. fakehed.CanCollide = false
  547. fakehed.Transparency = 0
  548. fakehed.BrickColor = BrickColor.new("Really black")
  549. fakehed.Material = "Neon"
  550. fakehed.CFrame = Head.CFrame
  551. fakehedweld = weldBetween(fakehed,Head)
  552. fakehedmesh = Instance.new("SpecialMesh",fakehed)
  553. fakehedmesh.MeshType = "Head"
  554. fakehedmesh.Scale = Vector3.new(1.255,1.255,1.255)
  555.  
  556. jester = Instance.new("Part",Character)
  557. jester.Size = Vector3.new(2,2,2)
  558. jester.CFrame = Head.CFrame
  559. jester.CanCollide = false
  560. jesterWeld = Instance.new("Weld",jester)
  561. jesterWeld.Part0 = jester
  562. jesterWeld.Part1 = Head
  563. jesterWeld.C0 = jester.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  564. mjester = Instance.new("SpecialMesh", jester)
  565. mjester.MeshType = "FileMesh"
  566. mjester.Scale = Vector3.new(1.1, 1.1, 1.1)
  567. mjester.MeshId,mjester.TextureId = 'rbxassetid://1241662062','rbxassetid://1241662395'
  568.  
  569. mask = Instance.new("Part",Character)
  570. mask.Size = Vector3.new(1,1,1)
  571. mask.CFrame = Head.CFrame
  572. mask.CanCollide = false
  573. maskweld = weldBetween(mask,Head)
  574. maskweld.C0 = CFrame.new(0,-.555,0) * CFrame.Angles(math.rad(90),0,0)
  575. mMask = Instance.new("SpecialMesh", mask)
  576. mMask.MeshType = "FileMesh"
  577. mMask.Scale = Vector3.new(0.13, 0.13, 0.1)
  578. mMask.MeshId,mMask.TextureId = 'http://www.roblox.com/asset/?id=5158270','http://www.roblox.com/asset/?id=9543585'
  579.  
  580. eyo1 = Instance.new("Part",Head)
  581. eyo1.BrickColor = BrickColor.new("White")
  582. eyo1.Material = "Neon"
  583. eyo1.Shape = "Ball"
  584. eyo1.Name = "eyo1"
  585. eyo1.CanCollide = false
  586. eyo1.Size = Vector3.new(0.33, 0.33, 0.33)
  587. eyo1weld = weldBetween(eyo1,Head)
  588. eyo1weld.C0 = CFrame.new(.215,-.05,.52)
  589.  
  590. light = Instance.new("PointLight", eyo1)
  591. light.Color = Color3.new(1,1,1)
  592. light.Range = 3
  593. light.Brightness = 4
  594. light.Enabled = true
  595.  
  596. eyo2 = Instance.new("Part",Head)
  597. eyo2.BrickColor = BrickColor.new("White")
  598. eyo2.Material = "Neon"
  599. eyo2.Shape = "Ball"
  600. eyo2.Name = "eyo2"
  601. eyo2.CanCollide = false
  602. eyo2.Size = Vector3.new(0.33, 0.33, 0.33)
  603. eyo2weld = weldBetween(eyo2,Head)
  604. eyo2weld.C0 = CFrame.new(-.215,-.05,.52)
  605.  
  606. light2 = Instance.new("PointLight", eyo2)
  607. light2.Color = Color3.new(1,1,1)
  608. light2.Range = 3
  609. light2.Brightness = 4
  610. light2.Enabled = true
  611.  
  612. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  613. so = Instance.new("Sound")
  614. so.Parent = PARENT
  615. so.SoundId = "rbxassetid://"..ID
  616. so.Volume = VOL
  617. so.Looped = LOOP
  618. so:Play()
  619. removeuseless:AddItem(so,REMOVE)
  620. end
  621.  
  622.  
  623. mouse.KeyDown:connect(function(Press)
  624. Press=Press:lower()
  625. if Press=='r' then
  626. if levitate then return end
  627. if debounce then return end
  628. debounce = true
  629. attacking = true
  630. appi = true
  631. ws = 0
  632. coroutine.wrap(function()
  633. while appi do
  634. wait()
  635. if Root.Velocity.Magnitude < 2 and attacking == true then
  636. position = "Idle2"
  637. end
  638. end
  639. end)()
  640. coroutine.wrap(function()
  641. while appi do
  642. wait()
  643. settime = 0.05
  644. sine = sine + change
  645. if position == "Idle2" and attacking == true and appi == true then
  646. change = .4
  647. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  648. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  649. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3)
  650. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  651. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3)
  652. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  653. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  654. end
  655. end
  656. end)()
  657. for i = 1, 20 do
  658. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3)
  659. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  660. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  661. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5)
  662. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3)
  663. swait()
  664. end
  665. SOUND(RightArm,342337569,6,false,1)
  666. coroutine.wrap(function()
  667. for i = 1, 9 do
  668. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(.1,1.6,-.1),.5)
  669. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(15)),.3)
  670. swait()
  671. end
  672. for i = 1, 9 do
  673. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5)
  674. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3)
  675. swait()
  676. end
  677. end)()
  678. shockwave = Instance.new("Part",Torso)
  679. shockwave.Shape = "Ball"
  680. shockwave.Size = Vector3.new(1,1,1)
  681. shockwave.BrickColor = BrickColor.new("White")
  682. shockwave.Material = "Neon"
  683. shockwave.CFrame = Torso.CFrame
  684. shockwave.CanCollide = false
  685. shockwave.Anchored = true
  686. coroutine.wrap(function()
  687. for i = 1, 20 do
  688. shockwave.Size = shockwave.Size + Vector3.new(1.8,1.8,1.8)
  689. shockwave.Transparency = shockwave.Transparency + 0.05
  690. wait()
  691. end
  692. end)()
  693. SOUND(Torso,1072606965,0,false,10)
  694. coroutine.wrap(function()
  695. for i = 1, 10 do
  696. so.Volume = so.Volume + 0.3
  697. wait()
  698. end
  699. end)()
  700. for i = 1, 35 do
  701. local Hit = damagealll(22,Torso.Position)
  702. for _,v in pairs(Hit) do
  703. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(17,35))
  704. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  705. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  706. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  707. vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*20
  708. removeuseless:AddItem(vel,.1)
  709. end
  710. wave = Instance.new("Part", Torso)
  711. wave.Size = Vector3.new(1, 1, 1)
  712. wave.Transparency = 0
  713. wave.BrickColor = BrickColor.new("White")
  714. wave.Anchored = true
  715. wave.CanCollide = false
  716. wave.CFrame = Root.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  717. wavemesh = Instance.new("SpecialMesh", wave)
  718. wavemesh.MeshId = "rbxassetid://20329976"
  719. wavemesh.Scale = Vector3.new(1, 1, 1)
  720. table.insert(th2,wave)
  721. table.insert(SlowlyFade,wave)
  722. table.insert(th5,wavemesh)
  723. removeuseless:AddItem(wave,2)
  724. CardStorm = Instance.new("Part",Torso)
  725. CardStorm.Size = Vector3.new(.1,.1,.1)
  726. CardStorm.CFrame = Root.CFrame * CFrame.new(0,3.2,0)
  727. CardStorm.Anchored = true
  728. CardStormMesh = Instance.new("SpecialMesh", CardStorm)
  729. CardStormMesh.Scale = Vector3.new(1,1,1)
  730. CardStormMesh.MeshId = "rbxassetid://6512150"
  731. CardStormMesh.TextureId = "rbxassetid://55364685"
  732. table.insert(SlowlyFade,CardStorm)
  733. table.insert(m3,CardStormMesh)
  734. table.insert(th1,CardStorm)
  735. removeuseless:AddItem(CardStorm,3)
  736. wait(.1)
  737. end
  738. coroutine.wrap(function()
  739. for i = 1, 10 do
  740. so.Volume = so.Volume - 0.3
  741. wait()
  742. end
  743. end)()
  744. wait(1)
  745. ws = 10
  746. clean()
  747. attacking = false
  748. debounce = false
  749. appi = false
  750. end
  751. end)
  752.  
  753. mouse.KeyDown:connect(function(Press)
  754. Press=Press:lower()
  755. if Press=='e' then
  756. if levitate then return end
  757. if debounce then return end
  758. attacking = true
  759. debounce = true
  760. damagedebounce = false
  761. clickdisallowance = true
  762. clickdebounce = false
  763. notallowed = true
  764. appi = true
  765. ws = 0
  766. coroutine.wrap(function()
  767. while appi do
  768. wait()
  769. if Root.Velocity.y > 1 and attacking == true then
  770. position = "Jump2"
  771. elseif Root.Velocity.y < -1 and attacking == true then
  772. position = "Falling2"
  773. elseif Root.Velocity.Magnitude < 2 and attacking == true then
  774. position = "Idle2"
  775. elseif Root.Velocity.Magnitude > 2 and attacking == true then
  776. position = "Walking2"
  777. end
  778. end
  779. end)()
  780. coroutine.wrap(function()
  781. while appi do
  782. wait()
  783. settime = 0.05
  784. sine = sine + change
  785. if position == "Jump2" and attacking == true and appi == true then
  786. change = 1
  787. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  788. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  789. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  790. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  791. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4)
  792. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  793. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  794. elseif position == "Falling2" and attacking == true and appi == true then
  795. change = 1
  796. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  797. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  798. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  799. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  800. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  801. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2)
  802. elseif position == "Idle2" and attacking == true and appi == true then
  803. change = .4
  804. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  805. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  806. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3)
  807. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  808. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3)
  809. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  810. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  811. elseif position == "Walking2" and attacking == true and appi == true then
  812. change = .8
  813. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  814. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  815. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3)
  816. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  817. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.sin(25*math.sin(sine/8))),.3)
  818. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.sin(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.sin(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.sin(25 * math.sin(sine/8))), 0.3)
  819. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.sin(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.sin(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.sin(25 * math.sin(sine/8))), 0.3)
  820. end
  821. end
  822. end)()
  823. coroutine.wrap(function()
  824. for i = 1, 40 do
  825. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0),.5)
  826. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/6)),math.rad(7 * math.sin(sine/6)),math.rad(7*math.sin(sine/6))), 0.5)
  827. swait()
  828. end
  829. end)()
  830. haloh = Instance.new("Part", Torso)
  831. haloh.Size = Vector3.new(1,1,1)
  832. haloh.Anchored = false
  833. haloh.Transparency = 1
  834. haloh.CanCollide = false
  835. halohweld = weldBetween(haloh,Torso)
  836. halohweld.C0 = CFrame.new(0,0,0)
  837. n = 0
  838. x = 0
  839. tab={}
  840. tab2={}
  841. SOUND(Torso,1882057730,6,false,2)
  842. for i = 1, 20 do
  843. n = n + 20
  844. x = x + 5
  845. halo = Instance.new("Part", Torso)
  846. halo.Size = Vector3.new(0.71, 0.07, 0.99)
  847. halo.Transparency = 1
  848. halo.CanCollide = false
  849. halo.Material = "Neon"
  850. halo.BrickColor = BrickColor.new("White")
  851. halow = weldBetween(halo,haloh)
  852. halow.C0 = CFrame.new(-4,0,0) * CFrame.Angles(math.rad(90),math.rad(n),math.rad(0))
  853. table.insert(FadeIn,halo)
  854. table.insert(tab,halow)
  855. table.insert(tab2,halo)
  856. wait()
  857. end
  858. ws = 10
  859. clickdisallowance = false
  860. coroutine.wrap(function()
  861. g1 = Instance.new("BodyGyro", Root)
  862. g1.D = 175
  863. g1.P = 20000
  864. g1.MaxTorque = Vector3.new(0,9000,0)
  865. while notallowed do
  866. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  867. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  868. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3)
  869. swait()
  870. end
  871. end)()
  872. coroutine.wrap(function()
  873. mouse.Button1Down:connect(function()
  874. if clickdisallowance then return end
  875. if clickdebounce then return end
  876. wait(.2)
  877. clickdebounce = true
  878. notallowed = false
  879. end)
  880. end)()
  881. while notallowed do
  882. for i,v in pairs(tab) do
  883. v.C0 = v.C0 * CFrame.Angles(math.rad(0),math.rad(0 + 1.2),math.rad(0))
  884. end
  885. swait()
  886. end
  887. appi = false
  888. ws = 0
  889. for i = 1, 15 do
  890. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  891. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  892. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
  893. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-50 - 2 * math.sin(sine/12)), math.rad(12), math.rad(9)), 0.3)
  894. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-.65, .6, 1) * CFrame.Angles(0,0,0),.3)
  895. swait()
  896. end
  897. for i,v in pairs(tab) do
  898. v:Remove()
  899. end
  900. for i,v in pairs(tab2) do
  901. removeuseless:AddItem(v,6)
  902. MAKETRAIL(v,Vector3.new(.1,0,0),Vector3.new(-.1,0,0),.8,ColorSequence.new(BrickColor.new("White").Color,BrickColor.new("Really black").Color))
  903. BodyGyro=Instance.new('BodyGyro',v)
  904. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  905. BodyGyro.P=2e4
  906. removeuseless:AddItem(BodyGyro,.1)
  907. PB2 = Instance.new("BodyVelocity", v)
  908. PB2.MaxForce = Vector3.new(999999, 999999, 999999)
  909. v.CFrame = CFrame.new(v.Position,mouse.Hit.p)
  910. PB2.Velocity = v.CFrame.lookVector * 80
  911. end
  912. SOUND(Torso,1499747506,3,false,1)
  913. for i,v in pairs(tab2) do
  914. v.Touched:connect(function(hit)
  915. if hit.Parent:IsA("Part") then
  916. elseif hit.Parent:IsA("SpecialMesh") then
  917. elseif hit.Parent.Name == game.Players.LocalPlayer.Name then
  918. elseif hit.Parent:findFirstChildOfClass("Humanoid") then
  919. if damagedebounce == true then return end
  920. damagedebounce = true
  921. Slachtoffer = hit.Parent:findFirstChildOfClass("Humanoid")
  922. tor = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  923. Slachtoffer:TakeDamage(math.random(17,35))
  924. SOUND(tor,694703797,6,false,1)
  925. wait(.1)
  926. damagedebounce = false
  927. end
  928. end)
  929. end
  930. for i = 1, 20 do
  931. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  932. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  933. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-25), math.rad(0)), 0.3)
  934. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  935. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(-15), math.rad(4)), 0.3)
  936. swait()
  937. end
  938. clean()
  939. g1:Remove()
  940. haloh:Remove()
  941. attacking = false
  942. debounce = false
  943. damagedebounce = false
  944. clickdebounce = false
  945. appi = false
  946. ws = 10
  947. end
  948. end)
  949.  
  950. mouse.KeyDown:connect(function(Press)
  951. Press=Press:lower()
  952. if Press=='y' then
  953. if levitate then return end
  954. if debounce then return end
  955. clickdisallowance = true
  956. clickdebounce = false
  957. debounce = true
  958. attacking = true
  959. appi = true
  960. ws = 0
  961. coroutine.wrap(function()
  962. while appi do
  963. wait()
  964. if Root.Velocity.y > 1 and attacking == true then
  965. position = "Jump2"
  966. elseif Root.Velocity.y < -1 and attacking == true then
  967. position = "Falling2"
  968. elseif Root.Velocity.Magnitude < 2 and attacking == true then
  969. position = "Idle2"
  970. elseif Root.Velocity.Magnitude > 2 and attacking == true then
  971. position = "Walking2"
  972. end
  973. end
  974. end)()
  975. coroutine.wrap(function()
  976. while appi do
  977. wait()
  978. settime = 0.05
  979. sine = sine + change
  980. if position == "Jump2" and attacking == true and appi == true then
  981. change = 1
  982. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  983. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  984. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  985. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  986. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  987. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  988. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  989. elseif position == "Falling2" and attacking == true and appi == true then
  990. change = 1
  991. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  992. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  993. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  994. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  995. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  996. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  997. elseif position == "Idle2" and attacking == true and appi == true then
  998. change = .4
  999. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1000. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1001. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3)
  1002. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1003. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3)
  1004. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1005. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1006. elseif position == "Walking2" and attacking == true and appi == true then
  1007. change = .8
  1008. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1009. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1010. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3)
  1011. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1012. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3)
  1013. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  1014. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  1015. end
  1016. end
  1017. end)()
  1018. bigcard = Instance.new("Part",Torso)
  1019. bigcard.Material = "Neon"
  1020. bigcard.Transparency = 1
  1021. bigcard.BrickColor = BrickColor.new("White")
  1022. bigcard.Size = Vector3.new(15.65, 23.84, 0.3)
  1023. bigcard.CFrame = Root.CFrame * CFrame.new(0,18,0)
  1024. bigcard.Anchored = true
  1025. SOUND(bigcard,236989198,6,false,1)
  1026. ace = aces[math.random(1,#aces)]
  1027. acer = Instance.new("Decal",bigcard)
  1028. acer.Texture = "rbxassetid://"..ace
  1029. acer.Transparency = 1
  1030. acer.Face = "Front"
  1031. ace2 = acer:Clone()
  1032. ace2.Parent = bigcard
  1033. ace2.Face = "Back"
  1034. table.insert(FadeIn,acer)
  1035. table.insert(FadeIn,ace2)
  1036. table.insert(FadeIn,bigcard)
  1037. for i = 1, 30 do
  1038. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5)
  1039. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3)
  1040. swait()
  1041. end
  1042. ws = 10
  1043. g1 = Instance.new("BodyGyro", Root)
  1044. g1.D = 175
  1045. g1.P = 20000
  1046. g1.MaxTorque = Vector3.new(0,9000,0)
  1047. clickdisallowance = false
  1048. coroutine.wrap(function()
  1049. mouse.Button1Down:connect(function()
  1050. if clickdisallowance then return end
  1051. if clickdebounce then return end
  1052. wait(.2)
  1053. clickdebounce = true
  1054. end)
  1055. end)()
  1056. while not clickdebounce do
  1057. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1058. bigcard.CFrame = Root.CFrame * CFrame.new(0,18,0)
  1059. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10 + 2 *math.sin(sine/12)),math.rad(10 - 2*math.sin(sine/12))),.3)
  1060. swait()
  1061. end
  1062. g1:Remove()
  1063. ws = 0
  1064. for i = 1, 13 do
  1065. bigcard.CFrame = bigcard.CFrame:lerp(Root.CFrame * CFrame.new(0,18,3) * CFrame.Angles(math.rad(10),0,0),.3)
  1066. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0.2) * CFrame.Angles(math.rad(160),math.rad(10),math.rad(10)),.3)
  1067. swait()
  1068. end
  1069. locationpart = Instance.new("Part",bigcard)
  1070. locationpart.Size = Vector3.new(1,1,1)
  1071. locationpart.Transparency = 1
  1072. locationpart.CanCollide = false
  1073. locationpart.Anchored = true
  1074. locationpart.CFrame = Root.CFrame * CFrame.new(0,-3,-21)
  1075. shockwave = Instance.new("Part", Torso)
  1076. shockwave.Size = Vector3.new(1,1,1)
  1077. shockwave.CanCollide = false
  1078. shockwave.Anchored = true
  1079. shockwave.Transparency = 0
  1080. shockwave.BrickColor = BrickColor.new("White")
  1081. shockwave.CFrame = CFrame.new(locationpart.Position)
  1082. shockwavemesh = Instance.new("SpecialMesh", shockwave)
  1083. shockwavemesh.Scale = Vector3.new(5,2,5)
  1084. shockwavemesh.MeshId = "rbxassetid://20329976"
  1085. removeuseless:AddItem(shockwave,4)
  1086. shockwave2 = Instance.new("Part", Torso)
  1087. shockwave2.Size = Vector3.new(1,1,1)
  1088. shockwave2.CanCollide = false
  1089. shockwave2.Anchored = true
  1090. shockwave2.Transparency = 0
  1091. shockwave2.BrickColor = BrickColor.new("White")
  1092. shockwave2.CFrame = CFrame.new(locationpart.Position)
  1093. shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
  1094. shockwavemesh2.Scale = Vector3.new(5,2,5)
  1095. shockwavemesh2.MeshId = "rbxassetid://20329976"
  1096. removeuseless:AddItem(shockwave2,4)
  1097. shockwave3 = Instance.new("Part", Torso)
  1098. shockwave3.Size = Vector3.new(1,1,1)
  1099. shockwave3.CanCollide = false
  1100. shockwave3.Anchored = true
  1101. shockwave3.Transparency = 0
  1102. shockwave3.BrickColor = BrickColor.new("White")
  1103. shockwave3.CFrame = CFrame.new(locationpart.Position)
  1104. shockwavemesh3 = Instance.new("SpecialMesh", shockwave3)
  1105. shockwavemesh3.Scale = Vector3.new(5,2,5)
  1106. shockwavemesh3.MeshId = "rbxassetid://20329976"
  1107. removeuseless:AddItem(shockwave3,4)
  1108. shockwave4 = Instance.new("Part", Torso)
  1109. shockwave4.Size = Vector3.new(1,1,1)
  1110. shockwave4.CanCollide = false
  1111. shockwave4.Anchored = true
  1112. shockwave4.Transparency = 0
  1113. shockwave4.BrickColor = BrickColor.new("White")
  1114. shockwave4.CFrame = CFrame.new(locationpart.Position)
  1115. shockwavemesh4 = Instance.new("SpecialMesh", shockwave4)
  1116. shockwavemesh4.Scale = Vector3.new(5,2,5)
  1117. shockwavemesh4.MeshId = "rbxassetid://20329976"
  1118. removeuseless:AddItem(shockwave4,4)
  1119. Hit = damagealll(20,locationpart.Position)
  1120. for _,v in pairs(Hit) do
  1121. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(55,85))
  1122. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  1123. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  1124. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1125. vel.velocity = CFrame.new(locationpart.Position,torso.Position).lookVector*110
  1126. removeuseless:AddItem(vel,.1)
  1127. end
  1128. coroutine.wrap(function()
  1129. for i = 1, 90 do
  1130. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+12),0)
  1131. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(1.5,.1,1.5)
  1132. shockwave.Transparency = shockwave.Transparency + 0.025
  1133. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0+6),0)
  1134. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(1.25,.25,1.25)
  1135. shockwave2.Transparency = shockwave2.Transparency + 0.04
  1136. shockwave3.CFrame = shockwave3.CFrame * CFrame.Angles(0,math.rad(0+12),0)
  1137. shockwavemesh3.Scale = shockwavemesh3.Scale + Vector3.new(.75,.75,.75)
  1138. shockwave3.Transparency = shockwave3.Transparency + 0.035
  1139. shockwave4.CFrame = shockwave3.CFrame * CFrame.Angles(0,math.rad(0+5),0)
  1140. shockwavemesh4.Scale = shockwavemesh3.Scale + Vector3.new(2.5,.5,2.5)
  1141. shockwave4.Transparency = shockwave3.Transparency + 0.03
  1142. swait()
  1143. end
  1144. end)()
  1145. SOUND(locationpart,765590102,6,false,2)
  1146. for i = 1, 24 do
  1147. bigcard.CFrame = bigcard.CFrame:lerp(Root.CFrame * CFrame.new(0,-3,-21) * CFrame.Angles(math.rad(90),0,0),.25)
  1148. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(.2,.2,.2) * CFrame.Angles(0,0,0),.5)
  1149. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 1.1, 0.4) * CFrame.Angles(math.rad(-75), math.rad(15), math.rad(4)), 0.5)
  1150. swait()
  1151. end
  1152. for i = 1, 40 do
  1153. bigcard.Transparency = bigcard.Transparency + 0.2
  1154. acer.Transparency = acer.Transparency + .2
  1155. ace2.Transparency = ace2.Transparency + .2
  1156. swait()
  1157. end
  1158. attacking = false
  1159. debounce = false
  1160. appi = false
  1161. clickdisallowance = false
  1162. clickdebounce = false
  1163. ws = 10
  1164. bigcard:Remove()
  1165. clean()
  1166. end
  1167. end)
  1168.  
  1169. mouse.KeyDown:connect(function(Press)
  1170. Press=Press:lower()
  1171. if Press=='u' then
  1172. if levitate then return end
  1173. if mouse.Target ~= nil then end
  1174. if debounce then return end
  1175. debounce = true
  1176. attacking = true
  1177. appi = true
  1178. ws = 0
  1179. appi = true
  1180. coroutine.wrap(function()
  1181. while appi do
  1182. wait()
  1183. if Root.Velocity.y > 1 and attacking == true then
  1184. position = "Jump2"
  1185. elseif Root.Velocity.y < -1 and attacking == true then
  1186. position = "Falling2"
  1187. elseif Root.Velocity.Magnitude < 2 and attacking == true then
  1188. position = "Idle2"
  1189. elseif Root.Velocity.Magnitude > 2 and attacking == true then
  1190. position = "Walking2"
  1191. end
  1192. end
  1193. end)()
  1194. coroutine.wrap(function()
  1195. while appi do
  1196. wait()
  1197. settime = 0.05
  1198. sine = sine + change
  1199. if position == "Jump2" and attacking == true and appi == true then
  1200. change = 1
  1201. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1202. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1203. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1204. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1205. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  1206. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  1207. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1208. elseif position == "Falling2" and attacking == true and appi == true then
  1209. change = 1
  1210. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1211. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1212. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1213. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  1214. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  1215. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  1216. elseif position == "Idle2" and attacking == true and appi == true then
  1217. change = .4
  1218. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1219. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1220. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3)
  1221. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1222. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.3)
  1223. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1224. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1225. elseif position == "Walking2" and attacking == true and appi == true then
  1226. change = .8
  1227. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1228. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1229. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.3)
  1230. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1231. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3)
  1232. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  1233. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  1234. end
  1235. end
  1236. end)()
  1237. g1 = Instance.new("BodyGyro", Root)
  1238. g1.D = 175
  1239. g1.P = 20000
  1240. g1.MaxTorque = Vector3.new(0,9000,0)
  1241. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  1242. for i = 1, 15 do
  1243. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1244. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,1.5,-.1),.5)
  1245. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(180),math.rad(10),math.rad(10)),.3)
  1246. swait()
  1247. end
  1248. cardportal = Instance.new("Part", Torso)
  1249. cardportal.Size = Vector3.new(0.5, 0.5, 0.5)
  1250. cardportal.Material = "Neon"
  1251. cardportal.BrickColor = BrickColor.new("White")
  1252. cardportal.Transparency = 0
  1253. cardportal.Anchored = true
  1254. cardportal.CanCollide = false
  1255. cardportalMESH = Instance.new("SpecialMesh", cardportal)
  1256. cardportalMESH.MeshType = "Cylinder"
  1257. cardportalMESH.Scale = Vector3.new(.2,0.01,0.01)
  1258. cardportal.CFrame = CFrame.new(mouse.Hit.p) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
  1259. for i = 1, 10 do
  1260. cardportalMESH.Scale = cardportalMESH.Scale + Vector3.new(0,4,4)
  1261. swait()
  1262. end
  1263. bigzcard = Instance.new("Part",Torso)
  1264. bigzcard.Material = "Neon"
  1265. bigzcard.Transparency = 0
  1266. bigzcard.BrickColor = BrickColor.new("White")
  1267. bigzcard.Size = Vector3.new(10, 15, 0.3)
  1268. bigzcard.CFrame = cardportal.CFrame * CFrame.new(-8,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
  1269. bigzcard.Anchored = true
  1270. SOUND(bigzcard,1888686669,6,false,1)
  1271. acer = Instance.new("Decal",bigzcard)
  1272. acer.Texture = "rbxassetid://1881287656"
  1273. acer.Transparency = 0
  1274. acer.Face = "Front"
  1275. ace2 = acer:Clone()
  1276. ace2.Parent = bigzcard
  1277. ace2.Face = "Back"
  1278. spinning = true
  1279. coroutine.wrap(function()
  1280. while spinning do
  1281. bigzcard.CFrame = bigzcard.CFrame * CFrame.Angles(0,math.rad(0+5),0)
  1282. swait()
  1283. end
  1284. end)()
  1285. for i = 1, 20 do
  1286. bigzcard.CFrame = bigzcard.CFrame * CFrame.new(0,-.9,0)
  1287. swait()
  1288. end
  1289. coroutine.wrap(function()
  1290. for i = 1, 10 do
  1291. cardportalMESH.Scale = cardportalMESH.Scale - Vector3.new(0,4,4)
  1292. swait()
  1293. end
  1294. cardportal:Remove()
  1295. end)()
  1296. wait(.7)
  1297. ace3 = Instance.new("Decal",bigzcard)
  1298. ace3.Texture = "rbxassetid://1880203893"
  1299. ace3.Transparency = 1
  1300. ace3.Face = "Front"
  1301. ace4 = ace3:Clone()
  1302. ace4.Parent = bigzcard
  1303. ace4.Face = "Back"
  1304. bigzcard2 = Instance.new("Part",Torso)
  1305. bigzcard2.Material = "Neon"
  1306. bigzcard2.Transparency = 1
  1307. bigzcard2.BrickColor = BrickColor.new("Really black")
  1308. bigzcard2.Size = Vector3.new(10, 15, 0.29)
  1309. bigzcard2.CFrame = bigzcard.CFrame
  1310. bigzcard2.CanCollide = false
  1311. bigzcard2.Anchored = true
  1312. coroutine.wrap(function()
  1313. while spinning do
  1314. bigzcard2.CFrame = bigzcard2.CFrame * CFrame.Angles(0,math.rad(0+5),0)
  1315. swait()
  1316. end
  1317. end)()
  1318. blz = bl[math.random(1,#bl)]
  1319. woos = Instance.new("Sound",Torso)
  1320. woos.SoundId = "rbxassetid://"..blz
  1321. woos.Volume = 4
  1322. woos:Play()
  1323. for i = 1, 20 do
  1324. bigzcard2.Transparency = bigzcard2.Transparency - .05
  1325. bigzcard.Transparency = bigzcard.Transparency + .05
  1326. ace3.Transparency = ace3.Transparency - 0.05
  1327. ace4.Transparency = ace4.Transparency - 0.05
  1328. acer.Transparency = acer.Transparency + 0.05
  1329. ace2.Transparency = ace2.Transparency + 0.05
  1330. wait()
  1331. end
  1332. ace3.Parent = bigzcard2
  1333. ace3.Face = "Front"
  1334. ace4.Parent = bigzcard2
  1335. ace4.Face = "Back"
  1336. bigzcard:Remove()
  1337. spinning = false
  1338. blackholeactive = true
  1339. coroutine.wrap(function()
  1340. blackhole={}
  1341. orbzfade={}
  1342. for i = 1, 100 do
  1343. orbz = Instance.new("Part", Torso)
  1344. orbz.Shape = "Ball"
  1345. orbz.Material = "Neon"
  1346. orbz.BrickColor = BrickColor.new("Really black")
  1347. orbz.Size = Vector3.new(2,2,2)
  1348. orbz.Anchored = true
  1349. orbz.CanCollide = false
  1350. removeuseless:AddItem(orbz,1)
  1351. orbz.CFrame = bigzcard2.CFrame * CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) * CFrame.Angles(math.rad(-180,180),math.rad(-180,180),math.rad(-180,180))
  1352. table.insert(blackhole,orbz)
  1353. table.insert(orbzfade,orbz)
  1354. for i,v in pairs(blackhole) do
  1355. v.CFrame = v.CFrame:lerp(CFrame.new(bigzcard2.Position),.05)
  1356. end
  1357. for i,v in pairs(orbzfade) do
  1358. v.Transparency = v.Transparency + 0.025
  1359. end
  1360. swait()
  1361. end
  1362. end)()
  1363. coroutine.wrap(function()
  1364. while blackholeactive do
  1365. local Hit = damagealll(45,bigzcard2.Position)
  1366. for _,v in pairs(Hit) do
  1367. coroutine.wrap(function()
  1368. wait(.15)
  1369. if blackholeactive == false then return end
  1370. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(.1,1))
  1371. end)()
  1372. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1373. torso.CFrame = torso.CFrame:lerp(CFrame.new(bigzcard2.Position),.1)
  1374. end
  1375. wait()
  1376. end
  1377. end)()
  1378. for i = 1, 100 do
  1379. bigzcard2.CFrame = bigzcard2.CFrame * CFrame.Angles(0,math.rad(0+20),0)
  1380. cataclysmics = Instance.new("Part", Torso)
  1381. cataclysmics.Shape = "Ball"
  1382. cataclysmics.Material = "Neon"
  1383. cataclysmics.BrickColor = BrickColor.new("Really black")
  1384. cataclysmics.Size = Vector3.new(11,11,11)
  1385. cataclysmics.Transparency = .3
  1386. cataclysmics.Anchored = true
  1387. cataclysmics.CanCollide = false
  1388. cataclysmics.CFrame = CFrame.new(bigzcard2.Position)
  1389. table.insert(LessSize,cataclysmics)
  1390. table.insert(keyYtransparency,cataclysmics)
  1391. removeuseless:AddItem(cataclysmics,1)
  1392. swait()
  1393. end
  1394. coroutine.wrap(function()
  1395. for i = 1, 20 do
  1396. for i,v in pairs(orbzfade) do
  1397. v.Transparency = v.Transparency + 0.05
  1398. end
  1399. swait()
  1400. end
  1401. end)()
  1402. explosiontable={}
  1403. ringtable={}
  1404. ringtable2={}
  1405. soundboks = Instance.new("Part",Torso)
  1406. soundboks.CanCollide = false
  1407. soundboks.Anchored = true
  1408. soundboks.Transparency = 1
  1409. soundboks.CFrame = bigzcard2.CFrame
  1410. removeuseless:AddItem(soundboks,6)
  1411. SOUND(soundboks,472579737,6,false,1)
  1412. blackholeactive = false
  1413. bigzcard2:Remove()
  1414. Hit = damagealll(60,soundboks.Position)
  1415. for _,v in pairs(Hit) do
  1416. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(36,55))
  1417. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  1418. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  1419. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1420. vel.velocity = CFrame.new(soundboks.Position,torso.Position).lookVector*200
  1421. removeuseless:AddItem(vel,.1)
  1422. end
  1423. coroutine.wrap(function()
  1424. shockwave = Instance.new("Part", Torso)
  1425. shockwave.Size = Vector3.new(1,1,1)
  1426. shockwave.CanCollide = false
  1427. shockwave.Anchored = true
  1428. shockwave.Transparency = 0
  1429. shockwave.BrickColor = BrickColor.new("Really black")
  1430. shockwave.CFrame = CFrame.new(soundboks.Position) * CFrame.new(0,-6,0)
  1431. shockwavemesh = Instance.new("SpecialMesh", shockwave)
  1432. shockwavemesh.Scale = Vector3.new(5,2,5)
  1433. shockwavemesh.MeshId = "rbxassetid://20329976"
  1434. shockwave2 = Instance.new("Part", Torso)
  1435. shockwave2.Size = Vector3.new(1,1,1)
  1436. shockwave2.CanCollide = false
  1437. shockwave2.Anchored = true
  1438. shockwave2.Transparency = 0
  1439. shockwave2.BrickColor = BrickColor.new("Really black")
  1440. shockwave2.CFrame = CFrame.new(soundboks.Position) * CFrame.new(0,-6,0)
  1441. shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
  1442. shockwavemesh2.Scale = Vector3.new(5,2,5)
  1443. shockwavemesh2.MeshId = "rbxassetid://20329976"
  1444. for i = 1, 40 do
  1445. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+15),0)
  1446. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0+8),0)
  1447. shockwave.Transparency = shockwave.Transparency + 0.025
  1448. shockwave2.Transparency = shockwave2.Transparency + 0.025
  1449. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(9,.9,9)
  1450. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(8,.8,8)
  1451. swait()
  1452. end
  1453. shockwave:Remove()
  1454. shockwave2:Remove()
  1455. end)()
  1456. for i = 1, 4 do
  1457. explosion = Instance.new("Part", Torso)
  1458. explosion.Shape = "Ball"
  1459. explosion.Size = Vector3.new(1,1,1)
  1460. explosion.Transparency = 0
  1461. explosion.CanCollide = false
  1462. explosion.Anchored = true
  1463. explosion.BrickColor = BrickColor.new("Really black")
  1464. explosion.Material = "Neon"
  1465. explosion.CFrame = CFrame.new(bigzcard2.Position)
  1466. table.insert(ExtremeM,explosion)
  1467. table.insert(SlowlyFade,explosion)
  1468. removeuseless:AddItem(explosion,4)
  1469. ring = Instance.new("Part", Torso)
  1470. ring.Size = Vector3.new(5, 5, 5)
  1471. ring.Transparency = 0
  1472. ring.BrickColor = BrickColor.new("Really black")
  1473. ring.Anchored = true
  1474. ring.CanCollide = false
  1475. ring.CFrame = bigzcard2.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
  1476. ringh = Instance.new("SpecialMesh", ring)
  1477. ringh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1478. ringh.Scale = Vector3.new(2, 2, .1)
  1479. table.insert(keyYsize,ringh)
  1480. table.insert(keyYtransparency,ring)
  1481. removeuseless:AddItem(ring,4)
  1482. swait()
  1483. end
  1484. wait(1.2)
  1485. clean()
  1486. keyYsize={}
  1487. keyYtransparency={}
  1488. blackholev = false
  1489. appi = false
  1490. g1:Remove()
  1491. ws = 10
  1492. attacking = false
  1493. debounce = false
  1494. end
  1495. end)
  1496.  
  1497. mouse.KeyDown:connect(function(Press)
  1498. Press=Press:lower()
  1499. if Press=='t' then
  1500. if levitate then
  1501. if tauntdebounce then return end
  1502. tauntdebounce = true
  1503. laughing = true
  1504. coroutine.wrap(function()
  1505. while laughing do
  1506. local b1 = Instance.new("BillboardGui",Head)
  1507. b1.Size = UDim2.new(0,4,0,1.6)
  1508. b1.StudsOffset = Vector3.new(0,0,0)
  1509. b1.Name = "laff"
  1510. b1.AlwaysOnTop = true
  1511. b1.Adornee = Head
  1512. removeuseless:AddItem(b1,3)
  1513. local b2 = Instance.new("TextLabel",b1)
  1514. b2.BackgroundTransparency = 1
  1515. b2.Text = "HaHaHaHaHaHa..."
  1516. b2.Font = "Garamond"
  1517. b2.TextSize = 0
  1518. b2.Name = "lafftext"
  1519. b2.TextStrokeTransparency = 0
  1520. b2.TextColor3 = BrickColor.new("Really red").Color
  1521. b2.TextStrokeColor3 = Color3.new(0,0,0)
  1522. b2.Size = UDim2.new(1,0,.5,0)
  1523. table.insert(laughingtable,b2)
  1524. removeuseless:AddItem(b1,2)
  1525. coroutine.wrap(function()
  1526. if zxc then return end
  1527. zxc = true
  1528. while true do
  1529. swait()
  1530. for i,v in pairs(Head:GetChildren()) do
  1531. if v.Name == "laff" then
  1532. v.StudsOffset = v.StudsOffset + Vector3.new(math.random(-2,2),.3,math.random(-2,2))
  1533. end
  1534. end
  1535. for i,v in pairs(laughingtable) do
  1536. v.TextTransparency = v.TextTransparency + .025
  1537. v.TextStrokeTransparency = v.TextStrokeTransparency + 0.25
  1538. v.TextSize = v.TextSize + 2
  1539. v.Rotation = v.Rotation + .1
  1540. end
  1541. end
  1542. end)()
  1543. swait(10)
  1544. end
  1545. end)()
  1546. laugh = laughs[math.random(1,#laughs)]
  1547. laughy = Instance.new("Sound",Head)
  1548. laughy.SoundId = "rbxassetid://"..laugh
  1549. laughy.Volume = 10
  1550. laughy:Play()
  1551. wait(1)
  1552. wait(laughy.TimeLength)
  1553. laughing = false
  1554. laughy:Remove()
  1555. tauntdebounce = false
  1556. else
  1557. if mouse.Target ~= nil then
  1558. if debounce then return end
  1559. attacking = true
  1560. ghost()
  1561. tps = Instance.new("Sound", Torso)
  1562. tps.Volume = 5
  1563. tps.SoundId = "rbxassetid://1894958339"
  1564. tps:Play()
  1565. removeuseless:AddItem(tps,2)
  1566. g1 = Instance.new("BodyGyro", Root)
  1567. g1.D = 175
  1568. g1.P = 20000
  1569. g1.MaxTorque = Vector3.new(0,9000,0)
  1570. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  1571. removeuseless:AddItem(g1,.05)
  1572. Root.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,3.3,0)
  1573. wait(.1)
  1574. attacking = false
  1575. debounce = false
  1576. end
  1577. end
  1578. end
  1579. end)
  1580.  
  1581. mouse.KeyDown:connect(function(Press)
  1582. Press=Press:lower()
  1583. if Press=='q' then
  1584. if levitate then return end
  1585. if mouse.Target ~= nil and mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil and mouse.Target.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then
  1586. if debounce then return end
  1587. debounce = true
  1588. attacking = true
  1589. appi = true
  1590. ws = 0
  1591. coroutine.wrap(function()
  1592. while appi do
  1593. wait()
  1594. if Root.Velocity.y > 1 and attacking == true then
  1595. position = "Jump2"
  1596. elseif Root.Velocity.y < -1 and attacking == true then
  1597. position = "Falling2"
  1598. elseif Root.Velocity.Magnitude < 2 and attacking == true then
  1599. position = "Idle2"
  1600. elseif Root.Velocity.Magnitude > 2 and attacking == true then
  1601. position = "Walking2"
  1602. end
  1603. end
  1604. end)()
  1605. coroutine.wrap(function()
  1606. while appi do
  1607. wait()
  1608. settime = 0.05
  1609. sine = sine + change
  1610. if position == "Jump2" and attacking == true and appi == true then
  1611. change = 1
  1612. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1613. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1614. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1615. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1616. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4)
  1617. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  1618. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1619. elseif position == "Falling2" and attacking == true and appi == true then
  1620. change = 1
  1621. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1622. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1623. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1624. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  1625. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  1626. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2)
  1627. elseif position == "Idle2" and attacking == true and appi == true then
  1628. change = .4
  1629. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1630. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1631. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3)
  1632. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  1633. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1634. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1635. elseif position == "Walking2" and attacking == true and appi == true then
  1636. change = .8
  1637. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1638. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1639. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3)
  1640. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  1641. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3)
  1642. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  1643. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  1644. end
  1645. end
  1646. end)()
  1647. enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1648. ETorso = enemyhum.Parent:FindFirstChild("Torso") or enemyhum.Parent:FindFirstChild("LowerTorso")
  1649. EHead = enemyhum.Parent:FindFirstChild("Head")
  1650. g1 = Instance.new("BodyGyro", Root)
  1651. g1.D = 175
  1652. g1.P = 20000
  1653. g1.MaxTorque = Vector3.new(0,9000,0)
  1654. brick = Instance.new("Part",Torso)
  1655. brick.Anchored = true
  1656. brick.CanCollide = false
  1657. brick.Material = "Neon"
  1658. brick.Transparency = 1
  1659. brick.BrickColor = BrickColor.new("White")
  1660. brick.Size = Vector3.new(8,.3,12)
  1661. brick.CFrame = Root.CFrame * CFrame.new(math.random(-15,15),-3,math.random(-15,15))
  1662. SOUND(brick,1888686669,6,false,1.5)
  1663. ace = aces[math.random(1,#aces)]
  1664. acer = Instance.new("Decal",brick)
  1665. acer.Texture = "rbxassetid://1898092341"
  1666. acer.Transparency = 1
  1667. acer.Face = "Top"
  1668. coroutine.wrap(function()
  1669. for i = 1, 20 do
  1670. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2)
  1671. brick.Transparency = brick.Transparency - .05
  1672. acer.Transparency = acer.Transparency - .1
  1673. swait()
  1674. end
  1675. end)()
  1676. ETorso.Anchored = true
  1677. EHead.Anchored = true
  1678. for i = 1, 25 do
  1679. swait()
  1680. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2)
  1681. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.2,0) * CFrame.Angles(0,0,0),.3)
  1682. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  1683. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3)
  1684. brick.CFrame = brick.CFrame:lerp(CFrame.new(ETorso.Position) * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(0+10),0),.2)
  1685. end
  1686. SOUND(brick,472214107,6,false,2)
  1687. coroutine.wrap(function()
  1688. for i = 1, 10 do
  1689. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2)
  1690. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, .8, 0.4) * CFrame.Angles(math.rad(-60 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3)
  1691. swait()
  1692. end
  1693. end)()
  1694. shockwave = Instance.new("Part", Torso)
  1695. shockwave.Size = Vector3.new(1,1,1)
  1696. shockwave.CanCollide = false
  1697. shockwave.Anchored = true
  1698. shockwave.Transparency = 0
  1699. shockwave.BrickColor = BrickColor.new("White")
  1700. shockwave.CFrame = CFrame.new(brick.Position)
  1701. shockwavemesh = Instance.new("SpecialMesh", shockwave)
  1702. shockwavemesh.Scale = Vector3.new(1,1,1)
  1703. shockwavemesh.MeshId = "rbxassetid://20329976"
  1704. removeuseless:AddItem(shockwave,4)
  1705. shockwave2 = Instance.new("Part", Torso)
  1706. shockwave2.Size = Vector3.new(1,1,1)
  1707. shockwave2.CanCollide = false
  1708. shockwave2.Anchored = true
  1709. shockwave2.Transparency = 0
  1710. shockwave2.BrickColor = BrickColor.new("White")
  1711. shockwave2.CFrame = CFrame.new(brick.Position)
  1712. shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
  1713. shockwavemesh2.Scale = Vector3.new(1,1,1)
  1714. shockwavemesh2.MeshId = "rbxassetid://20329976"
  1715. removeuseless:AddItem(shockwave2,4)
  1716. for i = 1, 35 do
  1717. swait()
  1718. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(2,.1,2)
  1719. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(0,math.rad(0+12),0)
  1720. shockwave.Transparency = shockwave.Transparency + .05
  1721. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(.5,.1,.5)
  1722. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(0,math.rad(0+4),0)
  1723. shockwave2.Transparency = shockwave2.Transparency + .03
  1724. EHead.CFrame = EHead.CFrame * CFrame.new(0,-.20,0)
  1725. ETorso.CFrame = ETorso.CFrame * CFrame.new(0,-.25,0)
  1726. end
  1727. for i = 1, 8 do
  1728. brick.Size = brick.Size + Vector3.new(1.5,0,2.5)
  1729. swait()
  1730. end
  1731. n = 0
  1732. SOUND(brick,54111471,6,false,1)
  1733. for i = 1, 40 do
  1734. n = n + 6
  1735. brick.Transparency = brick.Transparency + .025
  1736. acer.Transparency = acer.Transparency + .075
  1737. brick.CFrame = brick.CFrame * CFrame.Angles(0,math.rad(n),0)
  1738. brick.Size = brick.Size - Vector3.new(1.5,.025,2.5)
  1739. swait()
  1740. end
  1741. ws = 10
  1742. brick:Remove()
  1743. enemyhum.Parent:Remove()
  1744. attacking = false
  1745. removeuseless:AddItem(g1,0.001)
  1746. debounce = false
  1747. appi = false
  1748. end
  1749. end
  1750. end)
  1751.  
  1752. mouse.KeyDown:connect(function(Press)
  1753. Press=Press:lower()
  1754. if Press=='p' then
  1755. if levitate then return end
  1756. if blocking then
  1757. if blockedoff then return end
  1758. clickallowance = false
  1759. appi = false
  1760. attacking = true
  1761. blocking = false
  1762. throwing = true
  1763. ws = 0
  1764. n = 0
  1765. blockcard.CanCollide = false
  1766. for i = 1, 35 do
  1767. n = n + 20
  1768. blockcard.CFrame = Root.CFrame * CFrame.new(0,3,-5) * CFrame.Angles(0,math.rad(n),0)
  1769. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(0)), 0.3)
  1770. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-50 - 2 * math.sin(sine/12)), math.rad(12), math.rad(9)), 0.3)
  1771. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-.65, .6, 1) * CFrame.Angles(0,0,0),.3)
  1772. swait()
  1773. end
  1774. blockcard.CFrame = Root.CFrame * CFrame.new(0,3,-5 + -1) * CFrame.Angles(0,0,0)
  1775. blockcard.CanCollide = false
  1776. locater1 = Instance.new("Part",blockcard)
  1777. locater1.Size = Vector3.new(1,1,1)
  1778. locater1.CanCollide = false
  1779. locater1.Anchored = true
  1780. locater1.Transparency = 1
  1781. locater2 = Instance.new("Part",blockcard)
  1782. locater2.Size = Vector3.new(1,1,1)
  1783. locater2.CanCollide = false
  1784. locater2.Transparency = 1
  1785. locater2.Anchored = true
  1786. locater3 = Instance.new("Part",blockcard)
  1787. locater3.Size = Vector3.new(1,1,1)
  1788. locater3.Transparency = 1
  1789. locater3.CFrame = blockcard.CFrame * CFrame.Angles(math.rad(90),0,0)
  1790. locater3.CanCollide = false
  1791. locater3.Anchored = true
  1792. fushfush = Instance.new("Sound",blockcard)
  1793. fushfush.SoundId = "rbxassetid://288641686"
  1794. fushfush.Volume = 8
  1795. fushfush:Play()
  1796. boosh:Play()
  1797. coroutine.wrap(function()
  1798. n = 0
  1799. for i = 1, 35 do
  1800. n = n + 10
  1801. shockwave = Instance.new("Part", Torso)
  1802. shockwave.Size = Vector3.new(1,1,1)
  1803. shockwave.CanCollide = false
  1804. shockwave.Anchored = true
  1805. shockwave.Transparency = .5
  1806. shockwave.BrickColor = BrickColor.new("White")
  1807. shockwave.CFrame = locater3.CFrame
  1808. shockwavemesh = Instance.new("SpecialMesh", shockwave)
  1809. shockwavemesh.Scale = Vector3.new(15,.7,15)
  1810. shockwavemesh.MeshId = "rbxassetid://20329976"
  1811. shockwave.CFrame = locater3.CFrame * CFrame.Angles(math.rad(0),math.rad(1),0)
  1812. removeuseless:AddItem(shockwave,1)
  1813. table.insert(lolzor2,shockwave)
  1814. for i,v in pairs(lolzor2) do
  1815. v.Transparency = v.Transparency + .1
  1816. v.CFrame = v.CFrame * CFrame.Angles(math.rad(0),math.rad(n),0)
  1817. end
  1818. swait()
  1819. end
  1820. end)()
  1821. for i = 1, 35 do
  1822. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  1823. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  1824. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(-20), math.rad(4)), 0.3)
  1825. fushfush.Volume = fushfush.Volume - .2
  1826. Hit = damagealll(20,blockcard.Position)
  1827. for _,v in pairs(Hit) do
  1828. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(7,12))
  1829. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  1830. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  1831. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1832. vel.velocity = CFrame.new(blockcard.Position,torso.Position).lookVector*120
  1833. removeuseless:AddItem(vel,.1)
  1834. end
  1835. locater1.CFrame = blockcard.CFrame * CFrame.new(-5,-6,0)
  1836. locater3.CFrame = blockcard.CFrame * CFrame.new(0,0,-1) * CFrame.Angles(math.rad(90),0,0)
  1837. locater2.CFrame = blockcard.CFrame * CFrame.new(5,-6,0)
  1838. grassblocks = Instance.new("Part",Torso)
  1839. grassblocks.Size = Vector3.new(4,4,4)
  1840. grassblocks.Material = "Grass"
  1841. grassblocks.Anchored = true
  1842. grassblocks.BrickColor = BrickColor.new("Bright green")
  1843. grassblocks.CFrame = locater1.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1844. removeuseless:AddItem(grassblocks,5)
  1845. grassblocks2 = Instance.new("Part",Torso)
  1846. grassblocks2.Size = Vector3.new(4,4,4)
  1847. grassblocks2.Material = "Grass"
  1848. grassblocks2.Anchored = true
  1849. grassblocks2.BrickColor = BrickColor.new("Bright green")
  1850. grassblocks2.CFrame = locater2.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1851. removeuseless:AddItem(grassblocks2,5)
  1852. blockcardshadow = Instance.new("Part",Torso)
  1853. blockcardshadow.Transparency = .5
  1854. blockcardshadow.Anchored = true
  1855. blockcardshadow.Material = "Neon"
  1856. blockcardshadow.BrickColor = BrickColor.new("White")
  1857. blockcardshadow.Size = Vector3.new(8, 13, 0.3)
  1858. blockcardshadow.CanCollide = false
  1859. blockcardshadow.CFrame = blockcard.CFrame
  1860. removeuseless:AddItem(blockcardshadow,2)
  1861. table.insert(lolzor,blockcardshadow)
  1862. for i,v in pairs(lolzor) do
  1863. v.Transparency = v.Transparency + 0.05
  1864. end
  1865. blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,-4)
  1866. swait()
  1867. end
  1868. blockcard.Name = "Getthisshitoutofhere"
  1869. for i = 1, 10 do
  1870. blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,-2)
  1871. blockcard.Transparency = blockcard.Transparency + .1
  1872. acer.Transparency = blockcard.Transparency
  1873. ace2.Transparency = blockcard.Transparency
  1874. for i,v in pairs(lolzor) do
  1875. v.Transparency = v.Transparency + .05
  1876. end
  1877. for i,v in pairs(lolzor2) do
  1878. v.Transparency = v.Transparency + .1
  1879. end
  1880. swait()
  1881. end
  1882. lolzor={}
  1883. lolzor2={}
  1884. attacking = false
  1885. debounce = false
  1886. blocking = false
  1887. throwing = false
  1888. fushfush:Remove()
  1889. clickallowance = false
  1890. appi = false
  1891. blockcard:Remove()
  1892. g1:Remove()
  1893. ws = 10
  1894. else
  1895. if debounce then return end
  1896. if throwing then return end
  1897. debounce = true
  1898. ws = 10
  1899. attacking = true
  1900. blocking = true
  1901. boosh = Instance.new("Sound",nil)
  1902. boosh.SoundId = "rbxassetid://413682983"
  1903. boosh.Volume = 6
  1904. appi = true
  1905. coroutine.wrap(function()
  1906. while appi do
  1907. wait()
  1908. if Root.Velocity.y > 1 and attacking == true then
  1909. position = "Jump2"
  1910. elseif Root.Velocity.y < -1 and attacking == true then
  1911. position = "Falling2"
  1912. elseif Root.Velocity.Magnitude < 2 and attacking == true then
  1913. position = "Idle2"
  1914. elseif Root.Velocity.Magnitude > 2 and attacking == true then
  1915. position = "Walking2"
  1916. end
  1917. end
  1918. end)()
  1919. coroutine.wrap(function()
  1920. while appi do
  1921. wait()
  1922. settime = 0.05
  1923. sine = sine + change
  1924. if position == "Jump2" and attacking == true and appi == true then
  1925. change = 1
  1926. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1927. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1928. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1929. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1930. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4)
  1931. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  1932. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1933. elseif position == "Falling2" and attacking == true and appi == true then
  1934. change = 1
  1935. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1936. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1937. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1938. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  1939. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  1940. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2)
  1941. elseif position == "Idle2" and attacking == true and appi == true then
  1942. change = .4
  1943. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1944. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1945. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3)
  1946. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  1947. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1948. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1949. elseif position == "Walking2" and attacking == true and appi == true then
  1950. change = .8
  1951. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1952. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1953. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.3)
  1954. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  1955. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,math.rad(0) + Root.RotVelocity.Y/30,math.cos(25*math.cos(sine/8))),.3)
  1956. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0)), 0.3)
  1957. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0)), 0.3)
  1958. end
  1959. end
  1960. end)()
  1961. blockcard = Instance.new("Part",Torso)
  1962. blockcard.Material = "Neon"
  1963. blockcard.Transparency = 1
  1964. blockcard.BrickColor = BrickColor.new("White")
  1965. blockcard.Size = Vector3.new(8, 13, 0.3)
  1966. blockcard.CFrame = Root.CFrame * CFrame.new(0,2,-5)
  1967. blockcard.Anchored = true
  1968. boosh.Parent = blockcard
  1969. SOUND(blockcard,236989198,6,false,1)
  1970. ace = aces[math.random(1,#aces)]
  1971. acer = Instance.new("Decal",blockcard)
  1972. acer.Texture = "rbxassetid://"..ace
  1973. acer.Transparency = 1
  1974. acer.Face = "Front"
  1975. ace2 = acer:Clone()
  1976. ace2.Parent = blockcard
  1977. ace2.Face = "Back"
  1978. coroutine.wrap(function()
  1979. for i = 1, 20 do
  1980. blockcard.Transparency = blockcard.Transparency - 0.05
  1981. acer.Transparency = blockcard.Transparency
  1982. ace2.Transparency = blockcard.Transparency
  1983. swait()
  1984. end
  1985. clickallowance = true
  1986. end)()
  1987. g1 = Instance.new("BodyGyro", Root)
  1988. g1.D = 175
  1989. g1.P = 20000
  1990. g1.MaxTorque = Vector3.new(0,9000,0)
  1991. coroutine.wrap(function()
  1992. while blocking do
  1993. if not blockedoff then
  1994. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.2, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1995. blockcard.CFrame = Root.CFrame * CFrame.new(0,3,-5)
  1996. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1997. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.3)
  1998. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(3), math.rad(4)), 0.3)
  1999. end
  2000. swait()
  2001. end
  2002. end)()
  2003. wait(1)
  2004. mouse.Button1Down:connect(function()
  2005. if throwing then return end
  2006. if not clickallowance then return end
  2007. clickallowance = false
  2008. blockedoff = true
  2009. ws = 0
  2010. for i = 1, 15 do
  2011. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(25), math.rad(0)), 0.3)
  2012. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-50 - 2 * math.sin(sine/12)), math.rad(12), math.rad(9)), 0.3)
  2013. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-.65, .6, 1) * CFrame.Angles(0,0,0),.3)
  2014. swait()
  2015. end
  2016. boosh:Play()
  2017. hitdebounce = false
  2018. blockcard.Touched:connect(function(hit)
  2019. if hit.Parent:IsA("Part") then
  2020. elseif hit.Parent:IsA("SpecialMesh") then
  2021. elseif hit.Parent.Name == game.Players.LocalPlayer.Name then
  2022. elseif hit.Parent:findFirstChildOfClass("Humanoid") then
  2023. for i,v in pairs(hit.Parent:GetChildren()) do
  2024. Slachtoffer = v.Parent:FindFirstChildOfClass("Humanoid")
  2025. if hitdebounce then return end
  2026. hitdebounce = true
  2027. vel = Instance.new("BodyVelocity",hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso"))
  2028. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  2029. if Slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  2030. tors = hit.Parent:FindFirstChild("UpperTorso")
  2031. else
  2032. tors = hit.Parent:FindFirstChild("Torso")
  2033. end
  2034. vel.velocity = CFrame.new(Root.Position,tors.Position).lookVector*120
  2035. removeuseless:AddItem(vel,.1)
  2036. Slachtoffer:TakeDamage(math.random(23,44))
  2037. end
  2038. end
  2039. end)
  2040. for i = 1, 10 do
  2041. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  2042. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  2043. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90 - 2 * math.sin(sine/12)), math.rad(-20), math.rad(4)), 0.3)
  2044. blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,0-1)
  2045. swait()
  2046. end
  2047. for i = 1, 10 do
  2048. blockcard.CFrame = blockcard.CFrame * CFrame.new(0,0,0+1)
  2049. swait()
  2050. end
  2051. hitdebounce = true
  2052. ws = 10
  2053. clickallowance = true
  2054. blockedoff = false
  2055. end)
  2056. end
  2057. end
  2058. end)
  2059.  
  2060.  
  2061. mouse.KeyDown:connect(function(Press)
  2062. Press=Press:lower()
  2063. if Press=='f' then
  2064. if debounce then return end
  2065. if notallowedtransform then return end
  2066. debounce = true
  2067. if levitate then
  2068. levitate = false
  2069. mjester.VertexColor = Vector3.new(1, 1, 1)
  2070. glow.Transparency = 1
  2071. blastwave = Instance.new("Part",Torso)
  2072. blastwave.CFrame = Torso.CFrame
  2073. blastwave.Anchored = true
  2074. blastwave.Material = "Neon"
  2075. blastwave.CanCollide = false
  2076. blastwave.Shape = "Ball"
  2077. blastwave.Size = Vector3.new(3,3,3)
  2078. coroutine.wrap(function()
  2079. for i = 1, 20 do
  2080. levitatewave.Transparency = levitatewave.Transparency + 0.05
  2081. levitatewave2.Transparency = levitatewave2.Transparency + 0.05
  2082. blastwave.Size = blastwave.Size + Vector3.new(2,2,2)
  2083. blastwave.Transparency = blastwave.Transparency + 0.05
  2084. swait()
  2085. end
  2086. blastwave:Remove()
  2087. levitatewave2:Remove()
  2088. levitatewave:Remove()
  2089. end)()
  2090. ws = 10
  2091. notallowedtransform = true
  2092. attacking = true
  2093. coroutine.wrap(function()
  2094. for i = 1, 10 do
  2095. for i,v in pairs(LeftArm:GetChildren()) do if v.Name == lmagic.Name then
  2096. v.Transparency = v.Transparency + 0.1
  2097. end
  2098. end
  2099. for i,v in pairs(RightArm:GetChildren()) do if v.Name == rmagic.Name then
  2100. v.Transparency = v.Transparency + 0.1
  2101. end
  2102. end
  2103. wait()
  2104. end
  2105. end)()
  2106. doomtheme.SoundId = "rbxassetid://1843358057"
  2107. jesterWeld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2108. wait(0.000001)
  2109. jesterWeld.C0 = jester.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2110. mjester.Scale = Vector3.new(1.1, 1.1, 1.1)
  2111. mjester.MeshId,mjester.TextureId = 'rbxassetid://1241662062','rbxassetid://1241662395'
  2112.  
  2113. mMask.Scale = Vector3.new(0.13, 0.13, 0.1)
  2114. mMask.MeshId,mMask.TextureId = 'http://www.roblox.com/asset/?id=5158270','http://www.roblox.com/asset/?id=9543585'
  2115. maskweld.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  2116. wait(0.000001)
  2117. maskweld.C0 = CFrame.new(0,-.555,0) * CFrame.Angles(math.rad(90),0,0)
  2118.  
  2119. eyo1 = Instance.new("Part",Head)
  2120. eyo1.BrickColor = BrickColor.new("White")
  2121. eyo1.Material = "Neon"
  2122. eyo1.Shape = "Ball"
  2123. eyo1.Name = "eyo1"
  2124. eyo1.CanCollide = false
  2125. eyo1.Size = Vector3.new(0.33, 0.33, 0.33)
  2126. eyo1weld = weldBetween(eyo1,Head)
  2127. eyo1weld.C0 = CFrame.new(.215,-.05,.52)
  2128.  
  2129. light = Instance.new("PointLight", eyo1)
  2130. light.Color = Color3.new(1,1,1)
  2131. light.Range = 3
  2132. light.Brightness = 4
  2133. light.Enabled = true
  2134.  
  2135. eyo2 = Instance.new("Part",Head)
  2136. eyo2.BrickColor = BrickColor.new("White")
  2137. eyo2.Material = "Neon"
  2138. eyo2.Shape = "Ball"
  2139. eyo2.Name = "eyo2"
  2140. eyo2.CanCollide = false
  2141. eyo2.Size = Vector3.new(0.33, 0.33, 0.33)
  2142. eyo2weld = weldBetween(eyo2,Head)
  2143. eyo2weld.C0 = CFrame.new(-.215,-.05,.52)
  2144.  
  2145. light2 = Instance.new("PointLight", eyo2)
  2146. light2.Color = Color3.new(1,1,1)
  2147. light2.Range = 3
  2148. light2.Brightness = 4
  2149. light2.Enabled = true
  2150.  
  2151. Character.Shirt.ShirtTemplate = "rbxassetid://676428254"
  2152. Character.Pants.PantsTemplate = "rbxassetid://676428351"
  2153. hum.HipHeight = 0
  2154. ws = 10
  2155. debounce = false
  2156. attacking = false
  2157. coroutine.wrap(function()
  2158. wait(3)
  2159. notallowedtransform = false
  2160. end)()
  2161. else
  2162. ws = 50
  2163. notallowedtransform = true
  2164. levitate = true
  2165. ws = 50
  2166. glow.Transparency = 0
  2167. eyo1:Remove()
  2168. eyo2:Remove()
  2169. coroutine.wrap(function()
  2170. while levitate do
  2171. for i,v in pairs(Head:GetChildren()) do
  2172. if v.Name == "eyo1" or v.Name == "eyo2" then
  2173. v:Remove()
  2174. end
  2175. end
  2176. wait()
  2177. end
  2178. end)()
  2179. mnb = 0
  2180. levitatewave = Instance.new("Part", Torso)
  2181. levitatewave.Size = Vector3.new(1,1,1)
  2182. levitatewave.CanCollide = false
  2183. levitatewave.Anchored = true
  2184. levitatewave.Transparency = .5
  2185. levitatewave.BrickColor = BrickColor.new("Really black")
  2186. levitatewave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-5,0)
  2187. levitatewavemesh = Instance.new("SpecialMesh", levitatewave)
  2188. levitatewavemesh.Scale = Vector3.new(2.5,.3,2.5)
  2189. levitatewavemesh.MeshId = "rbxassetid://20329976"
  2190. levitatewave2 = Instance.new("Part", Torso)
  2191. levitatewave2.Size = Vector3.new(1,1,1)
  2192. levitatewave2.CanCollide = false
  2193. levitatewave2.Anchored = true
  2194. levitatewave2.Transparency = .5
  2195. levitatewave2.BrickColor = BrickColor.new("Really red")
  2196. levitatewave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-5,0)
  2197. levitatewavemesh2 = Instance.new("SpecialMesh", levitatewave2)
  2198. levitatewavemesh2.Scale = Vector3.new(2,.4,2)
  2199. levitatewavemesh2.MeshId = "rbxassetid://20329976"
  2200. blastwave = Instance.new("Part",Torso)
  2201. blastwave.CFrame = Torso.CFrame
  2202. blastwave.Anchored = true
  2203. blastwave.Material = "Neon"
  2204. blastwave.CanCollide = false
  2205. blastwave.Shape = "Ball"
  2206. blastwave.Size = Vector3.new(3,3,3)
  2207. coroutine.wrap(function()
  2208. for i = 1, 20 do
  2209. blastwave.Size = blastwave.Size + Vector3.new(2,2,2)
  2210. blastwave.Transparency = blastwave.Transparency + 0.05
  2211. swait()
  2212. end
  2213. blastwave:Remove()
  2214. end)()
  2215. coroutine.wrap(function()
  2216. while levitate do
  2217. mnb = mnb + 15
  2218. levitatewave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-6 + .5 * math.sin(sine/9),0) * CFrame.Angles(0,math.rad(mnb),0)
  2219. levitatewave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-6 + .5 * math.sin(sine/9),0) * CFrame.Angles(0,math.rad(mnb),0)
  2220. colors = colortable[math.random(1,#colortable)]
  2221. lmagic = Instance.new("Part",LeftArm)
  2222. lmagic.Material = "Neon"
  2223. lmagic.CanCollide = false
  2224. lmagic.Anchored = true
  2225. lmagic.BrickColor = BrickColor.new(colors)
  2226. lmagic.Size = Vector3.new(1,1,1)
  2227. lmagic.CFrame = leftlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2228. removeuseless:AddItem(lmagic,2)
  2229. rmagic = Instance.new("Part",RightArm)
  2230. rmagic.Material = "Neon"
  2231. rmagic.CanCollide = false
  2232. rmagic.Anchored = true
  2233. rmagic.BrickColor = BrickColor.new(colors)
  2234. rmagic.Size = Vector3.new(1,1,1)
  2235. rmagic.CFrame = rightlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2236. removeuseless:AddItem(rmagic,2)
  2237. for i,v in pairs(LeftArm:GetChildren()) do if v.Name == lmagic.Name then
  2238. v.Transparency = v.Transparency + 0.05
  2239. end
  2240. end
  2241. for i,v in pairs(RightArm:GetChildren()) do if v.Name == rmagic.Name then
  2242. v.Transparency = v.Transparency + 0.05
  2243. end
  2244. end
  2245. swait()
  2246. end
  2247. end)()
  2248. framee = Instance.new("Frame")
  2249. framee.Parent = screenGui
  2250. framee.Position = UDim2.new(0, 8, 0, -500)
  2251. framee.Size = UDim2.new(100000000,10000000,10000000,10000000)
  2252. framee.BackgroundColor3 = BrickColor.new("White").Color
  2253. framee.BackgroundTransparency = 0
  2254. coroutine.wrap(function()
  2255. wait(.2)
  2256. for i = 1, 40 do
  2257. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0))
  2258. framee.BackgroundTransparency = framee.BackgroundTransparency + 0.025
  2259. swait()
  2260. end
  2261. hum.CameraOffset = Vector3.new(0,0,0)
  2262. framee:Remove()
  2263. end)()
  2264. doomtheme.SoundId = "rbxassetid://1382488262"
  2265. doomtheme:Play()
  2266. doomtheme.Volume = 2
  2267. doomtheme.TimePosition = 20.7
  2268. jesterWeld.C0 = jesterWeld.C0 * CFrame.new(.3,-.3,0) * CFrame.Angles(math.rad(0),math.rad(-90),0)
  2269. mjester.MeshId = "rbxassetid://193760002"
  2270. mjester.TextureId = "rbxassetid://379225327"
  2271. mjester.VertexColor = Vector3.new(1, 0, 0)
  2272. Character.Shirt.ShirtTemplate = "rbxassetid://238537827"
  2273. Character.Pants.PantsTemplate = "rbxassetid://486031443"
  2274. maskweld.C0 = maskweld.C0 * CFrame.new(0,.55,-.5) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0))
  2275. mMask.MeshId = "rbxassetid://13520257"
  2276. mMask.Scale = Vector3.new(1.1, 1, 1)
  2277. mMask.TextureId = "rbxassetid://13520260"
  2278. eyo1:Remove()
  2279. eyo2:Remove()
  2280. coroutine.wrap(function()
  2281. while levitate do
  2282. hum.HipHeight = 3 - .5 * math.sin(sine/9)
  2283. swait()
  2284. end
  2285. end)()
  2286. attacking = false
  2287. debounce = false
  2288. coroutine.wrap(function()
  2289. wait(3)
  2290. notallowedtransform = false
  2291. end)()
  2292. end
  2293. end
  2294. end)
  2295.  
  2296. mouse.KeyDown:connect(function(Press)
  2297. Press=Press:lower()
  2298. if Press=='.' then
  2299. hum.Parent:BreakJoints()
  2300. end
  2301. end)
  2302.  
  2303. checks1 = coroutine.wrap(function() -------Checks
  2304. while true do
  2305. if Root.Velocity.y > 1 and levitate == false then
  2306. position = "Jump"
  2307. elseif Root.Velocity.y < -1 and levitate == false then
  2308. position = "Falling"
  2309. elseif Root.Velocity.Magnitude < 2 and running == false and not levitate then
  2310. position = "Idle"
  2311. elseif Root.Velocity.Magnitude < 2 and running == false then
  2312. position = "Idle2"
  2313. elseif Root.Velocity.Magnitude < 20 and running == false and levitate == false then
  2314. position = "Walking"
  2315. elseif Root.Velocity.Magnitude > 20 and running == false and levitate then
  2316. position = "Walking2"
  2317. elseif Root.Velocity.Magnitude > 20 and levitate == false then
  2318. position = "Running"
  2319. else
  2320. end
  2321. wait()
  2322. end
  2323. end)
  2324. checks1()
  2325.  
  2326. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  2327. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  2328. end
  2329.  
  2330. function ray2(StartPos, EndPos, Distance, Ignore)
  2331. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  2332. return ray(StartPos, DIRECTION, Distance, Ignore)
  2333. end
  2334.  
  2335. OrgnC0 = Neck.C0
  2336. local movelimbs = coroutine.wrap(function()
  2337. while RunSrv.RenderStepped:wait() do
  2338. TrsoLV = Torso.CFrame.lookVector
  2339. Dist = nil
  2340. Diff = nil
  2341. if not MseGuide then
  2342. print("Failed to recognize")
  2343. else
  2344. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  2345. Dist = (Head.CFrame.p-Point).magnitude
  2346. Diff = Head.CFrame.Y-Point.Y
  2347. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  2348. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  2349. Diff2 = LeftArm.CFrame.Y-Point.Y
  2350. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  2351. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  2352. end
  2353. end
  2354. end)
  2355. movelimbs()
  2356. immortal = {}
  2357. for i,v in pairs(Character:GetDescendants()) do
  2358. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  2359. if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  2360. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2361. end
  2362. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  2363. elseif v:IsA("JointInstance") then
  2364. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  2365. end
  2366. end
  2367. for e = 1, #immortal do
  2368. if immortal[e] ~= nil then
  2369. local STUFF = immortal[e]
  2370. local PART = STUFF[1]
  2371. local PARENT = STUFF[2]
  2372. local MATERIAL = STUFF[3]
  2373. local COLOR = STUFF[4]
  2374. local TRANSPARENCY = STUFF[5]
  2375. if levitate then
  2376. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  2377. PART.Material = MATERIAL
  2378. PART.Color = COLOR
  2379. PART.Transparency = TRANSPARENCY
  2380. end
  2381. PART.AncestryChanged:connect(function()
  2382. PART.Parent = PARENT
  2383. end)
  2384. else
  2385. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  2386. PART.Material = MATERIAL
  2387. PART.Color = COLOR
  2388. PART.Transparency = TRANSPARENCY
  2389. end
  2390. PART.AncestryChanged:connect(function()
  2391. PART.Parent = PARENT
  2392. end)
  2393. end
  2394. end
  2395. end
  2396. function immortality()
  2397. for e = 1, #immortal do
  2398. if immortal[e] ~= nil then
  2399. local STUFF = immortal[e]
  2400. local PART = STUFF[1]
  2401. local PARENT = STUFF[2]
  2402. local MATERIAL = STUFF[3]
  2403. local COLOR = STUFF[4]
  2404. local TRANSPARENCY = STUFF[5]
  2405. if PART.ClassName == "Part" and PART == Root then
  2406. PART.Material = MATERIAL
  2407. PART.Color = COLOR
  2408. PART.Transparency = TRANSPARENCY
  2409. end
  2410. if PART.Parent ~= PARENT then
  2411. hum:Remove()
  2412. PART.Parent = PARENT
  2413. hum = Instance.new("Humanoid",Character)
  2414. if levitate then
  2415. eyo1:Remove()
  2416. eyo2:Remove()
  2417. end
  2418. hum.Name = "noneofurbusiness"
  2419. end
  2420. end
  2421. end
  2422. end
  2423. coroutine.wrap(function()
  2424. while true do
  2425. if hum.Health < .1 then
  2426. deadsound = Instance.new("Sound", Torso)
  2427. deadsound.Volume = 6
  2428. deadsound.SoundId = "rbxassetid://1411352723"
  2429. deadsound:Play()
  2430. immortality()
  2431. end
  2432. wait()
  2433. end
  2434. end)()
  2435.  
  2436. mouse.KeyDown:connect(function(Press)
  2437. Press=Press:lower()
  2438. if Press=='g' then
  2439. if not levitate then return end
  2440. if debounce then return end
  2441. debounce = true
  2442. attacking = true
  2443. FireBall:Play()
  2444. ws = 15
  2445. g1 = Instance.new("BodyGyro", Root)
  2446. g1.D = 175
  2447. g1.P = 20000
  2448. g1.MaxTorque = Vector3.new(0,9000,0)
  2449. for i = 1, 15 do
  2450. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2451. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5)
  2452. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2453. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
  2454. swait()
  2455. end
  2456. local swoosh = Instance.new("Part",Torso)
  2457. swoosh.Name = "swoosh"
  2458. swoosh.CFrame = rightlocation.CFrame * CFrame.new(0,0,0)
  2459. swoosh.Size = Vector3.new(1.7,1.7,1.7)
  2460. swoosh.Shape = "Ball"
  2461. swoosh.Material = "Neon"
  2462. swoosh.BrickColor = BrickColor.new("Really black")
  2463. swoosh.CanCollide = false
  2464. swoosh.Touched:connect(function(hit)
  2465. if hit.Parent:IsA("Part") then
  2466. elseif hit.Parent:IsA("SpecialMesh") then
  2467. elseif hit.Parent.Name == game.Players.LocalPlayer.Name then
  2468. elseif hit.Parent:findFirstChildOfClass("Humanoid") then
  2469. Slachtoffer = hit.Parent:findFirstChildOfClass("Humanoid")
  2470. if Slachtoffer.Health < 1 then return end
  2471. if damagedebounce == true then return end
  2472. damagedebounce = true
  2473. swoosh:Remove()
  2474. explosion = Instance.new("Part",LeftArm)
  2475. explosion.CFrame = hit.CFrame
  2476. explosion.Anchored = true
  2477. explosion.CanCollide = false
  2478. explosion.Name = "explo"
  2479. explosion.Shape = "Ball"
  2480. explosion.BrickColor = swoosh.BrickColor
  2481. explosion.Material = "Neon"
  2482. vel = Instance.new("BodyVelocity",hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso"))
  2483. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  2484. torso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2485. vel.velocity = CFrame.new(swoosh.Position,torso.Position).lookVector*60
  2486. removeuseless:AddItem(vel,.1)
  2487. shockwavevv = Instance.new("Part",LeftArm)
  2488. shockwavevv.Size = Vector3.new(1,1,1)
  2489. shockwavevv.CanCollide = false
  2490. shockwavevv.Anchored = true
  2491. shockwavevv.Name = "shock"
  2492. shockwavevv.Transparency = 0
  2493. shockwavevv.BrickColor = BrickColor.new("Really black")
  2494. shockwavevv.CFrame = CFrame.new(explosion.Position) * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2495. shockwavemeshs = Instance.new("SpecialMesh", shockwavevv)
  2496. shockwavemeshs.Name = "ring"
  2497. shockwavemeshs.Scale = Vector3.new(.1,3,3)
  2498. shockwavemeshs.MeshId = "rbxassetid://3270017"
  2499. shockwave2vv = Instance.new("Part", LeftArm)
  2500. shockwave2vv.Size = Vector3.new(1,1,1)
  2501. shockwave2vv.CanCollide = false
  2502. shockwave2vv.Anchored = true
  2503. shockwave2vv.Name = "shock2"
  2504. shockwave2vv.Transparency = 0
  2505. shockwave2vv.BrickColor = BrickColor.new("Really black")
  2506. shockwave2vv.CFrame = CFrame.new(explosion.Position) * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2507. shockwavemeshs2 = Instance.new("SpecialMesh", shockwave2vv)
  2508. shockwavemeshs2.Scale = Vector3.new(.1,3,3)
  2509. shockwavemeshs2.Name = "ring2"
  2510. shockwavemeshs2.MeshId = "rbxassetid://3270017"
  2511. removeuseless:AddItem(shockwavevv,3)
  2512. removeuseless:AddItem(shockwavevv2,3)
  2513. removeuseless:AddItem(explosion,3)
  2514. SOUND(explosion,472579737,6,false,3)
  2515. coroutine.wrap(function()
  2516. if firsttime2 then return end
  2517. firsttime2 = true
  2518. while true do
  2519. for i,v in pairs(LeftArm:GetChildren()) do
  2520. if v.Name == "explo" then
  2521. v.Size = v.Size + Vector3.new(2.5,2.5,2.5)
  2522. v.Transparency = v.Transparency + .05
  2523. end
  2524. end
  2525. for i,v in pairs(shockwavevv:GetChildren()) do
  2526. if v.Name == "ring" then
  2527. v.Scale = v.Scale + Vector3.new(2.5,2.5,0)
  2528. end
  2529. end
  2530. for i,v in pairs(shockwave2vv:GetChildren()) do
  2531. if v.Name == "ring2" then
  2532. v.Scale = v.Scale + Vector3.new(2.5,2.5,0)
  2533. end
  2534. end
  2535. for i,v in pairs(LeftArm:GetChildren()) do
  2536. if v.Name == "shock" then
  2537. v.Transparency = v.Transparency + .05
  2538. end
  2539. end
  2540. for i,v in pairs(LeftArm:GetChildren()) do
  2541. if v.Name == "shock2" then
  2542. v.Transparency = v.Transparency + .05
  2543. end
  2544. end
  2545. swait()
  2546. end
  2547. end)()
  2548. Slachtoffer:TakeDamage(math.random(27,48))
  2549. wait(.1)
  2550. damagedebounce = false
  2551. end
  2552. end)
  2553. coroutine.wrap(function()
  2554. if firsttime then return end
  2555. firsttime = true
  2556. while wait() do
  2557. for i,v in pairs(Torso:GetChildren()) do
  2558. if v.Name == "swoosh" then
  2559. magiccc = Instance.new("Part",RightArm)
  2560. magiccc.Material = "Neon"
  2561. magiccc.CanCollide = false
  2562. magiccc.Anchored = true
  2563. magiccc.BrickColor = BrickColor.new(colors)
  2564. magiccc.Size = Vector3.new(1.5,1.5,1.5)
  2565. magiccc.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2566. removeuseless:AddItem(magiccc,2)
  2567. end
  2568. end
  2569. end
  2570. end)()
  2571. bov = Instance.new("BodyVelocity",swoosh)
  2572. bov.maxForce = Vector3.new(99999,99999,99999)
  2573. swoosh.CFrame = CFrame.new(swoosh.Position,mouse.Hit.p)
  2574. bov.velocity = swoosh.CFrame.lookVector*120
  2575. removeuseless:AddItem(swoosh,4)
  2576. for i = 1, 15 do
  2577. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5)
  2578. RIGHTARMLERP.C1 = CFrame.new(0,0,0)
  2579. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)), 0.5)
  2580. swait()
  2581. end
  2582. ws = 50
  2583. removeuseless:AddItem(g1,0.01)
  2584. debounce = false
  2585. attacking = false
  2586. end
  2587. end)
  2588.  
  2589. mouse.KeyDown:connect(function(Press)
  2590. Press=Press:lower()
  2591. if Press=='h' then
  2592. if not levitate then return end
  2593. if debounce then return end
  2594. debounce = true
  2595. attacking = true
  2596. ws = 0
  2597. appi = true
  2598. coroutine.wrap(function()
  2599. while appi do
  2600. swait()
  2601. if Root.Velocity.Magnitude < 2 and attacking == true then
  2602. position = "Idle3"
  2603. end
  2604. end
  2605. end)()
  2606. coroutine.wrap(function()
  2607. while appi do
  2608. swait()
  2609. settime = 0.05
  2610. sine = sine + change
  2611. if position == "Idle3" and attacking == true and appi == true then
  2612. change = .4
  2613. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  2614. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  2615. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2616. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4)
  2617. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4)
  2618. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4)
  2619. end
  2620. end
  2621. end)()
  2622. coroutine.wrap(function()
  2623. for i = 1, 20 do
  2624. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2625. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0,math.rad(50),0),.3)
  2626. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.1,1.3,1.1) * CFrame.Angles(math.rad(180),math.rad(-50),math.rad(0)), 0.3)
  2627. swait()
  2628. end
  2629. end)()
  2630. SOUND(LeftArm,1982011510,8,false,15)
  2631. blackhole={}
  2632. orbzfade={}
  2633. xz = 0
  2634. for i = 1, 220 do
  2635. xz = xz + .009
  2636. bigrmagic = Instance.new("Part",RightArm)
  2637. bigrmagic.Material = "Neon"
  2638. bigrmagic.CanCollide = false
  2639. bigrmagic.Anchored = true
  2640. bigrmagic.BrickColor = BrickColor.new(colors)
  2641. bigrmagic.Size = Vector3.new(xz,xz,xz)
  2642. bigrmagic.CFrame = rightlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2643. removeuseless:AddItem(bigrmagic,1)
  2644. orbz = Instance.new("Part", Torso)
  2645. orbz.Material = "Neon"
  2646. orbz.BrickColor = BrickColor.new(colors)
  2647. orbz.Size = Vector3.new(2,2,2)
  2648. orbz.Anchored = true
  2649. orbz.CanCollide = false
  2650. removeuseless:AddItem(orbz,1)
  2651. orbz.CFrame = rightlocation.CFrame * CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) * CFrame.Angles(math.rad(-180,180),math.rad(-180,180),math.rad(-180,180))
  2652. table.insert(blackhole,orbz)
  2653. table.insert(orbzfade,orbz)
  2654. for i,v in pairs(blackhole) do
  2655. v.Size = v.Size - Vector3.new(.1,.1,.1)
  2656. v.CFrame = v.CFrame:lerp(CFrame.new(rightlocation.Position),.09)
  2657. end
  2658. for i,v in pairs(orbzfade) do
  2659. v.Transparency = v.Transparency + 0.025
  2660. end
  2661. swait()
  2662. end
  2663. coroutine.wrap(function()
  2664. for i = 1, 10 do
  2665. for i,v in pairs(blackhole) do
  2666. v.Size = v.Size + Vector3.new(.5,.5,.5)
  2667. v.Transparency = v.Transparency + .1
  2668. end
  2669. swait()
  2670. end
  2671. for i,v in pairs(blackhole) do
  2672. v:Remove()
  2673. end
  2674. clean()
  2675. end)()
  2676. charging = true
  2677. coroutine.wrap(function()
  2678. while charging do
  2679. bigrmagic = Instance.new("Part",RightArm)
  2680. bigrmagic.Material = "Neon"
  2681. bigrmagic.CanCollide = false
  2682. bigrmagic.Anchored = true
  2683. bigrmagic.BrickColor = BrickColor.new(colors)
  2684. bigrmagic.Size = Vector3.new(xz,xz,xz)
  2685. bigrmagic.CFrame = rightlocation.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2686. removeuseless:AddItem(bigrmagic,.2)
  2687. swait()
  2688. end
  2689. end)()
  2690. g1 = Instance.new("BodyGyro", Root)
  2691. g1.D = 175
  2692. g1.P = 20000
  2693. g1.MaxTorque = Vector3.new(0,9000,0)
  2694. BigFireBall:Play()
  2695. for i = 1, 15 do
  2696. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2697. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5)
  2698. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2699. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
  2700. swait()
  2701. end
  2702. coroutine.wrap(function()
  2703. for i = 1, 15 do
  2704. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5)
  2705. RIGHTARMLERP.C1 = CFrame.new(0,0,0)
  2706. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)), 0.5)
  2707. swait()
  2708. end
  2709. end)()
  2710. charging = false
  2711. local ballzor = Instance.new("Part",Torso)
  2712. ballzor.Name = "ballzor"
  2713. ballzor.Material = "Neon"
  2714. ballzor.BrickColor = BrickColor.new("Really black")
  2715. ballzor.CanCollide = false
  2716. ballzor.Size = Vector3.new(xz,xz,xz)
  2717. ballzor.Anchored = false
  2718. ballzor.CFrame = Root.CFrame * CFrame.new(1,0,-5)
  2719. ballzor.Shape = "Ball"
  2720. removeuseless:AddItem(g1,.0001)
  2721. zx = xz + .05
  2722. coroutine.wrap(function()
  2723. if firsttime5 then return end
  2724. firsttime5 = true
  2725. while true do
  2726. swait()
  2727. for i,v in pairs(Torso:GetChildren()) do
  2728. if v.Name == "ballzor" then
  2729. magicccc = Instance.new("Part",RightArm)
  2730. magicccc.Material = "Neon"
  2731. magicccc.CanCollide = false
  2732. magicccc.Name = "magicccc"
  2733. magicccc.Anchored = true
  2734. magicccc.Transparency = 0
  2735. magicccc.BrickColor = BrickColor.new(colors)
  2736. magicccc.Size = Vector3.new(zx,zx,zx)
  2737. magicccc.CFrame = v.CFrame * CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
  2738. removeuseless:AddItem(magicccc,2)
  2739. end
  2740. end
  2741. for i,v in pairs(RightArm:GetChildren()) do
  2742. if v.Name == "magicccc" then
  2743. v.Transparency = v.Transparency + 0.025
  2744. end
  2745. end
  2746. end
  2747. end)()
  2748. ballzor.Touched:connect(function(hit)
  2749. if hit.Name ~= "magicccc" then
  2750. if bigball then return end
  2751. bigball = true
  2752. local explosionwave = Instance.new("Part",Torso)
  2753. explosionwave.Shape = "Ball"
  2754. explosionwave.BrickColor = BrickColor.new("Really black")
  2755. explosionwave.Anchored = true
  2756. explosionwave.CanCollide = false
  2757. explosionwave.Transparency = .2
  2758. explosionwave.Material = "Neon"
  2759. explosionwave.Size = Vector3.new(1,1,1)
  2760. explosionwave.CFrame = ballzor.CFrame
  2761. render = Instance.new("Sound",explosionwave)
  2762. render.SoundId = "rbxassetid://2006635781"
  2763. render.Volume = 10 * 10
  2764. render:Play()
  2765. local explosionwave2 = Instance.new("Part",Torso)
  2766. explosionwave2.Shape = "Ball"
  2767. explosionwave2.BrickColor = BrickColor.new("Really red")
  2768. explosionwave2.Anchored = true
  2769. explosionwave2.CanCollide = false
  2770. explosionwave2.Material = "Neon"
  2771. explosionwave2.Size = Vector3.new(.8,.8,.8)
  2772. explosionwave2.CFrame = ballzor.CFrame
  2773. deadlywave = Instance.new("Part", explosionwave)
  2774. deadlywave.Size = Vector3.new(1,1,1)
  2775. deadlywave.CanCollide = false
  2776. deadlywave.Anchored = true
  2777. deadlywave.Transparency = .5
  2778. deadlywave.BrickColor = BrickColor.new("Really red")
  2779. deadlywave.CFrame = CFrame.new(explosionwave.Position)
  2780. deadlywavemesh = Instance.new("SpecialMesh", deadlywave)
  2781. deadlywavemesh.Scale = Vector3.new(1,2,1)
  2782. deadlywavemesh.MeshId = "rbxassetid://20329976"
  2783. deadlywave2 = Instance.new("Part", explosionwave)
  2784. deadlywave2.Size = Vector3.new(1,1,1)
  2785. deadlywave2.CanCollide = false
  2786. deadlywave2.Anchored = true
  2787. deadlywave2.Transparency = .5
  2788. deadlywave2.BrickColor = BrickColor.new("Really black")
  2789. deadlywave2.CFrame = CFrame.new(explosionwave.Position)
  2790. deadlywave2mesh = Instance.new("SpecialMesh", deadlywave2)
  2791. deadlywave2mesh.Scale = Vector3.new(3,2,3)
  2792. deadlywave2mesh.MeshId = "rbxassetid://20329976"
  2793. deadlyring = Instance.new("Part", Torso)
  2794. deadlyring.Size = Vector3.new(5, 5, 5)
  2795. deadlyring.Transparency = 0.5
  2796. deadlyring.BrickColor = BrickColor.new("Really black")
  2797. deadlyring.Anchored = true
  2798. deadlyring.CanCollide = false
  2799. deadlyring.CFrame = deadlywave.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
  2800. deadlyringh = Instance.new("SpecialMesh", deadlyring)
  2801. deadlyringh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2802. deadlyringh.Scale = Vector3.new(8, 8, .1)
  2803. deadlyring2 = Instance.new("Part", Torso)
  2804. deadlyring2.Size = Vector3.new(5, 5, 5)
  2805. deadlyring2.Transparency = 0.5
  2806. deadlyring2.BrickColor = BrickColor.new("Really black")
  2807. deadlyring2.Anchored = true
  2808. deadlyring2.CanCollide = false
  2809. deadlyring2.CFrame = deadlywave.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
  2810. deadlyringh2 = Instance.new("SpecialMesh", deadlyring2)
  2811. deadlyringh2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2812. deadlyringh2.Scale = Vector3.new(8, 8, .1)
  2813. ballzor:Remove()
  2814. bigball = false
  2815. staybooming = true
  2816. d = 5
  2817. coroutine.wrap(function()
  2818. while staybooming do
  2819. Hit = damagealll(d,deadlywave.Position)
  2820. for _,v in pairs(Hit) do
  2821. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,20))
  2822. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  2823. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  2824. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  2825. vel.velocity = CFrame.new(deadlywave.Position,torso.Position).lookVector*50
  2826. removeuseless:AddItem(vel,.1)
  2827. end
  2828. wait(.1)
  2829. end
  2830. end)()
  2831. for i = 1, 70 do
  2832. d = d + 1
  2833. deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(.5, .5, .1)
  2834. deadlyringh.Scale = deadlyringh.Scale + Vector3.new(.5, .5, .1)
  2835. deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+7),math.rad(0-7),math.rad(0+7))
  2836. deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-7),math.rad(0+7),math.rad(0-7))
  2837. deadlywave.CFrame = deadlywave.CFrame * CFrame.Angles(0,math.rad(0+7),0)
  2838. deadlywave2.CFrame = deadlywave2.CFrame * CFrame.Angles(0,math.rad(0+4),0)
  2839. deadlywavemesh.Scale = deadlywavemesh.Scale + Vector3.new(.4,0,.4)
  2840. deadlywave2mesh.Scale = deadlywave2mesh.Scale + Vector3.new(.5,0,.5)
  2841. explosionwave.Size = explosionwave.Size + Vector3.new(.5,.5,.5)
  2842. explosionwave2.Size = explosionwave2.Size + Vector3.new(.5,.5,.5)
  2843. swait()
  2844. end
  2845. for i = 1, 80 do
  2846. d = d + 3
  2847. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  2848. deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(4, 4, .2)
  2849. deadlyringh.Scale = deadlyringh.Scale + Vector3.new(4, 4, .2)
  2850. deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+12),math.rad(0-12),math.rad(0+12))
  2851. deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-12),math.rad(0+12),math.rad(0-12))
  2852. deadlywave.CFrame = deadlywave.CFrame * CFrame.Angles(0,math.rad(0+20),0)
  2853. deadlywave2.CFrame = deadlywave2.CFrame * CFrame.Angles(0,math.rad(0+14),0)
  2854. deadlywavemesh.Scale = deadlywavemesh.Scale + Vector3.new(3,2,3)
  2855. deadlywave2mesh.Scale = deadlywave2mesh.Scale + Vector3.new(4,1,4)
  2856. explosionwave.Size = explosionwave.Size + Vector3.new(4,4,4)
  2857. explosionwave2.Size = explosionwave2.Size + Vector3.new(4,4,4)
  2858. swait()
  2859. end
  2860. staybooming = false
  2861. for i = 1, 20 do
  2862. d = d + 3
  2863. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  2864. deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(4, 4, .2)
  2865. deadlyringh.Scale = deadlyringh.Scale + Vector3.new(4, 4, .2)
  2866. deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+12),math.rad(0-12),math.rad(0+12))
  2867. deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-12),math.rad(0+12),math.rad(0-12))
  2868. deadlyring.Transparency = deadlyring.Transparency + .25
  2869. deadlyring2.Transparency = deadlyring2.Transparency + .25
  2870. deadlywave.CFrame = deadlywave.CFrame * CFrame.Angles(0,math.rad(0+20),0)
  2871. deadlywave2.CFrame = deadlywave2.CFrame * CFrame.Angles(0,math.rad(0+14),0)
  2872. deadlywavemesh.Scale = deadlywavemesh.Scale + Vector3.new(3,0,3)
  2873. deadlywave2mesh.Scale = deadlywave2mesh.Scale + Vector3.new(4,0,4)
  2874. deadlywave.Transparency = deadlywave.Transparency + .25
  2875. deadlywave2.Transparency = deadlywave2.Transparency + .25
  2876. explosionwave.Size = explosionwave.Size + Vector3.new(4,4,4)
  2877. explosionwave2.Size = explosionwave2.Size + Vector3.new(4,4,4)
  2878. explosionwave.Transparency = explosionwave.Transparency + 0.25
  2879. explosionwave2.Transparency = explosionwave2.Transparency + 0.05
  2880. swait()
  2881. end
  2882. hum.CameraOffset = Vector3.new(0,0,0)
  2883. explosionwave:Remove()
  2884. explosionwave2:Remove()
  2885. end
  2886. end)
  2887. bov = Instance.new("BodyVelocity",ballzor)
  2888. bov.maxForce = Vector3.new(99999,99999,99999)
  2889. ballzor.CFrame = CFrame.new(ballzor.Position,mouse.Hit.p)
  2890. bov.velocity = ballzor.CFrame.lookVector*200
  2891. removeuseless:AddItem(ballzor,4)
  2892. ws = 50
  2893. attacking = false
  2894. debounce = false
  2895. appi = false
  2896. end
  2897. end)
  2898.  
  2899. mouse.KeyDown:connect(function(Press)
  2900. Press=Press:lower()
  2901. if Press=='j' then
  2902. if not levitate then return end
  2903. if debounce then return end
  2904. debounce = true
  2905. charging = true
  2906. attacking = true
  2907. downpress = false
  2908. x = 1
  2909. ws = 0
  2910. g1 = Instance.new("BodyGyro", Root)
  2911. g1.D = 175
  2912. g1.P = 20000
  2913. g1.MaxTorque = Vector3.new(0,9000,0)
  2914. SOUND(RightArm,2014087015,8,false,3)
  2915. coroutine.wrap(function()
  2916. Charge = Instance.new("Sound",RightArm)
  2917. Charge.SoundId = "rbxassetid://101153932"
  2918. Charge.Looped = false
  2919. Charge.Volume = 8
  2920. Charge:Play()
  2921. end)()
  2922. appi = true
  2923. coroutine.wrap(function()
  2924. while appi do
  2925. swait()
  2926. if Root.Velocity.Magnitude < 2 and attacking == true then
  2927. position = "Idle3"
  2928. end
  2929. end
  2930. end)()
  2931. coroutine.wrap(function()
  2932. while appi do
  2933. swait()
  2934. settime = 0.05
  2935. sine = sine + change
  2936. if position == "Idle3" and attacking == true and appi == true then
  2937. change = .4
  2938. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  2939. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  2940. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2941. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4)
  2942. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4)
  2943. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4)
  2944. end
  2945. end
  2946. end)()
  2947. for i = 1, 15 do
  2948. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2949. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5)
  2950. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2951. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
  2952. swait()
  2953. end
  2954. for i = 1, 3 do
  2955. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  2956. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5)
  2957. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2958. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
  2959. x = x + .1
  2960. blastborb = Instance.new("Part",Torso)
  2961. blastborb.CFrame = rightlocation.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2962. blastborb.BrickColor = BrickColor.new(colors)
  2963. blastborb.Anchored = true
  2964. blastborb.Size = Vector3.new(10,10,10)
  2965. blastborb.CanCollide = false
  2966. blastborb.Material = "Neon"
  2967. for i = 1, 5 do
  2968. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  2969. blastborb.Size = blastborb.Size - Vector3.new(1,1,1)
  2970. swait()
  2971. end
  2972. blastborb:Remove()
  2973. swait()
  2974. end
  2975. downpress = true
  2976. while charging and x < 5 do
  2977. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  2978. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-10),math.rad(-15),math.rad(0)),.5)
  2979. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  2980. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
  2981. x = x + .1
  2982. blastborb = Instance.new("Part",Torso)
  2983. blastborb.CFrame = rightlocation.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2984. blastborb.BrickColor = BrickColor.new(colors)
  2985. blastborb.Anchored = true
  2986. blastborb.Size = Vector3.new(10,10,10)
  2987. blastborb.CanCollide = false
  2988. blastborb.Material = "Neon"
  2989. for i = 1, 5 do
  2990. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  2991. blastborb.Size = blastborb.Size - Vector3.new(1,1,1)
  2992. swait()
  2993. end
  2994. blastborb:Remove()
  2995. swait()
  2996. end
  2997. coroutine.wrap(function()
  2998. for i = 1, 20 do
  2999. Charge.Volume = Charge.Volume - .5
  3000. swait()
  3001. end
  3002. end)()
  3003. local bigswoosh = Instance.new("Part",Torso)
  3004. bigswoosh.Name = "bigswoosh"
  3005. bigswoosh.CFrame = Root.CFrame * CFrame.new(1,0,-5)
  3006. bigswoosh.Size = Vector3.new(1,1,1)
  3007. bigswoosh.Material = "Neon"
  3008. bigswoosh.Anchored = true
  3009. bigswoosh.Transparency = 1
  3010. bigswoosh.BrickColor = BrickColor.new("Really red")
  3011. bigswoosh.CanCollide = false
  3012. SOUND(bigswoosh,842332424,10,false,6)
  3013. SOUND(bigswoosh,2017948224,10,false,6)
  3014. SOUND(bigswoosh,138677306,10,false,4)
  3015. coroutine.wrap(function()
  3016. local loc1 = Instance.new("Part",bigswoosh)
  3017. loc1.CFrame = bigswoosh.CFrame * CFrame.new(-3,0,0)
  3018. loc1.Size = Vector3.new(2,2,2)
  3019. loc1.Anchored = true
  3020. loc1.Transparency = 1
  3021. loc1.CanCollide = false
  3022. local loc2 = Instance.new("Part",bigswoosh)
  3023. loc2.CFrame = bigswoosh.CFrame * CFrame.new(3,0,0)
  3024. loc2.Size = Vector3.new(2,2,2)
  3025. loc2.Anchored = true
  3026. loc2.Transparency = 1
  3027. loc2.CanCollide = false
  3028. n = 0
  3029. nb = 0
  3030. for i = 1, 125 do
  3031. n = n + x
  3032. nb = nb - x
  3033. Hit = damagealll(n,bigswoosh.Position)
  3034. for _,v in pairs(Hit) do
  3035. if x > 4.5 then
  3036. v:FindFirstChildOfClass("Humanoid").Parent:BreakJoints()
  3037. else
  3038. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(4+x,10+x))
  3039. end
  3040. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  3041. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  3042. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  3043. vel.velocity = CFrame.new(bigswoosh.Position,torso.Position).lookVector*150
  3044. removeuseless:AddItem(vel,.1)
  3045. end
  3046. local bigtrail = Instance.new("Part",LeftArm)
  3047. bigtrail.Size = bigswoosh.Size
  3048. bigtrail.BrickColor = BrickColor.new(colors)
  3049. bigtrail.Anchored = true
  3050. bigtrail.Material = "Neon"
  3051. bigtrail.CFrame = bigswoosh.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3052. bigtrail.CanCollide = false
  3053. removeuseless:AddItem(bigtrail,2)
  3054. local irritatedground = Instance.new("Part",Torso)
  3055. irritatedground.Size = Vector3.new(n*1.5,1,3*x)
  3056. irritatedground.BrickColor = BrickColor.new(colors)
  3057. irritatedground.Material = "Neon"
  3058. irritatedground.CFrame = bigswoosh.CFrame * CFrame.new(0,-6,0)
  3059. irritatedground.CanCollide = false
  3060. irritatedground.Anchored = true
  3061. removeuseless:AddItem(irritatedground,10)
  3062. local grassblocks = Instance.new("Part",Torso)
  3063. grassblocks.Size = Vector3.new(n/2,n/2,n/2)
  3064. grassblocks.Material = "Grass"
  3065. grassblocks.Anchored = true
  3066. grassblocks.Name = "grassblocks"
  3067. grassblocks.BrickColor = BrickColor.new("Bright green")
  3068. grassblocks.CFrame = loc1.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3069. removeuseless:AddItem(grassblocks,10)
  3070. local grassblocks2 = Instance.new("Part",Torso)
  3071. grassblocks2.Size = Vector3.new(n/2,n/2,n/2)
  3072. grassblocks2.Material = "Grass"
  3073. grassblocks2.Anchored = true
  3074. grassblocks2.Name = "grassblocks2"
  3075. grassblocks2.BrickColor = BrickColor.new("Bright green")
  3076. grassblocks2.CFrame = loc2.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3077. removeuseless:AddItem(grassblocks2,10)
  3078. bigswoosh.Size = bigswoosh.Size + Vector3.new(x,x,x)
  3079. loc1.CFrame = bigswoosh.CFrame * CFrame.new(n,-3,0)
  3080. loc2.CFrame = bigswoosh.CFrame * CFrame.new(nb,-3,0)
  3081. bigswoosh.CFrame = bigswoosh.CFrame * CFrame.new(0,0,-3 - x)
  3082. swait()
  3083. end
  3084. for i = 1, 20 do
  3085. bigswoosh.CFrame = bigswoosh.CFrame * CFrame.new(0,0,-3)
  3086. bigswoosh.Transparency = bigswoosh.Transparency + 0.05
  3087. swait()
  3088. end
  3089. bigswoosh:Remove()
  3090. end)()
  3091. for i = 1, 50 do
  3092. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(10),math.rad(15),math.rad(0)),.5)
  3093. RIGHTARMLERP.C1 = CFrame.new(0,0,0)
  3094. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)), 0.5)
  3095. swait()
  3096. end
  3097. ws = 50
  3098. attacking = false
  3099. debounce = false
  3100. appi = false
  3101. g1:Remove()
  3102. end
  3103. end)
  3104.  
  3105. mouse.KeyDown:connect(function(Press)
  3106. Press=Press:lower()
  3107. if Press=='k' then
  3108. if debounce then return end
  3109. debounce = true
  3110. attacking = true
  3111. charging = true
  3112. appi = true
  3113. coroutine.wrap(function()
  3114. while appi do
  3115. swait()
  3116. if Root.Velocity.Magnitude < 2 and attacking == true then
  3117. position = "Idle3"
  3118. end
  3119. end
  3120. end)()
  3121. coroutine.wrap(function()
  3122. while appi do
  3123. swait()
  3124. settime = 0.05
  3125. sine = sine + change
  3126. if position == "Idle3" and attacking == true and appi == true then
  3127. change = .4
  3128. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  3129. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  3130. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  3131. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4)
  3132. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4)
  3133. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4)
  3134. end
  3135. end
  3136. end)()
  3137. ws = 0
  3138. g1 = Instance.new("BodyGyro", Root)
  3139. g1.D = 175
  3140. g1.P = 20000
  3141. g1.MaxTorque = Vector3.new(0,9000,0)
  3142. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  3143. for i = 1, 15 do
  3144. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
  3145. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3146. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3147. swait()
  3148. end
  3149. r = 0
  3150. for i = 1, 10 do
  3151. r = r + .1
  3152. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
  3153. blass = Instance.new("Part",RightArm)
  3154. blass.Size = Vector3.new(r,r,r)
  3155. blass.Material = "Neon"
  3156. blass.CFrame = rightlocation.CFrame * CFrame.new(0,-r/1.5,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3157. blass.Anchored = true
  3158. blass.CanCollide = false
  3159. blass.BrickColor = BrickColor.new(colors)
  3160. removeuseless:AddItem(blass,2)
  3161. swait()
  3162. end
  3163. while r < 16 and charging == true do
  3164. r = r + .1
  3165. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
  3166. blass = Instance.new("Part",RightArm)
  3167. blass.Size = Vector3.new(r,r,r)
  3168. blass.Material = "Neon"
  3169. blass.CFrame = rightlocation.CFrame * CFrame.new(0,-r/1.5,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3170. blass.Anchored = true
  3171. blass.CanCollide = false
  3172. blass.BrickColor = BrickColor.new(colors)
  3173. removeuseless:AddItem(blass,2)
  3174. swait()
  3175. end
  3176. local TheBeam = Instance.new("Part",RightArm)
  3177. TheBeam.Name = "zebeam"
  3178. TheBeam.Size = Vector3.new(1,1,1)
  3179. TheBeam.Material = "Neon"
  3180. TheBeam.Shape = "Cylinder"
  3181. TheBeam.BrickColor = BrickColor.new("Really red")
  3182. TheBeam.Anchored = true
  3183. TheBeam.CanCollide = false
  3184. ws = 12
  3185. bemmo = Instance.new("Sound",RightArm)
  3186. bemmo.SoundId = "rbxassetid://1910988873"
  3187. bemmo.Volume = 8
  3188. bemmo.Looped = false
  3189. bemmo:Play()
  3190. bemmo.TimePosition = 2
  3191. for i = 1, 100 * r/3 do
  3192. if r > 15 then
  3193. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0))
  3194. end
  3195. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
  3196. local blass = Instance.new("Part",RightArm)
  3197. blass.Size = Vector3.new(r,r,r)
  3198. blass.Material = "Neon"
  3199. blass.CFrame = rightlocation.CFrame * CFrame.new(0,-r/1.5,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3200. blass.Anchored = true
  3201. blass.CanCollide = false
  3202. blass.BrickColor = BrickColor.new(colors)
  3203. removeuseless:AddItem(blass,2)
  3204. local STARTPOS = blass.CFrame*CFrame.new(0,0,0).p
  3205. local ENDHIT,ENDPOS = ray2(STARTPOS,mouse.Hit.p,650,Character)
  3206. local DISTANCE = (STARTPOS - ENDPOS).magnitude
  3207. TheBeam.CFrame = CFrame.new(STARTPOS,ENDPOS)*CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  3208. TheBeam.Size = Vector3.new(DISTANCE,r/math.random(1,2),r/math.random(1,2))
  3209. boom = Instance.new("Part",RightArm)
  3210. boom.Size = Vector3.new(r,r,r)
  3211. boom.BrickColor = BrickColor.new(colors)
  3212. boom.Anchored = true
  3213. boom.CanCollide = false
  3214. boom.Material = "Neon"
  3215. boom.CFrame = CFrame.new(ENDPOS) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3216. removeuseless:AddItem(boom,3)
  3217. boom.Touched:connect(function(getbase)
  3218. if hitdebounce then return end
  3219. hitdebounce = true
  3220. if getbase:IsA("Part") then
  3221. damagedground = Instance.new("Part",RightArm)
  3222. damagedground.Size = Vector3.new(.1,5+r,.1)
  3223. damagedground.Material = "Neon"
  3224. damagedground.CanCollide = false
  3225. damagedground.BrickColor = BrickColor.new(colors)
  3226. damagedground.Anchored = true
  3227. damagedground.CFrame = boom.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3228. removeuseless:AddItem(damagedground,2)
  3229. wait(.1)
  3230. hitdebounce = false
  3231. end
  3232. end)
  3233. Hit = damagealll(r+3,boom.Position)
  3234. for _,v in pairs(Hit) do
  3235. v:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(r/1.1,r))
  3236. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  3237. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  3238. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  3239. vel.velocity = CFrame.new(boom.Position,torso.Position).lookVector*r
  3240. removeuseless:AddItem(vel,.1)
  3241. end
  3242. swait()
  3243. end
  3244. removeuseless:AddItem(g1,.001)
  3245. coroutine.wrap(function()
  3246. for i = 1, 20 do
  3247. bemmo.Volume = bemmo.Volume - 0.5
  3248. blass.Transparency = blass.Transparency + 0.05
  3249. TheBeam.Transparency = TheBeam.Transparency + 0.05
  3250. swait()
  3251. end
  3252. bemmo:Remove()
  3253. if r > 15 then
  3254. hum.CameraOffset = Vector3.new(0,0,0)
  3255. end
  3256. blass:Remove()
  3257. TheBeam:Remove()
  3258. end)()
  3259. ws = 50
  3260. appi = false
  3261. attacking = false
  3262. debounce = false
  3263. end
  3264. end)
  3265.  
  3266. mouse.KeyUp:connect(function(Press)
  3267. Press=Press:lower()
  3268. if Press=='j' then
  3269. charging = false
  3270. end
  3271. end)
  3272.  
  3273. mouse.KeyUp:connect(function(Press)
  3274. Press=Press:lower()
  3275. if Press=='k' then
  3276. charging = false
  3277. end
  3278. end)
  3279.  
  3280. doit = coroutine.wrap(function()
  3281. while true do
  3282. for _,v in pairs(Repeater) do
  3283. v.Scale = v.Scale + Vector3.new(1, 1, 1)
  3284. end
  3285.  
  3286. for _,v in pairs(openshocktable) do
  3287. v.Scale = v.Scale + Vector3.new(3, 3, 3)
  3288. end
  3289.  
  3290. for _,v in pairs(nonmeshRepeater) do
  3291. v.Size = v.Size + Vector3.new(2, 2, 2)
  3292. end
  3293.  
  3294. for _,v in pairs(Extreme) do
  3295. v.Size = v.Size + Vector3.new(6, 6, 6)
  3296. end
  3297.  
  3298. for _,v in pairs(LessSize) do
  3299. v.Size = v.Size - Vector3.new(1, 1, 1)
  3300. end
  3301.  
  3302. for _,v in pairs(nonmeshRepeater2) do
  3303. v.Transparency = v.Transparency + 0.05
  3304. end
  3305.  
  3306. for _,v in pairs(Repeater2) do
  3307. v.Transparency = v.Transparency - 0.05
  3308. end
  3309.  
  3310. for _,v in pairs(th1) do
  3311. v.CFrame = v.CFrame * CFrame.new(0,0+.3,0) * CFrame.Angles(0,math.rad(0+8),0)
  3312. end
  3313.  
  3314. for _,v in pairs(th2) do
  3315. v.CFrame = v.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(0+15),0)
  3316. end
  3317.  
  3318. for _,v in pairs(th3) do
  3319. v.Scale = v.Scale + Vector3.new(2, 2, 2)
  3320. end
  3321.  
  3322. for _,v in pairs(th5) do
  3323. v.Scale = v.Scale + Vector3.new(1, .1, 1)
  3324. end
  3325.  
  3326. for _,v in pairs(ExtremeM) do
  3327. v.Size = v.Size + Vector3.new(8, 8, 8)
  3328. end
  3329.  
  3330. for _,v in pairs(m3) do
  3331. v.Scale = v.Scale + Vector3.new(.2,.2,.2)
  3332. end
  3333.  
  3334. for _,v in pairs(ExtremeM2) do
  3335. v.Size = v.Size - Vector3.new(2,2,2)
  3336. end
  3337.  
  3338. for _,v in pairs(keyYsize) do
  3339. v.Scale = v.Scale + Vector3.new(8, 8, 1)
  3340. end
  3341.  
  3342. for _,v in pairs(th4) do
  3343. v.Transparency = v.Transparency + 0.009
  3344. v.Rotation = v.Rotation + Vector3.new(3,0,0)
  3345. end
  3346.  
  3347. for _,v in pairs(SlowlyFade) do
  3348. v.Transparency = v.Transparency + 0.05
  3349. end
  3350.  
  3351. for _,v in pairs(keyYtransparency) do
  3352. v.Transparency = v.Transparency + 0.05
  3353. end
  3354.  
  3355. for _,v in pairs(UpMover) do
  3356. v.Position = v.Position + Vector3.new(0, 3, 0)
  3357. end
  3358.  
  3359. for _,v in pairs(ForwardMover) do
  3360. v.CFrame = v.CFrame * CFrame.new(0, 0, 2.4 +(i/.1)) * CFrame.Angles(0, 0, math.rad(0))
  3361. end
  3362.  
  3363. for _,v in pairs(FadeIn) do
  3364. v.Transparency = v.Transparency - .05
  3365. end
  3366.  
  3367. for _,v in pairs(signtransparency) do
  3368. v.TextTransparency = v.TextTransparency + 0.025
  3369. end
  3370.  
  3371. for _,v in pairs(signmover) do
  3372. v.StudsOffset = v.StudsOffset + Vector3.new(math.random(-2,2),.3,math.random(-2,2))
  3373. end
  3374.  
  3375. for _,v in pairs(signrotator) do
  3376. v.Rotation = v.Rotation + 2
  3377. end
  3378. swait()
  3379. end
  3380. end)
  3381. doit()
  3382. t = 0
  3383.  
  3384. mouse.KeyDown:connect(function(Press)
  3385. Press=Press:lower()
  3386. if Press=='0' then
  3387. if levitate then return end
  3388. shoov = true
  3389. if debounce then return end
  3390. ws = 50
  3391. end
  3392. end)
  3393.  
  3394. mouse.KeyUp:connect(function(Press)
  3395. Press=Press:lower()
  3396. if Press=='0' then
  3397. if levitate then return end
  3398. shoov = false
  3399. if debounce then return end
  3400. ws = 10
  3401. end
  3402. end)
  3403.  
  3404.  
  3405. local anims = coroutine.wrap(function()
  3406. while true do
  3407. settime = 0.05
  3408. sine = sine + change
  3409. if position == "Jump" and attacking == false then
  3410. change = 1
  3411. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3412. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  3413. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  3414. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  3415. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  3416. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  3417. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(3),math.rad(4)), 0.4)
  3418. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3419. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  3420. elseif position == "Jump2" and attacking == false and levitate then
  3421. change = 1
  3422. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  3423. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  3424. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  3425. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  3426. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  3427. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  3428. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  3429. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  3430. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  3431. elseif position == "Falling" and attacking == false and levitate == false then
  3432. change = 1
  3433. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3434. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  3435. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  3436. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  3437. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  3438. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  3439. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  3440. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.2)
  3441. elseif position == "Falling2" and attacking == false and levitate then
  3442. change = 1
  3443. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  3444. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  3445. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  3446. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  3447. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  3448. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  3449. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  3450. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  3451. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  3452. elseif position == "Walking" and attacking == false and running == false then
  3453. change = 1
  3454. walking = true
  3455. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3456. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  3457. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  3458. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  3459. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  3460. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  3461. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3)
  3462. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + RightLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  3463. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) + LeftLeg.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.3)
  3464. elseif position == "Idle" and attacking == false and running == false and not levitate then
  3465. change = .5
  3466. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1)
  3467. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - 1 * math.sin(sine/12)),math.rad(40 - 2 * math.sin(sine/12))), 0.1)
  3468. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.1)
  3469. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + 1 * math.sin(sine/12)),math.rad(-40 + 2 * math.sin(sine/12))), 0.1)
  3470. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.1)
  3471. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  3472. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  3473. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3474. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  3475. elseif position == "Idle2" and attacking == false and running == false then
  3476. change = .75
  3477. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1)
  3478. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  3479. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  3480. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  3481. RIGHTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  3482. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4)
  3483. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4)
  3484. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4)
  3485. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4)
  3486. elseif position == "Walking2" and attacking == false and running == false then
  3487. ws = 50
  3488. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  3489. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  3490. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  3491. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  3492. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(-.2,1.2,-.3),.3)
  3493. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  3494. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  3495. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  3496. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  3497. elseif position == "Running" and attacking == false then
  3498. change = 1
  3499. RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(1.24+.6*math.sin(sine/4)/1.4, 0.54, 0+0.8*math.sin(sine/4)) * CFrame.Angles(math.rad(6-140*math.sin(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.sin(sine/4))), 0.3)
  3500. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  3501. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
  3502. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3503. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
  3504. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  3505. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
  3506. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  3507. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
  3508. end
  3509. swait()
  3510. end
  3511. end)
  3512. anims()
  3513. warn("Prepare for a magic trick full of pain and regret. Made by Supr14")
  3514.  
  3515. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3516. local Player,game,owner = owner,game
  3517. local RealPlayer = Player
  3518. do
  3519. print("FE Compatibility code by Mokiros")
  3520. local rp = RealPlayer
  3521. script.Parent = rp.Character
  3522.  
  3523. --RemoteEvent for communicating
  3524. local Event = Instance.new("RemoteEvent")
  3525. Event.Name = "UserInput_Event"
  3526.  
  3527. --Fake event to make stuff like Mouse.KeyDown work
  3528. local function fakeEvent()
  3529. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  3530. t.connect = t.Connect
  3531. return t
  3532. end
  3533.  
  3534. --Creating fake input objects with fake variables
  3535. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  3536. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  3537. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  3538. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  3539. end}
  3540. --Merged 2 functions into one by checking amount of arguments
  3541. CAS.UnbindAction = CAS.BindAction
  3542.  
  3543. --This function will trigger the events that have been :Connect()'ed
  3544. local function te(self,ev,...)
  3545. local t = m[ev]
  3546. if t and t._fakeEvent then
  3547. for _,f in pairs(t.Functions) do
  3548. f(...)
  3549. end
  3550. end
  3551. end
  3552. m.TrigEvent = te
  3553. UIS.TrigEvent = te
  3554.  
  3555. Event.OnServerEvent:Connect(function(plr,io)
  3556. if plr~=rp then return end
  3557. m.Target = io.Target
  3558. m.Hit = io.Hit
  3559. if not io.isMouse then
  3560. local b = io.UserInputState == Enum.UserInputState.Begin
  3561. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  3562. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  3563. end
  3564. for _,t in pairs(CAS.Actions) do
  3565. for _,k in pairs(t.Keys) do
  3566. if k==io.KeyCode then
  3567. t.Function(t.Name,io.UserInputState,io)
  3568. end
  3569. end
  3570. end
  3571. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  3572. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  3573. end
  3574. end)
  3575. Event.Parent = NLS([==[
  3576. local Player = game:GetService("Players").LocalPlayer
  3577. local Event = script:WaitForChild("UserInput_Event")
  3578.  
  3579. local Mouse = Player:GetMouse()
  3580. local UIS = game:GetService("UserInputService")
  3581. local input = function(io,a)
  3582. if a then return end
  3583. --Since InputObject is a client-side instance, we create and pass table instead
  3584. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  3585. end
  3586. UIS.InputBegan:Connect(input)
  3587. UIS.InputEnded:Connect(input)
  3588.  
  3589. local h,t
  3590. --Give the server mouse data 30 times every second, but only if the values changed
  3591. --If player is not moving their mouse, client won't fire events
  3592. while wait(1/30) do
  3593. if h~=Mouse.Hit or t~=Mouse.Target then
  3594. h,t=Mouse.Hit,Mouse.Target
  3595. Event:FireServer({isMouse=true,Target=t,Hit=h})
  3596. end
  3597. end]==],Player.Character)
  3598.  
  3599. ----Sandboxed game object that allows the usage of client-side methods and services
  3600. --Real game object
  3601. local _rg = game
  3602.  
  3603. --Metatable for fake service
  3604. local fsmt = {
  3605. __index = function(self,k)
  3606. local s = rawget(self,"_RealService")
  3607. if s then return s[k] end
  3608. end,
  3609. __newindex = function(self,k,v)
  3610. local s = rawget(self,"_RealService")
  3611. if s then s[k]=v end
  3612. end,
  3613. __call = function(self,...)
  3614. local s = rawget(self,"_RealService")
  3615. if s then return s(...) end
  3616. end
  3617. }
  3618. local function FakeService(t,RealService)
  3619. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  3620. return setmetatable(t,fsmt)
  3621. end
  3622.  
  3623. --Fake game object
  3624. local g = {
  3625. GetService = function(self,s)
  3626. return self[s]
  3627. end,
  3628. Players = FakeService({
  3629. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  3630. },"Players"),
  3631. UserInputService = FakeService(UIS,"UserInputService"),
  3632. ContextActionService = FakeService(CAS,"ContextActionService"),
  3633. }
  3634. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  3635. g.service = g.GetService
  3636.  
  3637. g.RunService = FakeService({
  3638. RenderStepped = _rg:GetService("RunService").Heartbeat,
  3639. BindToRenderStep = function(self,name,_,fun)
  3640. self._btrs[name] = self.Heartbeat:Connect(fun)
  3641. end,
  3642. UnbindFromRenderStep = function(self,name)
  3643. self._btrs[name]:Disconnect()
  3644. end,
  3645. },"RunService")
  3646.  
  3647. setmetatable(g,{
  3648. __index=function(self,s)
  3649. return _rg:GetService(s) or typeof(_rg[s])=="function"
  3650. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  3651. end,
  3652. __newindex = fsmt.__newindex,
  3653. __call = fsmt.__call
  3654. })
  3655. --Changing owner to fake player object to support owner:GetMouse()
  3656. game,owner = g,g.Players.LocalPlayer
  3657. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement