Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- sgui
- local sG = Instance.new("ScreenGui")
- sG.Name = "UIContainer"
- sG.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- txlabel
- local tL = Instance.new("TextLabel")
- tL.Size = UDim2.new(1, 0, 0, 16) -- smaller size
- tL.Position = UDim2.new(0, 0, 0, 0) -- Top
- tL.BackgroundTransparency = 1 -- by
- tL.Text = "MAHITO Made By strange_computer ON DISCORD. NOBODY ELSE!" -- put the credit name
- tL.TextColor3 = Color3.new(1, 1, 1) -- clr
- tL.Font = Enum.Font.Arcade
- tL.TextScaled = true -- scale
- tL.TextTransparency = 0.5 -- opaque
- tL.Parent = sG
- -- Ensure this script is placed in a LocalScript under the character or StarterPlayerScripts.
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- Animation IDs
- local firstAnimationId = "rbxassetid://94020267622363"
- local secondAnimationId = "rbxassetid://13497875049"
- local thirdAnimationId = "rbxassetid://12510170988"
- -- Audio ID
- local blackFlashAudioId = "rbxassetid://17534790625"
- -- Load animations
- local firstAnimation = Instance.new("Animation")
- firstAnimation.AnimationId = firstAnimationId
- local secondAnimation = Instance.new("Animation")
- secondAnimation.AnimationId = secondAnimationId
- local thirdAnimation = Instance.new("Animation")
- thirdAnimation.AnimationId = thirdAnimationId
- local firstAnimationTrack = humanoid:LoadAnimation(firstAnimation)
- local secondAnimationTrack = humanoid:LoadAnimation(secondAnimation)
- local thirdAnimationTrack = humanoid:LoadAnimation(thirdAnimation)
- -- Ensure this script is placed in a LocalScript under the character or StarterPlayerScripts.
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- Animation IDs
- local firstAnimationId = "rbxassetid://94020267622363"
- local secondAnimationId = "rbxassetid://13497875049"
- local thirdAnimationId = "rbxassetid://12510170988"
- -- Audio ID
- local blackFlashAudioId = "rbxassetid://17534790625"
- -- Load animations
- local firstAnimation = Instance.new("Animation")
- firstAnimation.AnimationId = firstAnimationId
- local secondAnimation = Instance.new("Animation")
- secondAnimation.AnimationId = secondAnimationId
- local thirdAnimation = Instance.new("Animation")
- thirdAnimation.AnimationId = thirdAnimationId
- local firstAnimationTrack = humanoid:LoadAnimation(firstAnimation)
- local secondAnimationTrack = humanoid:LoadAnimation(secondAnimation)
- local thirdAnimationTrack = humanoid:LoadAnimation(thirdAnimation)
- -- Black flash function
- local function playBlackFlash()
- local Test = game.ReplicatedStorage:FindFirstChild("Resources") and
- game.ReplicatedStorage.Resources:FindFirstChild("KJEffects") and
- game.ReplicatedStorage.Resources.KJEffects:FindFirstChild("KJWallCombo") and
- game.ReplicatedStorage.Resources.KJEffects.KJWallCombo:FindFirstChild("FinalImpact") and
- game.ReplicatedStorage.Resources.KJEffects.KJWallCombo.FinalImpact:FindFirstChild("Attachment")
- if not Test then
- warn("Black flash asset not found.")
- return
- end
- local test = Test:Clone()
- test.Parent = character:WaitForChild("HumanoidRootPart")
- -- Play audio
- local sound = Instance.new("Sound")
- sound.SoundId = blackFlashAudioId
- sound.Volume = 1
- sound.Parent = character:WaitForChild("HumanoidRootPart")
- sound:Play()
- for _, child in ipairs(test:GetChildren()) do
- if child:IsA("ParticleEmitter") then
- -- Adjust the particle emitter orientation to ensure it faces upwards
- child.Orientation = Vector3.new(90, 0, 0) -- Change the value to face upwards
- child:Emit(15)
- child.Enabled = true
- end
- end
- -- Stop the effect and destroy the sound after 1 second
- task.wait(1)
- test:Destroy()
- sound:Destroy()
- end
- -- Detect whenever the first animation starts playing
- humanoid.AnimationPlayed:Connect(function(animationTrack)
- if animationTrack.Animation.AnimationId == firstAnimationId then
- task.wait(0) -- Wait for 1 second
- secondAnimationTrack:Play()
- end
- end)
- -- Detect whenever the second animation stops
- secondAnimationTrack.Stopped:Connect(function()
- task.wait(0.3) -- Wait for 1 second
- thirdAnimationTrack:Play()
- -- Start the black flash function 1 second after third animation begins
- task.spawn(function()
- task.wait(0.6)
- playBlackFlash()
- end)
- end)
- --Move & Ultimate Names
- local player = game.Players.LocalPlayer
- local playerGui = player.PlayerGui
- local hotbar = playerGui:FindFirstChild("Hotbar")
- local backpack = hotbar:FindFirstChild("Backpack")
- local hotbarFrame = backpack:FindFirstChild("Hotbar")
- local baseButton = hotbarFrame:FindFirstChild("1").Base
- local ToolName = baseButton.ToolName
- ToolName.Text = "Idle Transfiguration"
- local player = game.Players.LocalPlayer
- local playerGui = player.PlayerGui
- local hotbar = playerGui:FindFirstChild("Hotbar")
- local backpack = hotbar:FindFirstChild("Backpack")
- local hotbarFrame = backpack:FindFirstChild("Hotbar")
- local baseButton = hotbarFrame:FindFirstChild("2").Base
- local ToolName = baseButton.ToolName
- ToolName.Text = "Focus Strike"
- local player = game.Players.LocalPlayer
- local playerGui = player.PlayerGui
- local hotbar = playerGui:FindFirstChild("Hotbar")
- local backpack = hotbar:FindFirstChild("Backpack")
- local hotbarFrame = backpack:FindFirstChild("Hotbar")
- local baseButton = hotbarFrame:FindFirstChild("3").Base
- local ToolName = baseButton.ToolName
- ToolName.Text = "Rushing Smash"
- local player = game.Players.LocalPlayer
- local playerGui = player.PlayerGui
- local hotbar = playerGui:FindFirstChild("Hotbar")
- local backpack = hotbar:FindFirstChild("Backpack")
- local hotbarFrame = backpack:FindFirstChild("Hotbar")
- local baseButton = hotbarFrame:FindFirstChild("4").Base
- local ToolName = baseButton.ToolName
- ToolName.Text = "Hammer Fist"
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local function findGuiAndSetText()
- local screenGui = playerGui:FindFirstChild("ScreenGui")
- if screenGui then
- local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
- if magicHealthFrame then
- local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
- if textLabel then
- textLabel.Text = "PERFECTION"
- end
- end
- end
- end
- playerGui.DescendantAdded:Connect(findGuiAndSetText)
- findGuiAndSetText()
- --[[Animations]]
- --[[Move 1]]
- local animationId = 17799224866
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://93125757361125"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 2
- Anim:Play()
- Anim:AdjustSpeed(0.1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1.3)
- end
- end
- --[[END OF MOVE 1 ANIM]]
- --[[Move 2]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 17838006839
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://140164642047188"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 6.1
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(2.7)
- end
- end
- --[[END OF MOVE 2 ANIM]]
- --[[Move 2 Second Use]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 17838619895
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://79761806706382"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 1
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(2)
- end
- end
- --[[END OF MOVE 2 SECOND USE ANIM]]
- --[[Move 3]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 17857788598
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://14701242661"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 8.1
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(2)
- delay(0.75, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 3 ANIM]]
- --[[Move 4]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18179181663
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://14900168720"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 1.4
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1)
- delay(1.5, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 4 ANIM]]
- --[[Move 4 hit]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18182425133
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://94020267622363"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 2
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1.5)
- delay(1.2, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 4 HIT ANIM]]
- --[[Wall combo]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 15955393872
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://131492147325921"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(0.75)
- end
- end
- --[[END OF WALL COMBO ANIM]]
- --[[Ult Activation]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18435383478
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://106128760138039"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1)
- end
- end
- --[[END OF ULT ACTIVATION ANIM]]
- --[[Dash]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 10479335397
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://112620365240235"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0.7
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(0.8)
- delay(0.8, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF DASH ANIM]]
- --[[Uppercut]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 10503381238
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://15436465829"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(0.7)
- delay(0.7, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF UPPERCUT ANIM]]
- --[[Downslam]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 10470104242
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://13294790250"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0.5
- wait(0.2)
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(2)
- end
- end
- --[[END OF DOWNSLAM ANIM]]
- --[[Punch anims]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local animationIdsToStop = {
- [17859015788] = true, --downslam finisher
- [10469493270] = true, --punch1
- [10469630950] = true, --punch2
- [10469639222] = true, --punch3
- [10469643643] = true, --punch4
- }
- local replacementAnimations = {
- ["10469493270"] = "rbxassetid://17889458563", --punch1
- ["10469630950"] = "rbxassetid://17889461810", --punch2
- ["10469639222"] = "rbxassetid://17889471098", --punch3
- ["10469643643"] = "rbxassetid://17889290569", --punch4
- ["17859015788"] = "rbxassetid://12684185971", --downslam finisher
- ["11365563255"] = "rbxassetid://14516273501" --punch idk
- }
- local queue = {}
- local isAnimating = false
- local function playReplacementAnimation(animationId)
- if isAnimating then
- table.insert(queue, animationId)
- return
- end
- isAnimating = true
- local replacementAnimationId = replacementAnimations[tostring(animationId)]
- if replacementAnimationId then
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = replacementAnimationId
- local Anim = humanoid:LoadAnimation(AnimAnim)
- Anim:Play()
- Anim.Stopped:Connect(function()
- isAnimating = false
- if #queue > 0 then
- local nextAnimationId = table.remove(queue, 1)
- playReplacementAnimation(nextAnimationId)
- end
- end)
- else
- isAnimating = false
- end
- end
- local function stopSpecificAnimations()
- for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do
- local animationId = tonumber(track.Animation.AnimationId:match("%d+"))
- if animationIdsToStop[animationId] then
- track:Stop()
- end
- end
- end
- local function onAnimationPlayed(animationTrack)
- local animationId = tonumber(animationTrack.Animation.AnimationId:match("%d+"))
- if animationIdsToStop[animationId] then
- stopSpecificAnimations()
- animationTrack:Stop()
- local replacementAnimationId = replacementAnimations[tostring(animationId)]
- if replacementAnimationId then
- playReplacementAnimation(animationId)
- end
- end
- end
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local function onBodyVelocityAdded(bodyVelocity)
- if bodyVelocity:IsA("BodyVelocity") then
- bodyVelocity.Velocity = Vector3.new(bodyVelocity.Velocity.X, 0, bodyVelocity.Velocity.Z)
- end
- end
- character.DescendantAdded:Connect(onBodyVelocityAdded)
- for _, descendant in pairs(character:GetDescendants()) do
- onBodyVelocityAdded(descendant)
- end
- player.CharacterAdded:Connect(function(newCharacter)
- character = newCharacter
- humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- character.DescendantAdded:Connect(onBodyVelocityAdded)
- for _, descendant in pairs(character:GetDescendants()) do
- onBodyVelocityAdded(descendant)
- end
- end)
- --[[Move 1]]
- local animationId = 129651400898906
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://100558589307006"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(0.1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(0.9)
- end
- end
- --[[END OF MOVE 1 ANIM]]
- --[[Move 2]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18896229321
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://76530443909428"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1.5)
- delay(4, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 2 ANIM]]
- --[[Move 2 miss]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18896232119
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://82694531595019"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0.5
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1.5)
- delay(3, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 2 MISS ANIM]]
- --[[Move 3]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18897119503
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://16746824621"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(4)
- end
- end
- --[[END OF MOVE 3 ANIM]]
- --[[Move 3 run]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18897115785
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://18897700236"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1)
- delay(2, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 3 RUN ANIM]]
- --[[Move 3 punch]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 18897118507
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://105811521074269"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 1
- Anim:Play()
- Anim:AdjustSpeed(1)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(0.6)
- delay(2, function()
- Anim:Stop()
- end)
- end
- end
- --[[END OF MOVE 3 PUNCH ANIM]]
- --[[Move 4]]
- humanoid.AnimationPlayed:Connect(onAnimationPlayed)
- local animationId = 106755459092436
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local function onAnimationPlayed(animationTrack)
- if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
- local p = game.Players.LocalPlayer
- local Humanoid = p.Character:WaitForChild("Humanoid")
- for _, animTrack in pairs(Humanoid:GetPlayingAnimationTracks()) do
- animTrack:Stop()
- end
- local AnimAnim = Instance.new("Animation")
- AnimAnim.AnimationId = "rbxassetid://113876851900426"
- local Anim = Humanoid:LoadAnimation(AnimAnim)
- local startTime = 0
- Anim:Play()
- Anim:AdjustSpeed(0)
- Anim.TimePosition = startTime
- Anim:AdjustSpeed(1)
- end
- end
- --[[END OF MOVE 4 ANIM]]
- -- Animation IDs
- local firstAnimationID = "rbxassetid://76530443909428"
- local secondAnimationID = "rbxassetid://105811521074269"
- local cancelAnimationID = "rbxassetid://95000469063288"
- -- Create the Animation objects
- local firstAnimation = Instance.new("Animation")
- firstAnimation.AnimationId = firstAnimationID
- local secondAnimation = Instance.new("Animation")
- secondAnimation.AnimationId = secondAnimationID
- local cancelAnimation = Instance.new("Animation")
- cancelAnimation.AnimationId = cancelAnimationID
- -- Assuming the player is the one running the animation (you can adjust this for other characters if needed)
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- Variables to keep track of animations
- local firstAnimTrack = nil
- local secondAnimTrack = nil
- local cancelAnimTrack = nil
- local cancelTriggered = false -- To track if cancel animation has already interrupted
- -- Function to play the second animation after the first ends
- local function playSecondAnimation()
- -- Stop the second animation if it's already playing
- if secondAnimTrack and secondAnimTrack.IsPlaying then
- secondAnimTrack:Stop()
- end
- -- Play the second animation
- secondAnimTrack = humanoid:LoadAnimation(secondAnimation)
- secondAnimTrack:Play()
- end
- -- Function to detect if the first animation is playing
- local function detectFirstAnimation()
- for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
- if track.Animation.AnimationId == firstAnimationID then
- -- First animation detected, start tracking it
- if not firstAnimTrack or not firstAnimTrack.IsPlaying then
- firstAnimTrack = track
- track.Stopped:Connect(function()
- -- When the first animation stops, play the second animation again
- playSecondAnimation()
- end)
- end
- break
- end
- end
- end
- -- Function to monitor cancel animation (only cancels once)
- local function detectCancelAnimation()
- for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
- if track.Animation.AnimationId == cancelAnimationID then
- -- If cancel animation is playing and it hasn't triggered yet
- if not cancelTriggered then
- cancelTriggered = true -- Mark cancel as triggered
- -- Stop the second animation if it's playing
- if secondAnimTrack and secondAnimTrack.IsPlaying then
- secondAnimTrack:Stop()
- end
- end
- break
- end
- end
- end
- -- Run detection continuously
- game:GetService("RunService").Heartbeat:Connect(function()
- -- Continuously detect the first animation
- detectFirstAnimation()
- -- Continuously check if the cancel animation is playing
- detectCancelAnimation()
- -- Reset cancelTriggered flag if no cancel animation is playing
- local cancelPlaying = false
- for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do
- if track.Animation.AnimationId == cancelAnimationID then
- cancelPlaying = true
- break
- end
- end
- -- Reset the cancelTriggered flag if the cancel animation is no longer playing
- if not cancelPlaying then
- cancelTriggered = false
- end
- end)
- local OriginalName1_1 = "Bullet Barrage"
- local OriginalName2_1 = "Vanishing Kick"
- local OriginalName3_1 = "Whirlwind Drop"
- local OriginalName4_1 = "Head First"
- local BaseMovesetName1 = "Idle Transfiguration"
- local BaseMovesetName2 = "Focus Strike"
- local BaseMovesetName3 = "Rushing Smash"
- local BaseMovesetName4 = "Hammer Fist"
- local OriginalName1_2 = "Grand Fissure"
- local OriginalName2_2 = "Twin Fangs"
- local OriginalName3_2 = "Earth Splitting Strike"
- local OriginalName4_2 = "Last Breath"
- local UltMovesetName1 = "Body Repel"
- local UltMovesetName2 = "Widespread Strikes"
- local UltMovesetName3 = "Black Flash"
- local UltMovesetName4 = "Instant Spirit Fist of Eradication"
- -- don't change
- local player = game.Players.LocalPlayer
- local playerGui = player.PlayerGui
- local character = player.Character or player.CharacterAdded:Wait() -- Get character
- local toolNamesToReplace = {
- ["1"] = {
- {original = OriginalName1_1, new = BaseMovesetName1},
- {original = OriginalName1_2, new = UltMovesetName1}
- },
- ["2"] = {
- {original = OriginalName2_1, new = BaseMovesetName2},
- {original = OriginalName2_2, new = UltMovesetName2}
- },
- ["3"] = {
- {original = OriginalName3_1, new = BaseMovesetName3},
- {original = OriginalName3_2, new = UltMovesetName3}
- },
- ["4"] = {
- {original = OriginalName4_1, new = BaseMovesetName4},
- {original = OriginalName4_2, new = UltMovesetName4}
- }
- }
- local function checkAndReplaceToolName()
- while character.Humanoid.Health > 0 do
- local hotbar = playerGui:FindFirstChild("Hotbar")
- if hotbar then
- local backpack = hotbar:FindFirstChild("Backpack")
- if backpack then
- local hotbarFrame = backpack:FindFirstChild("Hotbar")
- if hotbarFrame then
- for buttonName, toolDataList in pairs(toolNamesToReplace) do
- for _, toolData in ipairs(toolDataList) do
- local baseButton = hotbarFrame:FindFirstChild(buttonName) and hotbarFrame[buttonName]:FindFirstChild("Base")
- if baseButton then
- local toolName = baseButton:FindFirstChild("ToolName")
- if toolName and toolName.Text == toolData.original then
- toolName.Text = toolData.new
- end
- end
- end
- end
- end
- end
- end
- wait()
- end
- end
- checkAndReplaceToolName()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement