Hi fellow devs.
So i want to load all these animations and save them to variables with loop and make it universal so if i change amount of values it will still work.
Values like “FirstRig” and “SecondRig” are object values that contains rigs itself.
and script create variable for each rig and load animations.
i dont know how to realize it because i dont know how to make variables different like
for i,v in pairs(script.Parent.Animations:GetChildren()) do
local ["Rig name here"]ThrowAnimationTrack = "path to rig".AnimationController.Animator:LoadAnimation(ThrowAnimation)
local ["Rig name here"]GrabEndAnimationTrack = "path to rig".AnimationController.Animator:LoadAnimation(GrabEndAnimation)
local ["Rig name here"]GrabStartAnimationTrack = "path to rig".AnimationController.Animator:LoadAnimation(GrabStartAnimation)
local ["Rig name here"]GrabLoopAnimationTrack = "path to rig".AnimationController.Animator:LoadAnimation(GrabLoopAnimation)
end
Giving an idea of realizing or way to achieve will be enough, thanks!