So, I’ve been trying to add an Equip animation to an rpg game I’m creating, and for some reason, Whenever I seem to add one in to a Weapon’s data, as seen in this example:
["Wooden Sword"] = {
Damage = 10,
Cooldown = 1.5,
Radius = 4,
AttackDuration = 0.5,
Price = 0,
Animations = {
Equip = "rbsassetid://88482116702026", -- This one is the problem
Idle = "rbxassetid://103578833632940",
Slash = "rbxassetid://136117715600077",
},
}
Now the weird part is that it ONLY seems to have a problem with just the Equip animation, and no matter what Id I put in that field, it just doesn’t work. It always gives me the same error code:
Invalid animation id ‘<error: unknown AssetId protocol>’
That part confuses me, since, if I commented the Equip Animation section, it just doesn’t seem to bug out, and I’ve tried many things to get it working. I changed the Animation ID, switched the order of the anims, I even Changed the name of the Equip itself (ToolEquip, EquipTool, etc.) and still the same error occurs.
Unsure if it’s because of the way the Animations are loaded in, since this is how they are loaded in, on the client
function Weapon:LoadAnimations()
local Animations = {}
for AnimName, AnimId in self.Data.Animations do
local AnimObject = Instance.new("Animation")
AnimObject.AnimationId = AnimId
task.wait()
Animations[AnimName] = self.Animator:LoadAnimation(AnimObject)
end
return Animations
end
It works, but only if it doesn’t include the Equip, so I’m just so puzzled by this weird conundrum I’ve found myself in. All I’m trying to do is load the Equip anim as well so I can actually use it for weapons. Any Help is appreciated.