Animation Profiles
Animation Profiles Setup
info
Animation profiles are for replacing default roblox animation ids on player characters and R6/R15 NPCs. They do not work on custom rigs. If you want animation id configuration for all rig types see AnimationIds
.
First create a module inside of the Animations.Deps.AnimationProfiles
folder. It's name will be the name of the animation profile:
The animation profile (what the Zombie
module returns) is just a humanoidRigTypeToCustomRBXAnimationIds
table, as seen below:
-- Inside of `Animations.Deps.AnimationProfiles.Zombie`
return {
[Enum.HumanoidRigType.R15] = {
run = 616163682,
walk = 616168032,
jump = 616161997,
idle = {
Animation1 = 616158929,
Animation2 = 616160636
},
fall = 616157476,
swim = 616165109,
swimIdle = 616166655,
climb = 616156119
}
}
info
These animations will only work for an R15
character. Animation ids found here: https://create.roblox.com/docs/animation/using#catalog-animations
Now you can use the Zombie
animation profile. Example:
-- In a LocalScript in StarterPlayerScripts
local Animations = require(game.ReplicatedStorage.Animations.Package.AnimationsClient)
Animations:Init()
Animations:ApplyAnimationProfile("Zombie") -- We now have zombie animations instead of the default roblox ones.