Invalid animation id '<error: unknown AssetId protocol>

	local animation = Instance.new("Animation")
	animation.AnimationId = animId
	return animator:LoadAnimation(animation)
end
local equipTrack = createTrack(properties.EquipAnimation)

Says the error is coming from here but I checked the module where the assetID is and there is nothing wrong with it the ID is valid.

1 Like

Did you initialized a variable which contains your animationId in your code?

Yeah its in my modular script

local self = {
	
	HealingAmount = 50,
	
	OneUse = true,
	HealingCooldown = 1,
	
	-- Animations
	EquipAnimation = "rbxassetid//16331158425",
	HealingAnimation = "rbxassetid//16331165125",
	AnimationDuration = 3,
	
	HealingSoundProperties = {
		SoundID = "rbxassetid://444675291", RollOffMaxDistance = 35, RollOffMinDistance = 15, RollOffMode = Enum.RollOffMode.InverseTapered, Volume = 0.25, TimePosition = 0.8
	}
}

return self

The correct format is rbxassetid:// + digits. The animation IDs are missing a colon.

List of all asset formats: Assets | Documentation - Roblox Creator Hub.

Thank you very much for this! I am very tired and I’m struggling to notice these little things :sweat_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.