Advertisement
Christoffer07700Extr

My First ABD Spec Script/Dark Oni/I Hope It Works

Sep 10th, 2020 (edited)
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.57 KB | None | 0 0
  1. -local mystand = nil
  2. for i,v in pairs(game:GetService("Lighting"):GetChildren())do
  3. for i,v2 in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren())do
  4. if v:IsA("LocalScript") and v2:IsA("LocalScript") then
  5. if v.Name == v2.Name then
  6. mystand = v2.Name
  7. end
  8. end
  9. end
  10. end
  11.  
  12. game.Players.LocalPlayer.Character[mystand]:Destroy()
  13.  
  14. --Events
  15. local replicatedstorage = game:GetService("ReplicatedStorage")
  16. local standevent = replicatedstorage.Oni
  17. local fireevent = replicatedstorage.FireLimb
  18. local damageevent = replicatedstorage.Damage
  19. local damageevent2 = replicatedstorage.BurnDamage
  20. local blockevent = replicatedstorage.Block
  21. local strongpunchevent = replicatedstorage.PlayerStrongPunch2
  22. local axekickevent = replicatedstorage.AxeKick
  23. local dodgeevent = replicatedstorage.Dodge2
  24. local dodgeevent2 = replicatedstorage.Dodge3
  25. local shadowevent = replicatedstorage.Shadow
  26. local anchorevent = replicatedstorage.Anchor
  27. local timestopevent = replicatedstorage.Timestop
  28. local untimestopevent = replicatedstorage.Untimestop
  29. local trailevent = replicatedstorage.Trail
  30. local velocityevent = replicatedstorage.Velocity
  31. local backwardslamevent = replicatedstorage.BackwardSlam
  32. local knockevent = replicatedstorage.Knock
  33. local knockclientevent = replicatedstorage.KnockClient
  34. local getupevent = replicatedstorage.GetUp
  35. local berserkclientevent = replicatedstorage.BerserkClient
  36. local jumpevent = replicatedstorage.Jump
  37. local poseevent = replicatedstorage.Menacing
  38. local blastevent = replicatedstorage.OHBlast
  39. local FireBallevent = replicatedstorage.FireBall
  40.  
  41. lolocal plr = game:GetService("Players").LocalPlayer
  42. repeat
  43. wait()
  44. until plr.Character and plr.Character.Humanoid
  45. local chr = plr.Character
  46. local human = chr.Humanoid
  47. local hrp = chr.HumanoidRootPart
  48. mouse = plr:GetMouse()
  49. cam = workspace.CurrentCamera
  50.  
  51. --standevent:FireServer()
  52. human.WalkSpeed = 16
  53. human.JumpPower = 50
  54.  
  55. --Values
  56. local activu = false
  57.  
  58. local head = chr["Head"]
  59. local ntorso = chr["Torso"]
  60. local rightarm = chr["Right Arm"]
  61. local leftarm = chr["Left Arm"]
  62. local rightleg = chr["Right Leg"]
  63. local leftleg = chr["Left Leg"]
  64. local rot = chr["HumanoidRootPart"]
  65.  
  66. function makemotor(parent, p0, p1, c0, c1)
  67. local wel = Instance.new("Motor6D")
  68. wel.Part0 = p0
  69. wel.Part1 = p1
  70. if c0 ~= nil then
  71. wel.C0 = c0
  72. end
  73. if c1 ~= nil then
  74. wel.C1 = c1
  75. end
  76. wel.Parent = parent
  77. return wel
  78. end
  79.  
  80. local stand = chr:WaitForChild("Stand")
  81. local disabled = Instance.new("BoolValue",chr)
  82. disabled.Value = false
  83.  
  84. --Animation
  85. local anim1 = Instance.new("Animation") -- roll or dash
  86. anim1.AnimationId = "rbxassetid://3446222065"
  87.  
  88. local anim6 = Instance.new("Animation") -- axe kick
  89. anim6.AnimationId = "rbxassetid://3445853933"
  90.  
  91. local anim7 = Instance.new("Animation") -- barrage
  92. anim7.AnimationId = "rbxassetid://3445788051"
  93.  
  94. local anim4 = Instance.new("Animation") -- right punch
  95. anim4.AnimationId = "rbxassetid://3445790486"
  96.  
  97. local anim5 = Instance.new("Animation") -- left punch
  98. anim5.AnimationId = "rbxassetid://3445791481"
  99.  
  100. local anim3 = Instance.new("Animation") -- strong punch
  101. anim3.AnimationId = "rbxassetid://3445851410"
  102.  
  103. local anim2 = Instance.new("Animation") -- block
  104. anim2.AnimationId = "rbxassetid://3445824199"
  105.  
  106. local Pose1 = Instance.new("Animation") -- pose
  107. Pose1.AnimationId = "rbxassetid://4860557711"
  108.  
  109. local anim8 = Instance.new("Animation") -- kick
  110. anim8.AnimationId = "rbxassetid://3445855469"
  111.  
  112. local anim9 = Instance.new("Animation") -- flip
  113. anim9.AnimationId = "rbxassetid://3445856941"
  114.  
  115. local anim10 = Instance.new("Animation") -- spaceripper
  116. anim10.AnimationId = "rbxassetid://4817900837"
  117.  
  118. local anim11 = Instance.new("Animation") -- shiny
  119. anim11.AnimationId = "rbxassetid://4857013285"
  120.  
  121. local anim12 = Instance.new("Animation") -- standjump
  122. anim12.AnimationId = "rbxassetid://4810141046"
  123.  
  124. local anim13 = Instance.new("Animation") -- slam
  125. anim13.AnimationId = "rbxassetid://4845818209"
  126.  
  127. local anim14 = Instance.new("Animation") -- blastfire
  128. anim14.AnimationId = "rbxassetid://4554563880"
  129.  
  130. local barrageanim = human:LoadAnimation(anim7)
  131. local strongpunchanim = human:LoadAnimation(anim3)
  132. local rightpunchanim = human:LoadAnimation(anim4)
  133. local leftpunchanim = human:LoadAnimation(anim5)
  134. local rollanim = human:LoadAnimation(anim1)
  135. local axekickanim = human:LoadAnimation(anim6)
  136. local blockanim = human:LoadAnimation(anim2)
  137. local pose1 = human:LoadAnimation(Pose1)
  138. local pose2 = human:LoadAnimation(Pose1)
  139. local kickanim = human:LoadAnimation(anim8)
  140. local flipanim = human:LoadAnimation(anim9)
  141. local spaceripperanim = human:LoadAnimation(anim10)
  142. local shinyanim = human:LoadAnimation(anim11)
  143. local standjumpanim = human:LoadAnimation(anim12)
  144. local slamanim = human:LoadAnimation(anim13)
  145. local blastfireanim = human:LoadAnimation(anim14)
  146.  
  147. pose1.Looped = true
  148. pose1.Priority = "Idle"
  149. pose2.Looped = true
  150. pose2.Priority = "Idle"
  151.  
  152. --Sound
  153. local dodgesfx
  154.  
  155. if ntorso:FindFirstChild"Dodge" then
  156. dodgesfx = ntorso.Dodge
  157. dodgesfx.SoundId = "rbxassetid://1145251796"
  158. else
  159. dodgesfx = Instance.new("Sound",chr)
  160. dodgesfx.SoundId = "rbxassetid://1145251796"
  161. dodgesfx.Volume = 5
  162. end
  163.  
  164. local punchsfx
  165. if ntorso:FindFirstChild"Swing" then
  166. punchsfx = ntorso.Swing
  167. punchsfx.SoundId = "rbxassetid://200632136"
  168. else
  169. punchsfx = Instance.new("Sound",chr)
  170. punchsfx.SoundId = "rbxassetid://200632136"
  171. punchsfx.Volume = 2.5
  172. end
  173. local heavypunchsfx
  174. if ntorso:FindFirstChild"HeavyPunch" then
  175. heavypunchsfx = ntorso.HeavyPunch
  176. heavypunchsfx.SoundId = "rbxassetid://955633944"
  177. else
  178. heavypunchsfx = Instance.new("Sound",chr)
  179. heavypunchsfx.SoundId = "rbxassetid://955633944"
  180. heavypunchsfx.Volume = 5
  181. end
  182.  
  183. local blastsfx
  184. if ntorso:FindFirstChild"HeavyPunch" then
  185. blastsfx = ntorso.HeavyPunch
  186. blastfx.SoundId = "rbxassetid://159218913"
  187. else
  188. blastsfx = Instance.new("Sound",chr)
  189. blastsfx.SoundId = "rbxassetid://159218913"
  190. blastsfx.Volume = 3
  191. end
  192. local stingyeyesfx
  193. if ntorso:FindFirstChild"HeavyPunch" then
  194. stingyeyesfx = ntorso.HeavyPunch
  195. stingyeyesfx.SoundId = "rbxassetid://182755400"
  196. else
  197. stingyeyesfx= Instance.new("Sound",chr)
  198. stingyeyesfx.SoundId = "rbxassetid://182755400"
  199. stingyeyesfx.Volume = 5
  200. end
  201.  
  202. local rushsfx
  203. if ntorso:FindFirstChild"Rush" then
  204. rushsfx = ntorso.Rush
  205. rushsfx.SoundId = "rbxassetid://1150867044"
  206. else
  207. rushsfx = Instance.new("Sound",chr)
  208. rushsfx.SoundId = "rbxassetid://1150867044"
  209. rushsfx.Volume = 2.5
  210. end
  211.  
  212. local blocksfx = dodgesfx
  213.  
  214.  
  215. local posing = false
  216. local appeared = true
  217. function posefunc()
  218. if activu == false and posing == false then
  219. if appeared == false then
  220. return
  221. end
  222. if posing == false then do
  223. activu = true
  224. posing = true
  225. local cp = math.random(1, 2)
  226. if cp == 1 then
  227. pose1:Play(0.1, 1, 1)
  228. elseif cp == 2 then
  229. pose2:Play(0.1, 1, 1)
  230. end
  231. human.WalkSpeed = 0
  232. human.JumpPower = 0
  233. poseevent:FireServer(true)
  234. end
  235. end
  236. elseif posing == true then
  237. pose1:Stop(0.3)
  238. pose2:Stop(0.3)
  239. if disabled.Value == false then
  240. human.WalkSpeed = 16
  241. human.JumpPower = 50
  242. elseif disabled.Value == true then
  243. human.WalkSpeed = 4
  244. human.JumpPower = 10
  245. end
  246. activu = false
  247. posing = false
  248. poseevent:FireServer(false)
  249. end
  250. end
  251.  
  252. function block()
  253. if activu == true then return end
  254. activu = true
  255. local bep = true
  256. local de = mouse.KeyUp:connect(function(key)
  257. if key == "x" then
  258. bep = false
  259. end
  260. end)
  261. blockanim:Play(0.1, 1,1)
  262. blockevent:FireServer(true)
  263. blocksfx:Play()
  264. human.JumpPower = 0
  265. repeat
  266. wait()
  267. until bep == false
  268. blockevent:FireServer(false)
  269. blockanim:Stop(0.1)
  270. human.JumpPower = 50
  271. activu = false
  272. end
  273. local shinybladecooldown = false
  274. function shinyblade()
  275. if activu == true then return end
  276. if shinybladecooldown == true then return end
  277. shinybladecooldown = true
  278. shinybladeanim:Play()
  279. wait(0.5)
  280. shinybladeanim:Stop()
  281. human.WalkSpeed = 43
  282. human.JumpPower = 70
  283. damagemultiplier = 2
  284. wait(35)
  285. human.WalkSpeed = 31
  286. human.JumpPower = 69
  287. damagemultiplier = 2
  288. wait(37)
  289. shinybladecooldown = false
  290. end
  291. local EHMMM = 0
  292. local barragecooldown = false
  293. function barrage()
  294. if activu == true then return end
  295. if barragecooldown == true then return end
  296. activu = true
  297. barragecooldown = true
  298. local bep = true
  299. local de = mouse.KeyUp:connect(function(key)
  300. if key == "e" then
  301. bep = false
  302. end
  303. end)
  304. trailevent:FireServer(stand.StandRarm.Trail, true)
  305. trailevent:FireServer(stand.StandLarm.Trail, true)
  306. barrageanim:Play(0.1, 1, 1.5)
  307. rushsfx:Play()
  308. human.JumpPower = 50
  309. repeat
  310. EHMMM = EHMMM + 0.5
  311. hito2(rightarm, rightarm.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,2, 7, 0.05, 0.25, rot.CFrame.lookVector * 5, "rbxassetid://241837157", 0.5, Color3.fromRGB(177, 85, 255),"rbxassetid://542443306", math.random(9, 11) / 10, math.random(9, 11) / 35)
  312. hito2(leftarm, leftarm.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,2, 7, 0.05, 0.25, rot.CFrame.lookVector * 5, "rbxassetid://241837157", 0.5, Color3.fromRGB(177, 85, 255),"rbxassetid://542443306", math.random(9, 11) / 10, math.random(9, 11) / 35)
  313. wait(0.05)
  314. until bep == false or disabled.Value == true or EHMMM >= 376
  315. EHMMM = 0
  316. rushsfx:Stop()
  317. human.JumpPower = 50
  318. barrageanim:Stop(0.1)
  319. trailevent:FireServer(stand.StandRarm.Trail, false)
  320. trailevent:FireServer(stand.StandLarm.Trail, false)
  321. activu = false
  322. wait(5)
  323. barragecooldown = false
  324. end
  325. local leftorright = false
  326. function punch()
  327. if activu == true then return end
  328. activu = true
  329. punchsfx:Play()
  330. human.JumpPower = 0
  331. if leftorright == false then
  332. leftorright = true
  333. rightpunchanim:Play(0.1, 1, 1.5)
  334. fireevent:FireServer(chr.FireRightArm, true)
  335. wait(0.15)
  336. coroutine.resume(coroutine.create(function()
  337. for _ = 1, 5 do
  338. wait()
  339. hito(rightarm, rightarm.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,2.5, 8, 0.2, 0.25, rot.CFrame.lookVector * 10, "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://260430079", math.random(9, 11) / 10, 2)
  340. end
  341. end))
  342. elseif leftorright == true then
  343. leftorright = false
  344. leftpunchanim:Play(0.1, 1, 1.5)
  345. fireevent:FireServer(chr.FireLeftArm, true)
  346. wait(0.15)
  347. coroutine.resume(coroutine.create(function()
  348. for _ = 1, 5 do
  349. wait()
  350. hito(leftarm, leftarm.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,2.5, 8, 0.2, 0.25, rot.CFrame.lookVector * 10, "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://260430079", math.random(9, 11) / 10, 2)
  351. end
  352. end))
  353. end
  354. wait(0.2)
  355. activu = false
  356. human.JumpPower = 50
  357. fireevent:FireServer(chr.FireRightArm, false)
  358. fireevent:FireServer(chr.FireLeftArm, false)
  359. end
  360. local legbreakercooldown = false
  361. function legbreaker()
  362. if activu == true then return end
  363. if legbreakercooldown == true then return end
  364. activu = true
  365. legbreakercooldown = true
  366. legbreakeranim:Play(0.1, 1, 1)
  367. fireevent:FireServer(chr.FireRightLeg, true)
  368. human.JumpPower = 0
  369. wait(0.1)
  370. demonsfx:Play()
  371. wait(0.3)
  372. punchsfx:Play()
  373. coroutine.resume(coroutine.create(function()
  374. for _ = 1, 10 do
  375. wait()
  376. hito2(rightleg, rightleg.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) , 5, 39, 0.6, 0.25, rot.CFrame.lookVector * 5, "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://386946017", math.random(9, 11) / 10, math.random(9, 11) / 10)
  377. end
  378. end))
  379. wait(0.25)
  380. fireevent:FireServer(chr.FireRightLeg, false)
  381. human.JumpPower = 50
  382. activu = false
  383. wait(3)
  384. legbreakercooldown = false
  385. end
  386. local strongpunchcooldown = false
  387. function strongpunch()
  388. if activu == true then return end
  389. if strongpunchcooldown == true then return end
  390. activu = true
  391. strongpunchcooldown = true
  392. punchsfx:Play()
  393. human.JumpPower = 0
  394. strongpunchanim:Play(0.1, 1, 1)
  395. fireevent:FireServer(chr.FireRightArm, true)
  396. local boopyve = Instance.new("BodyVelocity")
  397. boopyve.MaxForce = Vector3.new(100000, 0, 100000)
  398. boopyve.P = math.huge
  399. boopyve.Velocity = hrp.CFrame.lookVector * 17.5
  400. boopyve.Parent = chr.HumanoidRootPart
  401. demonsfx:Play()
  402. local bep = true
  403. coroutine.resume(coroutine.create(function()
  404. repeat
  405. wait()
  406. boopyve.Velocity = hrp.CFrame.lookVector * 17.5
  407. until bep == false
  408. end))
  409. wait(0.15)
  410. coroutine.resume(coroutine.create(function()
  411. for _ = 1, 8 do
  412. wait()
  413. hito2(rightarm, rightarm.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,5, 37, 0.375, 0.25, rot.CFrame.lookVector * 20, "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://260430079", math.random(9, 11) / 10, math.random(9, 11) / 10)
  414. end
  415. end))
  416. wait(0.35)
  417. strongpunchevent:FireServer(Vector3.new(1, 0.5, 1), Vector3.new(0.3, 0.15, 0.3), BrickColor.new("Black"))
  418. coroutine.resume(coroutine.create(function()
  419. for _ = 1, 8 do
  420. wait()
  421. hito3(rightarm, rightarm.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,5, 37, 0.375, 0.25, Vector3.new(0, 50, 0), "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://260430079", math.random(9, 11) / 10, math.random(9, 11) / 10)
  422. end
  423. end))
  424. wait(0.5)
  425. bep = false
  426. boopyve:Destroy()
  427. fireevent:FireServer(chr.FireRightArm, false)
  428. activu = false
  429. human.JumpPower = 50
  430. wait(2.45)
  431. strongpunchcooldown = false
  432. end
  433. local axekickcooldown = false
  434. function axekick()
  435. if activu == true then return end
  436. if axekickcooldown == true then return end
  437. activu = true
  438. axekickcooldown = true
  439. punchsfx:Play()
  440. axekickanim:Play(0.1, 1, 1)
  441. fireevent:FireServer(chr.FireRightLeg, true)
  442. human.JumpPower = 0
  443. demonsfx:Play()
  444. wait(0.35)
  445. axekickevent:FireServer()
  446. coroutine.resume(coroutine.create(function()
  447. for _ = 1, 10 do
  448. wait()
  449. hito4(rightleg, rightleg.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) , 19.5, 20, 0.4, 0.25, rot.CFrame.lookVector * 50, "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://260430079", math.random(9, 11) / 10, math.random(9, 11) / 10)
  450. end
  451. end))
  452. wait(0.25)
  453. fireevent:FireServer(chr.FireRightLeg, false)
  454. human.JumpPower = 50
  455. activu = false
  456. wait(2)
  457. axekickcooldown = false
  458. end
  459. local flipcooldown = false
  460. function flip()
  461. if activu == true then return end
  462. if flipcooldown == true then return end
  463. activu = true
  464. flipcooldown = true
  465. punchsfx:Play()
  466. human.JumpPower = 0
  467. flipanim:Play(0.1, 1, 1)
  468. fireevent:FireServer(chr.FireRightArm, true)
  469. fireevent:FireServer(chr.FireLeftArm, true)
  470. fireevent:FireServer(chr.FireRightLeg, true)
  471. fireevent:FireServer(chr.FireRightLeg, true)
  472. demonsfx:Play()
  473. shadowevent:FireServer()
  474. local boopyve = Instance.new("BodyVelocity")
  475. boopyve.MaxForce = Vector3.new(100000, 0, 100000)
  476. boopyve.P = math.huge
  477. boopyve.Velocity = hrp.CFrame.lookVector * 20
  478. boopyve.Parent = chr.HumanoidRootPart
  479. dodgeevent2:FireServer()
  480. local bep = true
  481. local damaging = true
  482. coroutine.resume(coroutine.create(function()
  483. repeat
  484. wait()
  485. boopyve.Velocity = hrp.CFrame.lookVector * 20
  486. until bep == false
  487. end))
  488. coroutine.resume(coroutine.create(function()
  489. repeat
  490. wait()
  491. hito(rightleg, rightleg.CFrame * CFrame.new(0, -1, 0) * CFrame.new(math.random(-0.25, 0.25), math.random(-0.25, 0.25), math.random(-0.25, 0.25)) ,5, 7, 0.05, 0.25, rot.CFrame.lookVector * 20, "rbxassetid://241837157", 0.075, Color3.new(255, 255, 255),"rbxassetid://260430079", math.random(9, 11) / 10, math.random(9, 11) / 10)
  492. until damaging == false
  493. end))
  494. wait(1)
  495. bep = false
  496. damaging = false
  497. boopyve:Destroy()
  498. fireevent:FireServer(chr.FireRightArm, false)
  499. fireevent:FireServer(chr.FireLeftArm, false)
  500. fireevent:FireServer(chr.FireRightLeg, false)
  501. fireevent:FireServer(chr.FireRightLeg, false)
  502. activu = false
  503. human.JumpPower = 50
  504. wait(2)
  505. flipcooldown = false
  506. end
  507. local backwardslamcooldown = false
  508. function slam()
  509. if activu == true then return end
  510. if backwardslamcooldown == true then return end
  511. if mouse.Target and mouse.Target.Parent:FindFirstChild("Humanoid") then
  512. local horp = mouse.Target.Parent:FindFirstChild("HumanoidRootPart")
  513. local magnitude = (horp.Position - hrp.Position).magnitude
  514. if 25 > magnitude then
  515. if horp.Parent.Disabled.Value == true then return end
  516. activu = true
  517. backwardslamcooldown = true
  518. local char = mouse.Target.Parent
  519. backwardslamevent:FireServer(char)
  520. wait(2.5)
  521. activu = false
  522. wait(15)
  523. backwardslamcooldown = false
  524. end
  525. end
  526. end
  527. local posing = false
  528. function posefunc()
  529. if activu == false and posing == false then
  530. if posing == false then do
  531. activu = true
  532. posing = true
  533. voice1:Play()
  534. local cp = math.random(1, 2)
  535. if cp == 1 then
  536. pose1:Play(0.1, 1, 1)
  537. elseif cp == 2 then
  538. pose2:Play(0.1, 1, 1)
  539. end
  540. human.WalkSpeed = 0
  541. human.JumpPower = 0
  542. poseevent:FireServer(true)
  543. end
  544. end
  545. elseif posing == true then
  546. pose1:Stop(0.3)
  547. pose2:Stop(0.3)
  548. voice1:Stop()
  549. if disabled.Value == false then
  550. human.WalkSpeed = 16
  551. human.JumpPower = 50
  552. elseif disabled.Value == true then
  553. human.WalkSpeed = 4
  554. human.JumpPower = 10
  555. elseif chr.TE.Value == true then
  556. human.WalkSpeed = 26
  557. human.JumpPower = 50
  558. end
  559. activu = false
  560. posing = false
  561. poseevent:FireServer(false)
  562. end
  563. end
  564. function dodge()
  565. if activu == true then return end
  566. activu = true
  567. rollanim:Play(0.1, 1,1)
  568. dodgesfx:Play()
  569. fireevent:FireServer(chr.FireRightLeg, true)
  570. fireevent:FireServer(chr.FireLeftLeg, true)
  571. dodgeevent:FireServer()
  572. shadowevent:FireServer()
  573. human.JumpPower = 0
  574. local boopyve = Instance.new("BodyVelocity")
  575. boopyve.MaxForce = Vector3.new(100000, 100000, 100000)
  576. boopyve.P = math.huge
  577. boopyve.Velocity = hrp.CFrame.lookVector * 37.5
  578. boopyve.Parent = hrp
  579. game.Debris:AddItem(boopyve, 0.5)
  580. bep = true
  581. coroutine.resume(coroutine.create(function()
  582. repeat
  583. wait()
  584. boopyve.Velocity = hrp.CFrame.lookVector * 37.5
  585. until bep == false
  586. end))
  587. wait(0.1)
  588. activu = false
  589. bep = false
  590. human.JumpPower = 50
  591. fireevent:FireServer(chr.FireRightLeg, false)
  592. fireevent:FireServer(chr.FireLeftLeg, false)
  593. end
  594. local projectilecd = false
  595. function spaceripperstingyeyes()
  596. if projectilecd == true then return end
  597. if activu == true then return end
  598. activu = true
  599. projectilecd = true
  600. spaceripperanim:Play(0.1, 1, 1)
  601. wait(0.6)
  602. stingyeyessfx:Play()
  603. FireBallevent:FireServer()
  604. wait(0.3)
  605. activu = false
  606. wait(7.5)
  607. projectilecd = false
  608. end
  609. local movementcooldown = false
  610. function movement()
  611. if activu == true then return end
  612. if movementcooldown == true then return end
  613. movementcooldown = true
  614. activu = true
  615. standjumpsfx:Play()
  616. standjumpanim:Play(0.1, 1, 1)
  617. jumpevent:FireServer(BrickColor.new("Really black"))
  618. local Bod = Instance.new("BodyPosition", hrp)
  619. Bod.maxForce = Vector3.new(100000, 100000, 100000)
  620. Bod.Position = hrp.CFrame*CFrame.new(0, 80, -95).p
  621. game.Debris:AddItem(Bod, 1)
  622. wait(1)
  623. activu = false
  624. wait(13)
  625. movementcooldown = false
  626. end
  627. mouse.Button1Down:connect(function()
  628. if ntorso.Anchored == true then return end
  629. if disabled.Value == true then return end
  630. punch()
  631. end)
  632. mouse.KeyDown:connect(function(key)
  633. if ntorso.Anchored == true then return end
  634. if disabled.Value == true then return end
  635. if key == "e" then
  636. barrage()
  637. end
  638. if key == "r" then
  639. strongpunch()
  640. end
  641. if key == "t" then
  642. flip()
  643. end
  644. if key == "y" then
  645. axekick()
  646. end
  647. if key == "h" then
  648. slam()
  649. end
  650. if key == "x" then
  651. block()
  652. end
  653. if key == "c" then
  654. dodge()
  655. end
  656. if key == "z" then
  657. movement()
  658. end
  659. if key == "q" then
  660. legbreaker()
  661. end
  662. if key == "g" then
  663. posefunc()
  664. end
  665. if key == "b" then
  666. spaceripperstingyeyes()
  667. end
  668. if key == "v" then
  669. shinyblade()
  670. end
  671. end)
  672. function hito(partoz, partcfr, magn, dmg, debtim, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  673. for _, guy in pairs(workspace:GetChildren()) do
  674. if partoz.Anchored == true then return end
  675. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  676. do
  677. if partoz.Anchored then return end
  678. local humz = guy:FindFirstChild("Humanoid")
  679. local horp = guy:FindFirstChild("HumanoidRootPart")
  680. damageevent:FireServer(humz, partcfr, dmg, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  681. local db = Instance.new("StringValue")
  682. db.Name = "alabo"
  683. db.Parent = horp
  684. delay(debtim, function()
  685. db:Destroy()
  686. end)
  687. end
  688. end
  689. end
  690. end
  691. function hito2(partoz, partcfr, magn, dmg, debtim, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  692. for _, guy in pairs(workspace:GetChildren()) do
  693. if partoz.Anchored == true then return end
  694. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  695. do
  696. if partoz.Anchored then return end
  697. local humz = guy:FindFirstChild("Humanoid")
  698. local horp = guy:FindFirstChild("HumanoidRootPart")
  699. damageevent2:FireServer(humz, partcfr, dmg, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  700. knockevent:FireServer(humz)
  701. local db = Instance.new("StringValue")
  702. db.Name = "alabo"
  703. db.Parent = horp
  704. delay(debtim, function()
  705. db:Destroy()
  706. end)
  707. end
  708. end
  709. end
  710. end
  711. function hito3(partoz, partcfr, magn, dmg, debtim, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  712. for _, guy in pairs(workspace:GetChildren()) do
  713. if partoz.Anchored == true then return end
  714. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  715. do
  716. if partoz.Anchored then return end
  717. local humz = guy:FindFirstChild("Humanoid")
  718. local horp = guy:FindFirstChild("HumanoidRootPart")
  719. damageevent3:FireServer(humz, partcfr, dmg, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  720. knockevent:FireServer(humz)
  721. local db = Instance.new("StringValue")
  722. db.Name = "alabo"
  723. db.Parent = horp
  724. delay(debtim, function()
  725. db:Destroy()
  726. end)
  727. end
  728. end
  729. end
  730. end
  731. function hito4(partoz, partcfr, magn, dmg, debtim, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  732. for _, guy in pairs(workspace:GetChildren()) do
  733. if partoz.Anchored == true then return end
  734. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  735. do
  736. if partoz.Anchored then return end
  737. local humz = guy:FindFirstChild("Humanoid")
  738. local horp = guy:FindFirstChild("HumanoidRootPart")
  739. damageevent4:FireServer(humz, partcfr, dmg, debtime, bodyfdire, effect, grow, color, sound, pitch, volume)
  740. knockevent:FireServer(humz)
  741. local db = Instance.new("StringValue")
  742. db.Name = "alabo"
  743. db.Parent = horp
  744. delay(debtim, function()
  745. db:Destroy()
  746. end)
  747. end
  748. end
  749. end
  750. end
  751. game.Lighting.TS.Changed:Connect(function()
  752. if game.Lighting.TS.Value == true then
  753. anchorevent:FireServer(ntorso ,true)
  754. anchorevent:FireServer(rightarm ,true)
  755. anchorevent:FireServer(leftarm ,true)
  756. anchorevent:FireServer(rightleg ,true)
  757. anchorevent:FireServer(leftleg ,true)
  758. anchorevent:FireServer(head ,true)
  759.  
  760. elseif game.Lighting.TS.Value == false then
  761. anchorevent:FireServer(ntorso ,false)
  762. anchorevent:FireServer(rightarm ,false)
  763. anchorevent:FireServer(leftarm ,false)
  764. anchorevent:FireServer(rightleg ,false)
  765. anchorevent:FireServer(leftleg ,false)
  766. anchorevent:FireServer(head ,false)
  767. end
  768. end)
  769.  
  770. if game.Lighting.TS.Value == true then
  771. anchorevent:FireServer(ntorso ,true)
  772. anchorevent:FireServer(rightarm ,true)
  773. anchorevent:FireServer(leftarm ,true)
  774. anchorevent:FireServer(rightleg ,true)
  775. anchorevent:FireServer(leftleg ,true)
  776. anchorevent:FireServer(head ,true)
  777. end
  778.  
  779.  
  780. berserkclientevent.OnClientEvent:connect(function()
  781. game.Lighting.Ambient = Color3.fromRGB(0, 0, 122)
  782. game.Lighting.Berserk.Enabled = true
  783. human.WalkSpeed = 4
  784. human:SetStateEnabled(3, false)
  785. wait(2.5)
  786. human.WalkSpeed = 16
  787. human:SetStateEnabled(3, true)
  788. game.Lighting.Ambient = Color3.fromRGB(150, 150, 150)
  789. game.Lighting.Berserk.Enabled = false
  790. end)
  791.  
  792. local deathevent = replicatedstorage.Death
  793. human.HealthChanged:connect(function()
  794. if human.Health < 1 then
  795. human:SetStateEnabled(3, false)
  796. human:SetStateEnabled(15, false)
  797. deathevent:FireServer(false)
  798. end
  799. end)
  800.  
  801. knockclientevent.OnClientEvent:connect(function(enemyplr)
  802. if chr.Block.Value == true then return end
  803. replicatedstorage["Knocked"]:FireServer()
  804. human:SetStateEnabled(3, false)
  805. wait(1.25)
  806. if human.Health >= 1 then
  807. getupevent:FireServer()
  808. human:SetStateEnabled(3, true)
  809. end
  810. end)
  811.  
  812. wait(30)
  813. timestopcooldown = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement