Advertisement
TheSkibidiOne1

Toji Script test WIP dont expect much

Feb 12th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.49 KB | None | 0 0
  1. -- Auto Blackflash
  2. loadstring(game:HttpGet("https://pastebin.com/raw/2cxCR5z3"))()
  3.  
  4. -- yk the deal bud
  5. local Players = game:GetService("Players")
  6. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  7.  
  8. -- Skill Names
  9. local skillOne = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Cursed Strikes'].ItemName
  10. local skillTwo = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Crushing Blow'].ItemName
  11. local skillThree = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Divergent Fist'].ItemName
  12. local skillFour = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Manji Kick'].ItemName
  13. local ultTitle = game.Players.LocalPlayer.PlayerGui.Main.Ultimate.Title
  14.  
  15. -- Set skill names
  16. skillOne.Text = "Brute Barrage"
  17. skillTwo.Text = "Killing Smash"
  18. skillThree.Text = "Playful Cloud"
  19. skillFour.Text = "Counter"
  20. ultTitle.Text = "Left It all Behind"
  21.  
  22. -- Skill 1 --
  23.  
  24. -- Animation references
  25. local Ravage = ReplicatedStorage.Animations.Itadori.CursedStrike
  26. local RavageStart = ReplicatedStorage.Animations.Heian.Cleave
  27. local RavageMid = ReplicatedStorage.Animations.Choso.FlowingRedScale
  28.  
  29. -- VFX references (add your VFX paths here)
  30. local VFX_TEMPLATES = {
  31. groundWave = game.ReplicatedStorage.Utils.Itadori.DivergentFist.BlackFlash.Mid
  32. }
  33.  
  34. -- Animation storage
  35. local loadedAnimations = {}
  36. local activeVFX = {}
  37.  
  38. -- Prevent multiple triggers
  39. local isAnimationSequenceActive = false
  40.  
  41. -- Function to create VFX
  42. local function createVFX(vfxName, character)
  43. if not VFX_TEMPLATES[vfxName] then
  44. warn("VFX template not found:", vfxName)
  45. return nil
  46. end
  47.  
  48. local hrp = character:WaitForChild("HumanoidRootPart")
  49. local vfx = VFX_TEMPLATES[vfxName]:Clone()
  50. vfx.Parent = hrp
  51. activeVFX[vfxName] = vfx
  52.  
  53. return vfx
  54. end
  55.  
  56. -- Function to play VFX
  57. local function playVFX(vfxName, particleAmount)
  58. local vfx = activeVFX[vfxName]
  59. if not vfx then return end
  60.  
  61. for _, child in ipairs(vfx:GetChildren()) do
  62. child.Color = ColorSequence.new(Color3.new(1, 1, 1))
  63. if child:IsA("ParticleEmitter") then
  64. child:Emit(particleAmount or 15)
  65. child.Enabled = true
  66. end
  67. end
  68. end
  69.  
  70. -- Function to stop VFX
  71. local function stopVFX(vfxName)
  72. local vfx = activeVFX[vfxName]
  73. if not vfx then return end
  74.  
  75. for _, child in ipairs(vfx:GetChildren()) do
  76. if child:IsA("ParticleEmitter") then
  77. child.Enabled = false
  78. end
  79. end
  80. end
  81.  
  82. -- Function to cleanup VFX
  83. local function cleanupVFX(vfxName)
  84. local vfx = activeVFX[vfxName]
  85. if vfx then
  86. vfx:Destroy()
  87. activeVFX[vfxName] = nil
  88. end
  89. end
  90.  
  91. -- Function to load animation
  92. local function loadAnimation(animId, character)
  93. local humanoid = character:FindFirstChildOfClass("Humanoid")
  94. if not humanoid then return nil end
  95.  
  96. local animation = Instance.new("Animation")
  97. animation.AnimationId = animId
  98.  
  99. return humanoid:LoadAnimation(animation)
  100. end
  101.  
  102. -- Function to play animation sequence
  103. local function playAnimationSequence(player)
  104. if isAnimationSequenceActive then return end
  105. isAnimationSequenceActive = true
  106.  
  107. local character = player.Character
  108. if not character then return end
  109.  
  110. -- Load animations if not already loaded
  111. if not loadedAnimations.roughEnergy then
  112. loadedAnimations.RavageStart = loadAnimation(RavageStart.AnimationId, character)
  113. loadedAnimations.RavageMid = loadAnimation(RavageMid.AnimationId, character)
  114. end
  115.  
  116. -- Stop any existing animations
  117. for _, track in pairs(character:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do
  118. track:Stop()
  119. end
  120.  
  121. -- Create VFX instances
  122. createVFX("groundWave", character)
  123.  
  124. -- Custom sequence
  125. task.spawn(function()
  126. loadedAnimations.RavageStart:Play()
  127. task.wait(0.2)
  128. playVFX("groundWave", 10)
  129.  
  130. task.wait(0.2)
  131. loadedAnimations.RavageStart:Stop()
  132. loadedAnimations.RavageMid:Play()
  133. stopVFX("groundWave")
  134.  
  135. task.wait(2)
  136. loadedAnimations.RavageMid:Stop()
  137.  
  138. -- Cleanup
  139. task.wait(0.5)
  140. cleanupVFX("groundWave")
  141.  
  142. isAnimationSequenceActive = false
  143. end)
  144. end
  145.  
  146. -- Event handler for animation played
  147. local function onAnimationPlayed(animationTrack)
  148. if animationTrack.Animation.AnimationId == Ravage.AnimationId then
  149. playAnimationSequence(Players.LocalPlayer)
  150. end
  151. end
  152.  
  153. -- Set up character connections
  154. local function setupCharacter(character)
  155. -- Clear old animations
  156. loadedAnimations = {}
  157.  
  158. -- Clear old VFX
  159. for name, vfx in pairs(activeVFX) do
  160. vfx:Destroy()
  161. end
  162. activeVFX = {}
  163.  
  164. local humanoid = character:WaitForChild("Humanoid")
  165. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  166. end
  167.  
  168. -- Connect to local player's character
  169. local player = Players.LocalPlayer
  170. setupCharacter(player.Character or player.CharacterAdded:Wait())
  171. player.CharacterAdded:Connect(setupCharacter)
  172.  
  173. -- SKILL 2 --
  174.  
  175. local Players = game:GetService("Players")
  176. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  177.  
  178. -- Animation references
  179. local divergentFist1ANIM = ReplicatedStorage.Animations.Itadori.Variants.DivergentFist1
  180. local divergentFist2ANIM = ReplicatedStorage.Animations.Itadori.Variants.DivergentFist2
  181. local divergentFist3ANIM = ReplicatedStorage.Animations.Itadori.Variants.DivergentFist3
  182. local chosoHairpinANIM = ReplicatedStorage.Animations.Choso.Exorcise
  183.  
  184. -- Prevent multiple triggers
  185. local lastTriggerTime = 0
  186. local TRIGGER_COOLDOWN = 1 -- Prevent retriggering within 1 second
  187. local isReplacing = false
  188.  
  189. local function replaceAnimation(player)
  190. -- Prevent multiple simultaneous replacements
  191. if isReplacing then return end
  192.  
  193. local currentTime = os.clock()
  194.  
  195. -- Check if enough time has passed since last trigger
  196. if currentTime - lastTriggerTime < TRIGGER_COOLDOWN then return end
  197. lastTriggerTime = currentTime
  198.  
  199. local character = player.Character
  200. if not character then return end
  201.  
  202. local humanoid = character:FindFirstChildOfClass("Humanoid")
  203. if not humanoid then return end
  204.  
  205. -- Set replacement flag
  206. isReplacing = true
  207.  
  208. -- Create Choso Hairpin animation instance
  209. local chosoHairpinAnimation = Instance.new("Animation")
  210. chosoHairpinAnimation.AnimationId = chosoHairpinANIM.AnimationId
  211.  
  212. -- Stop any existing animations
  213. for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
  214. track:Stop()
  215. end
  216.  
  217. -- Load and play Choso Hairpin animation
  218. local chosoHairpinTrack = humanoid:LoadAnimation(chosoHairpinAnimation)
  219. chosoHairpinTrack:Play()
  220.  
  221. -- Reset flag after animation completes
  222. task.delay(chosoHairpinTrack.Length, function()
  223. isReplacing = false
  224. end)
  225. end
  226.  
  227. -- Event handler for animation played
  228. local function onAnimationPlayed(animationTrack)
  229. -- Check if the animation matches any of the DivergentFist variants
  230. local animationId = animationTrack.Animation.AnimationId
  231. if animationId == divergentFist1ANIM.AnimationId or
  232. animationId == divergentFist2ANIM.AnimationId or
  233. animationId == divergentFist3ANIM.AnimationId then
  234. replaceAnimation(Players.LocalPlayer)
  235. end
  236. end
  237.  
  238. -- Connect to local player's character
  239. local player = Players.LocalPlayer
  240. local character = player.Character or player.CharacterAdded:Wait()
  241. local humanoid = character:WaitForChild("Humanoid")
  242.  
  243. -- Connect animation played event
  244. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  245.  
  246. -- Skill 3 --
  247.  
  248. -- Animation references
  249. local divergentFist1 = ReplicatedStorage.Animations.Itadori.Variants.DivergentFist1
  250. local roughEnergyANIM = ReplicatedStorage.Animations.Mahito.Dash2
  251.  
  252.  
  253. -- VFX references (add your VFX paths here)
  254. local VFX_TEMPLATES = {
  255. groundWave = game.ReplicatedStorage.Utils.Mahito.Worms.WormLaunch.groundwaveing,
  256. }
  257.  
  258. -- Animation storage
  259. local loadedAnimations = {}
  260. local activeVFX = {}
  261.  
  262. -- Prevent multiple triggers
  263. local isAnimationSequenceActive = false
  264.  
  265. -- Function to create VFX
  266. local function createVFX(vfxName, character)
  267. if not VFX_TEMPLATES[vfxName] then
  268. warn("VFX template not found:", vfxName)
  269. return nil
  270. end
  271.  
  272. local hrp = character:WaitForChild("HumanoidRootPart")
  273. local vfx = VFX_TEMPLATES[vfxName]:Clone()
  274. vfx.Parent = hrp
  275. activeVFX[vfxName] = vfx
  276.  
  277. return vfx
  278. end
  279.  
  280. -- Function to play VFX
  281. local function playVFX(vfxName, particleAmount)
  282. local vfx = activeVFX[vfxName]
  283. if not vfx then return end
  284.  
  285. for _, child in ipairs(vfx:GetChildren()) do
  286. child.Color = ColorSequence.new(Color3.new(1, 0, 0))
  287. if child:IsA("ParticleEmitter") then
  288. child:Emit(particleAmount or 15)
  289. child.Enabled = true
  290. end
  291. end
  292. end
  293.  
  294. -- Function to stop VFX
  295. local function stopVFX(vfxName)
  296. local vfx = activeVFX[vfxName]
  297. if not vfx then return end
  298.  
  299. for _, child in ipairs(vfx:GetChildren()) do
  300. if child:IsA("ParticleEmitter") then
  301. child.Enabled = false
  302. end
  303. end
  304. end
  305.  
  306. -- Function to cleanup VFX
  307. local function cleanupVFX(vfxName)
  308. local vfx = activeVFX[vfxName]
  309. if vfx then
  310. vfx:Destroy()
  311. activeVFX[vfxName] = nil
  312. end
  313. end
  314.  
  315. -- Function to load animation
  316. local function loadAnimation(animId, character)
  317. local humanoid = character:FindFirstChildOfClass("Humanoid")
  318. if not humanoid then return nil end
  319.  
  320. local animation = Instance.new("Animation")
  321. animation.AnimationId = animId
  322.  
  323. return humanoid:LoadAnimation(animation)
  324. end
  325.  
  326. -- Function to play animation sequence
  327. local function playAnimationSequence(player)
  328. if isAnimationSequenceActive then return end
  329. isAnimationSequenceActive = true
  330.  
  331. local character = player.Character
  332. if not character then return end
  333.  
  334. -- Load animations if not already loaded
  335. if not loadedAnimations.roughEnergy then
  336. loadedAnimations.roughEnergy = loadAnimation(roughEnergyANIM.AnimationId, character)
  337. end
  338.  
  339. -- Stop any existing animations
  340. for _, track in pairs(character:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do
  341. track:Stop()
  342. end
  343.  
  344. -- Create VFX instances
  345. createVFX("groundWave", character)
  346.  
  347. -- Custom sequence
  348. task.spawn(function()
  349. loadedAnimations.roughEnergy:Play()
  350. task.wait(0.2)
  351. playVFX("groundWave", 1)
  352.  
  353. task.wait(0.5)
  354. loadedAnimations.roughEnergy:Stop()
  355. stopVFX("groundWave")
  356.  
  357. -- Cleanup
  358. task.wait(0.5)
  359. cleanupVFX("groundWave")
  360.  
  361. isAnimationSequenceActive = false
  362. end)
  363. end
  364.  
  365. -- Event handler for animation played
  366. local function onAnimationPlayed(animationTrack)
  367. if animationTrack.Animation.AnimationId == divergentFist1.AnimationId then
  368. playAnimationSequence(Players.LocalPlayer)
  369. end
  370. end
  371.  
  372. -- Set up character connections
  373. local function setupCharacter(character)
  374. -- Clear old animations
  375. loadedAnimations = {}
  376.  
  377. -- Clear old VFX
  378. for name, vfx in pairs(activeVFX) do
  379. vfx:Destroy()
  380. end
  381. activeVFX = {}
  382.  
  383. local humanoid = character:WaitForChild("Humanoid")
  384. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  385. end
  386.  
  387. -- Connect to local player's character
  388. local player = Players.LocalPlayer
  389. setupCharacter(player.Character or player.CharacterAdded:Wait())
  390. player.CharacterAdded:Connect(setupCharacter)
  391.  
  392. -- Skill 4 --
  393.  
  394. -- Animation references
  395. local divergentFist2 = ReplicatedStorage.Animations.Itadori.ManjiKick
  396. local KJCounterANIM = ReplicatedStorage.Animations.Hakari.Luckyvolley
  397.  
  398.  
  399. -- VFX references (add your VFX paths here)
  400. local VFX_TEMPLATES = {
  401. groundWave = game:GetService("ReplicatedStorage").Utils.Damage.Explode.Head.Attachment,
  402. }
  403.  
  404. -- Animation storage
  405. local loadedAnimations = {}
  406. local activeVFX = {}
  407.  
  408. -- Prevent multiple triggers
  409. local isAnimationSequenceActive = false
  410.  
  411. -- Function to create VFX
  412. local function createVFX(vfxName, character)
  413. if not VFX_TEMPLATES[vfxName] then
  414. warn("VFX template not found:", vfxName)
  415. return nil
  416. end
  417.  
  418. local hrp = character:WaitForChild("HumanoidRootPart")
  419. local vfx = VFX_TEMPLATES[vfxName]:Clone()
  420. vfx.Parent = hrp
  421. activeVFX[vfxName] = vfx
  422.  
  423. return vfx
  424. end
  425.  
  426. -- Function to play VFX
  427. local function playVFX(vfxName, particleAmount)
  428. local vfx = activeVFX[vfxName]
  429. if not vfx then return end
  430.  
  431. for _, child in ipairs(vfx:GetChildren()) do
  432. child.Color = ColorSequence.new(Color3.new(1, 0, 0))
  433. if child:IsA("ParticleEmitter") then
  434. child:Emit(particleAmount or 15)
  435. child.Enabled = true
  436. end
  437. end
  438. end
  439.  
  440. -- Function to stop VFX
  441. local function stopVFX(vfxName)
  442. local vfx = activeVFX[vfxName]
  443. if not vfx then return end
  444.  
  445. for _, child in ipairs(vfx:GetChildren()) do
  446. if child:IsA("ParticleEmitter") then
  447. child.Enabled = false
  448. end
  449. end
  450. end
  451.  
  452. -- Function to cleanup VFX
  453. local function cleanupVFX(vfxName)
  454. local vfx = activeVFX[vfxName]
  455. if vfx then
  456. vfx:Destroy()
  457. activeVFX[vfxName] = nil
  458. end
  459. end
  460.  
  461. -- Function to load animation
  462. local function loadAnimation(animId, character)
  463. local humanoid = character:FindFirstChildOfClass("Humanoid")
  464. if not humanoid then return nil end
  465.  
  466. local animation = Instance.new("Animation")
  467. animation.AnimationId = animId
  468.  
  469. return humanoid:LoadAnimation(animation)
  470. end
  471.  
  472. -- Function to play animation sequence
  473. local function playAnimationSequence(player)
  474. if isAnimationSequenceActive then return end
  475. isAnimationSequenceActive = true
  476.  
  477. local character = player.Character
  478. if not character then return end
  479.  
  480. -- Load animations if not already loaded
  481. if not loadedAnimations.roughEnergy then
  482. loadedAnimations.roughEnergy = loadAnimation(KJCounterANIM.AnimationId, character)
  483. end
  484.  
  485. -- Stop any existing animations
  486. for _, track in pairs(character:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do
  487. track:Stop()
  488. end
  489.  
  490. -- Create VFX instances
  491. createVFX("groundWave", character)
  492.  
  493. -- Custom sequence
  494. task.spawn(function()
  495. loadedAnimations.roughEnergy:Play()
  496. task.wait(0.2)
  497. playVFX("groundWave", 1)
  498.  
  499. task.wait(0.3)
  500. loadedAnimations.roughEnergy:Stop()
  501. stopVFX("groundWave")
  502.  
  503. -- Cleanup
  504. task.wait(0.5)
  505. cleanupVFX("groundWave")
  506.  
  507. isAnimationSequenceActive = false
  508. end)
  509. end
  510.  
  511. -- Event handler for animation played
  512. local function onAnimationPlayed(animationTrack)
  513. if animationTrack.Animation.AnimationId == divergentFist2.AnimationId then
  514. playAnimationSequence(Players.LocalPlayer)
  515. end
  516. end
  517.  
  518. -- Set up character connections
  519. local function setupCharacter(character)
  520. -- Clear old animations
  521. loadedAnimations = {}
  522.  
  523. -- Clear old VFX
  524. for name, vfx in pairs(activeVFX) do
  525. vfx:Destroy()
  526. end
  527. activeVFX = {}
  528.  
  529. local humanoid = character:WaitForChild("Humanoid")
  530. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  531. end
  532.  
  533. -- Connect to local player's character
  534. local player = Players.LocalPlayer
  535. setupCharacter(player.Character or player.CharacterAdded:Wait())
  536. player.CharacterAdded:Connect(setupCharacter)
  537.  
  538. -- Ult --
  539.  
  540. -- Animation references
  541. local KJUltBase = ReplicatedStorage.Animations.Itadori.Ultimate
  542. local KJUltANIM = ReplicatedStorage.Animations.Heian.Dismantle.WCS
  543.  
  544.  
  545. -- VFX references (add your VFX paths here)
  546. local VFX_TEMPLATES = {
  547. groundWave = game:GetService("ReplicatedStorage").Utils.Heian.Sweep.Attachment,
  548. }
  549.  
  550. -- Animation storage
  551. local loadedAnimations = {}
  552. local activeVFX = {}
  553.  
  554. -- Prevent multiple triggers
  555. local isAnimationSequenceActive = false
  556.  
  557. -- Function to create VFX
  558. local function createVFX(vfxName, character)
  559. if not VFX_TEMPLATES[vfxName] then
  560. warn("VFX template not found:", vfxName)
  561. return nil
  562. end
  563.  
  564. local hrp = character:WaitForChild("HumanoidRootPart")
  565. local vfx = VFX_TEMPLATES[vfxName]:Clone()
  566. vfx.Parent = hrp
  567. activeVFX[vfxName] = vfx
  568.  
  569. return vfx
  570. end
  571.  
  572. -- Function to play VFX
  573. local function playVFX(vfxName, particleAmount)
  574. local vfx = activeVFX[vfxName]
  575. if not vfx then return end
  576.  
  577. for _, child in ipairs(vfx:GetChildren()) do
  578. child.Color = ColorSequence.new(Color3.new(1, 0, 0))
  579. if child:IsA("ParticleEmitter") then
  580. child:Emit(particleAmount or 15)
  581. child.Enabled = true
  582. end
  583. end
  584. end
  585.  
  586. -- Function to stop VFX
  587. local function stopVFX(vfxName)
  588. local vfx = activeVFX[vfxName]
  589. if not vfx then return end
  590.  
  591. for _, child in ipairs(vfx:GetChildren()) do
  592. if child:IsA("ParticleEmitter") then
  593. child.Enabled = false
  594. end
  595. end
  596. end
  597.  
  598. -- Function to cleanup VFX
  599. local function cleanupVFX(vfxName)
  600. local vfx = activeVFX[vfxName]
  601. if vfx then
  602. vfx:Destroy()
  603. activeVFX[vfxName] = nil
  604. end
  605. end
  606.  
  607. -- Function to load animation
  608. local function loadAnimation(animId, character)
  609. local humanoid = character:FindFirstChildOfClass("Humanoid")
  610. if not humanoid then return nil end
  611.  
  612. local animation = Instance.new("Animation")
  613. animation.AnimationId = animId
  614.  
  615. return humanoid:LoadAnimation(animation)
  616. end
  617.  
  618. -- Function to play animation sequence
  619. local function playAnimationSequence(player)
  620. if isAnimationSequenceActive then return end
  621. isAnimationSequenceActive = true
  622.  
  623. local character = player.Character
  624. if not character then return end
  625.  
  626. -- Load animations if not already loaded
  627. if not loadedAnimations.roughEnergy then
  628. loadedAnimations.roughEnergy = loadAnimation(KJUltANIM.AnimationId, character)
  629. end
  630.  
  631. -- Stop any existing animations
  632. for _, track in pairs(character:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do
  633. track:Stop()
  634. end
  635.  
  636. -- Create VFX instances
  637. createVFX("groundWave", character)
  638.  
  639. -- Custom sequence
  640. task.spawn(function()
  641. loadedAnimations.roughEnergy:Play()
  642. task.wait(0.2)
  643. playVFX("groundWave", 1)
  644.  
  645. task.wait(0.3)
  646. loadedAnimations.roughEnergy:Stop()
  647. stopVFX("groundWave")
  648.  
  649. -- Cleanup
  650. task.wait(0.5)
  651. cleanupVFX("groundWave")
  652.  
  653. isAnimationSequenceActive = false
  654. end)
  655. end
  656.  
  657. -- Event handler for animation played
  658. local function onAnimationPlayed(animationTrack)
  659. if animationTrack.Animation.AnimationId == KJUltBase.AnimationId then
  660. playAnimationSequence(Players.LocalPlayer)
  661. end
  662. end
  663.  
  664. -- Set up character connections
  665. local function setupCharacter(character)
  666. -- Clear old animations
  667. loadedAnimations = {}
  668.  
  669. -- Clear old VFX
  670. for name, vfx in pairs(activeVFX) do
  671. vfx:Destroy()
  672. end
  673. activeVFX = {}
  674.  
  675. local humanoid = character:WaitForChild("Humanoid")
  676. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  677. end
  678.  
  679. -- Connect to local player's character
  680. local player = Players.LocalPlayer
  681. setupCharacter(player.Character or player.CharacterAdded:Wait())
  682. player.CharacterAdded:Connect(setupCharacter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement