Guest User

GOKU JJS SCRIPT

a guest
Feb 10th, 2025
371
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 1 0
  1. --Local stuff
  2. local skillOne = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Cursed Strikes'].ItemName
  3. local skillTwo = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Crushing Blow'].ItemName
  4. local skillThree = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Divergent Fist'].ItemName
  5. local skillFour = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Manji Kick']
  6. local skillThreeToolTip = game.Players.LocalPlayer.PlayerGui.Main.Moveset['Divergent Fist'].Tip
  7. local ultTitle = game.Players.LocalPlayer.PlayerGui.Main.Ultimate.Title
  8.  
  9. --Skill names
  10. skillOne.Text = "Meteoric Combination"
  11. skillTwo.Text = "Swift Slams"
  12. skillThree.Text = "Kamehameha"
  13. skillThreeToolTip.Text = "Kaioken"
  14. skillFour.Text = "Counter Kick"
  15. ultTitle.Text = "Kaioken"
  16.  
  17. -- SKILL 1 --
  18.  
  19. local Players = game:GetService("Players")
  20. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  21.  
  22. -- Animation references
  23. local cursedStrikeANIM = ReplicatedStorage.Animations.Itadori.CursedStrike
  24. local roughEnergyANIM = ReplicatedStorage.Animations.Hakari.RoughEnergy
  25. local vesselMelee1 = ReplicatedStorage.Animations.Itadori.Melee.Melee1
  26. local vesselMelee2 = ReplicatedStorage.Animations.Itadori.Melee.Melee2
  27. local luckyVolleyANIM = ReplicatedStorage.Animations.Hakari.LuckyVolley
  28. local hakariMelee4 = ReplicatedStorage.Animations.Choso.PiercingBlood
  29.  
  30. -- Configurable parameters
  31. local SWAP_DELAY = 0.01 -- Delay before swapping animations (in seconds)
  32. local PLAY_DURATION = 1.2 -- Total duration of animation sequence
  33.  
  34. -- Prevent multiple triggers
  35. local isAnimationSequenceActive = false
  36.  
  37. local function playAnimationSequence(player)
  38. -- Ensure we don't trigger multiple times
  39. if isAnimationSequenceActive then return end
  40. isAnimationSequenceActive = true
  41.  
  42. local character = player.Character
  43. if not character then return end
  44.  
  45. local humanoid = character:FindFirstChildOfClass("Humanoid")
  46. if not humanoid then return end
  47.  
  48. -- Create animation instances
  49. local animations = {
  50. roughEnergy = Instance.new("Animation"),
  51. melee1 = Instance.new("Animation"),
  52. melee2 = Instance.new("Animation"),
  53. luckyVolley = Instance.new("Animation"),
  54. hMelee4 = Instance.new("Animation")
  55. }
  56.  
  57. -- Set animation IDs
  58. animations.roughEnergy.AnimationId = roughEnergyANIM.AnimationId
  59. animations.melee1.AnimationId = vesselMelee1.AnimationId
  60. animations.melee2.AnimationId = vesselMelee2.AnimationId
  61. animations.luckyVolley.AnimationId = luckyVolleyANIM.AnimationId
  62. animations.hMelee4.AnimationId = hakariMelee4.AnimationId
  63.  
  64. -- Load animations
  65. local animTracks = {
  66. roughEnergy = humanoid:LoadAnimation(animations.roughEnergy),
  67. melee1 = humanoid:LoadAnimation(animations.melee1),
  68. melee2 = humanoid:LoadAnimation(animations.melee2),
  69. luckyVolley = humanoid:LoadAnimation(animations.luckyVolley),
  70. hMelee4 = humanoid:LoadAnimation(animations.hMelee4)
  71. }
  72.  
  73. -- Stop any existing animations
  74. for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
  75. track:Stop()
  76. end
  77.  
  78. -- Play animation sequence
  79. task.spawn(function()
  80. animTracks.roughEnergy:Play()
  81. task.wait(0.5)
  82. animTracks.roughEnergy:Stop()
  83.  
  84. -- Melee Sequence
  85. animTracks.melee1:Play()
  86. task.wait(0.3)
  87. animTracks.melee1:Stop()
  88. animTracks.melee2:Play()
  89. task.wait(0.6)
  90. animTracks.melee2:Stop()
  91. animTracks.luckyVolley:Play()
  92. task.wait(0.8)
  93. animTracks.luckyVolley:Stop()
  94. animTracks.hMelee4:Play()
  95.  
  96. -- Reset flag after sequence
  97. task.wait(PLAY_DURATION)
  98. isAnimationSequenceActive = false
  99.  
  100. -- Stop all animations
  101. for _, track in pairs(animTracks) do
  102. track:Stop()
  103. end
  104. end)
  105. end
  106.  
  107. -- Event handler for animation played
  108. local function onAnimationPlayed(animationTrack)
  109. -- Check if the animation matches Cursed Strike
  110. if animationTrack.Animation.AnimationId == cursedStrikeANIM.AnimationId then
  111. playAnimationSequence(Players.LocalPlayer)
  112. end
  113. end
  114.  
  115. -- Connect to local player's character
  116. local player = Players.LocalPlayer
  117. local character = player.Character or player.CharacterAdded:Wait()
  118. local humanoid = character:WaitForChild("Humanoid")
  119.  
  120. -- Connect animation played event
  121. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  122.  
  123. -- SKILL 2 --
  124.  
  125. -- SKILL 3 --
  126. local Players = game:GetService("Players")
  127. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  128.  
  129. -- Animation references
  130. local divergentFist = ReplicatedStorage.Animations.Itadori.Variants.DivergentFist1
  131. local greatSerpent = ReplicatedStorage.Animations.Megumi.GreatSerpent
  132. local headSplitter = ReplicatedStorage.Animations.Choso.PiercingBlood
  133.  
  134. -- Configurable parameters
  135. local SWAP_DELAY = 0.01 -- Delay before swapping animations (in seconds)
  136. local PLAY_DURATION = 1 -- Total duration of animation sequence
  137. local FRAME_TO_START = 57 -- The frame we want to start at
  138. local FPS = 30 -- Standard frame rate for Roblox animations
  139.  
  140. -- Calculate time position based on frame
  141. local TIME_POSITION = FRAME_TO_START / FPS
  142.  
  143. -- Prevent multiple triggers
  144. local isAnimationSequenceActive = false
  145.  
  146. local function playAnimationSequence(player)
  147. -- Ensure we don't trigger multiple times
  148. if isAnimationSequenceActive then return end
  149. isAnimationSequenceActive = true
  150.  
  151. local character = player.Character
  152. if not character then return end
  153.  
  154. local humanoid = character:FindFirstChildOfClass("Humanoid")
  155. if not humanoid then return end
  156.  
  157. -- Create animation instances
  158. local animations = {
  159. serpent = Instance.new("Animation"),
  160. hSplitter = Instance.new("Animation")
  161. }
  162.  
  163. -- Set animation IDs
  164. animations.serpent.AnimationId = greatSerpent.AnimationId
  165. animations.hSplitter.AnimationId = headSplitter.AnimationId
  166.  
  167. -- Load animations
  168. local animTracks = {
  169. serpent = humanoid:LoadAnimation(animations.serpent),
  170. hSplitter = humanoid:LoadAnimation(animations.hSplitter)
  171. }
  172.  
  173. -- Stop any existing animations
  174. for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
  175. track:Stop()
  176. end
  177.  
  178. -- Play animation sequence
  179. task.spawn(function()
  180. animTracks.serpent:Play()
  181. task.wait(0.2)
  182. animTracks.serpent:Stop()
  183. animTracks.hSplitter:Play()
  184. animTracks.hSplitter.TimePosition = TIME_POSITION
  185.  
  186. task.wait(0.8)
  187. animTracks.hSplitter:Stop()
  188.  
  189. -- Reset flag after sequence
  190. task.wait(PLAY_DURATION)
  191. isAnimationSequenceActive = false
  192.  
  193. -- Stop all animations
  194. for _, track in pairs(animTracks) do
  195. track:Stop()
  196. end
  197. end)
  198. end
  199.  
  200. -- Event handler for animation played
  201. local function onAnimationPlayed(animationTrack)
  202. -- Check if the animation matches Cursed Strike
  203. if animationTrack.Animation.AnimationId == divergentFist.AnimationId then
  204. playAnimationSequence(Players.LocalPlayer)
  205. end
  206. end
  207.  
  208. -- Connect to local player's character
  209. local player = Players.LocalPlayer
  210. local character = player.Character or player.CharacterAdded:Wait()
  211. local humanoid = character:WaitForChild("Humanoid")
  212.  
  213. -- Connect animation played event
  214. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
Advertisement
Add Comment
Please, Sign In to add comment