Gaabory
(Gabory)
February 11, 2024, 5:19pm
#1
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?
Gaabory
(Gabory)
February 11, 2024, 5:40pm
#3
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 .
Gaabory
(Gabory)
February 11, 2024, 5:59pm
#5
Thank you very much for this! I am very tired and Iām struggling to notice these little things
1 Like
system
(system)
Closed
February 25, 2024, 5:59pm
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.