KEMBAR78
Fe Gojo Animation Script | PDF | Computer Programming | Software Engineering
0% found this document useful (0 votes)
3K views2 pages

Fe Gojo Animation Script

This script allows users to replace default animations in a Roblox game with a custom Adidas Sports Animation Pack. It defines various animation IDs for actions such as idle, walk, run, jump, and swim, and includes functions to replace these animations, ensure they loop, and debug the swim idle animation. Users are warned that the script has not been verified by ScriptBlox and should be used at their own risk.

Uploaded by

khawlajassim35
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views2 pages

Fe Gojo Animation Script

This script allows users to replace default animations in a Roblox game with a custom Adidas Sports Animation Pack. It defines various animation IDs for actions such as idle, walk, run, jump, and swim, and includes functions to replace these animations, ensure they loop, and debug the swim idle animation. Users are warned that the script has not been verified by ScriptBlox and should be used at their own risk.

Uploaded by

khawlajassim35
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

--[[

WARNING: Heads up! This script has not been verified by ScriptBlox. Use at
your own risk!
]]
-- Define the animation IDs for the Adidas Sports Animation Pack
local animations = {
idle = "rbxassetid://18537387180", -- Primary idle animation
idleAlt = "rbxassetid://18537376492", -- Alternate idle animation
walk = "rbxassetid://18537392113", -- Walk animation
run = "rbxassetid://18537387180", -- Run animation
jump = "rbxassetid://18537367238", -- Jump animation
fall = "rbxassetid://18537367238", -- Fall animation
swim = "rbxassetid://18537367238", -- Swim animation
swimIdle = "rbxassetid://18537387180",-- Swim idle animation
climb = "rbxassetid://18537367238" -- Climb animation
}

-- Function to replace the default animations


local function replaceAnimations()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

-- Wait for the Animate script to load


local animateScript = character:WaitForChild("Animate")

-- Replace each animation


for animationType, animationId in pairs(animations) do
if animateScript:FindFirstChild(animationType) then
for _, anim in ipairs(animateScript[animationType]:GetChildren()) do
if anim:IsA("Animation") then
anim.AnimationId = animationId
end
end
end
end

-- Handle alternate idle animation separately


local idle = animateScript:FindFirstChild("idle")
if idle then
local animAlt = idle:FindFirstChild("Animation2")
if animAlt then
animAlt.AnimationId = animations.idleAlt
end
end
end

-- Function to ensure animations loop


local function ensureAnimationsLoop()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

-- Wait for the Humanoid to load


local humanoid = character:WaitForChild("Humanoid")

-- Connect to the AnimationPlayed event


humanoid.AnimationPlayed:Connect(function(animationTrack)
-- Ensure the animation loops
animationTrack.Looped = true
end)
end

-- Additional function to debug swimIdle animation


local function debugSwimIdle()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local animateScript = character:WaitForChild("Animate")
local swimIdle = animateScript:FindFirstChild("swimIdle")

if swimIdle then
for _, anim in ipairs(swimIdle:GetChildren()) do
if anim:IsA("Animation") then
print("SwimIdle Animation ID:", anim.AnimationId)
anim.AnimationId = animations.swimIdle
print("Updated SwimIdle Animation ID:", anim.AnimationId)
end
end
else
print("swimIdle animation not found in Animate script.")
end
end

-- Run the functions to replace animations, ensure they loop, and debug swimIdle
replaceAnimations()
ensureAnimationsLoop()
debugSwimIdle()

You might also like