So, I'm making a script to read the animation in module. This is the animation module.
return {
Properties = {
Looping = false,
Priority = Enum.AnimationPriority.Core
},
Keyframes = {
[0] = {
["HumanoidRootPart"] = {
["Torso"] = {
},
},
},
[0.5] = {
["HumanoidRootPart"] = {
["Torso"] = {
CFrame = CFrame.new(0, 0, 60),
},
},
},
[1.1] = {
["HumanoidRootPart"] = {
["Torso"] = {
CFrame = CFrame.new(0, 0, 60) * CFrame.Angles(math.rad(112.472), 0, 0),
},
},
},
[1.8] = {
["HumanoidRootPart"] = {
["Torso"] = {
CFrame = CFrame.new(0, -151.054, -2.569) * CFrame.Angles(math.rad(112.472), 0, 0),
},
},
},
}
}
And then i make it outputs the keyframe times of it. This is the script to output it:
local yes = require(workspace["Untitled Animation Clip"])
local t = yes.Keyframes
for i,v in pairs(t) do
print(i)
end
Expected output:
0
0.5
1.1
1.8
Instead this is what i got
0
1.1
1.8
0.5
