Changing default animation

it’s this thing

Are you sure you’re getting it’s right id and not the entire animation package itself?

yeah i’m taking ids from here

Are you sure you’re doing this with an r15 character? (Just want to make sure)

yea i’m dong that with r15 character

Could you try linking/uploading your place that has the animation script inside it so I can see what the problem is?

Any errors? (I’m about to go soon)

in the humanoid Description there’s an error , but in the animate script no errors

Are you sure you’re adding the humanoiddescription like so?

-- Stop automatic spawning so it can be done in the "PlayerAdded" callback
game.Players.CharacterAutoLoads = false
 
local function onPlayerAdded(player)
	-- Create a HumanoidDescription
	local humanoidDescription = Instance.new("HumanoidDescription")
	humanoidDescription.HatAccessory = "2551510151,2535600138"
	humanoidDescription.BodyTypeScale = 0.1
	humanoidDescription.ClimbAnimation = 619521311
	humanoidDescription.Face = 86487700
	humanoidDescription.GraphicTShirt = 1711661
	humanoidDescription.HeadColor = Color3.new(0, 1, 0)
	-- Spawn character with the HumanoidDescription
	player:LoadCharacterWithHumanoidDescription(humanoidDescription)
end
 
-- Connect "PlayerAdded" event to "onPlayerAdded()" function
game.Players.PlayerAdded:Connect(onPlayerAdded)

(Its on the developer hub article)

oh i found out the problem, for some reason, walkspeed 16 counts as “Run” and i’m setting up just a “Walk” animation

it doesn’t work anyway, im trying to do the “Change an Existing Character’s Animations” but everything i do won’t work, it always gives this error Screenshot by Lightshot

you did Humanoid:: instead of Humanoid:

nah it’s not the problem, i didn’t did humanoid::

my script:

game.Players.PlayerAdded:Connect(function(player)

player.CharacterAdded:Connect(function(char)

local humanoid = char and char.Humanoid

if humanoid then

local descriptionClone = humanoid:GetAppliedDescription()

descriptionClone.WalkAnimation = 734326330

humanoid:ApplyDescription(descriptionClone)

end

end)

end)

I don’t see you load the animation anywhere. When you create a new animation, you need to load it into the humanoid with the :LoadAnimation() function. If you want to avoid doing this, don’t delete the old animation. Just change the animation ID of the existing animation

So instead of deleting the children of “walk”, just change the AnimationID of walk.WalkAnim.

Let me know if this was helpful.

nvm i solved it, i just did exactly what roblox did but instead of pressings button fire the event i made that characteradded will fire the event

1 Like