hey, does anyone know how to fix this problem? I’m trying to get the time between a KeyframeMarker
to another KeyframeMarker
, but it doesn’t seem to be working, as it’s throwing an error
transformation_event.OnServerEvent:Connect(function(player, animator)
local start_transform = anim_track:GetTimeOfKeyframe("transform")
local start_manifest = anim_track:GetTimeOfKeyframe("manifest")
local period = (start_transform - start_manifest)
print(start_manifest)
print(start_transform)
print(period)
anim_track = animator: LoadAnimation(animation)
manifest = anim_track:GetMarkerReachedSignal("manifest") transform =
anim_track:GetMarkerReachedSignal("transform")
anim_track:Play()
transform:Connect(function(param)
anim_track: AdjustSpeed(0.0001)
--shake_event:FireClient(player, period, 200)
task.wait(param)
anim_track:AdjustSpeed(1)
end)
end)
it’s saying that the keyframe doesn’t have a name, however I already set their names
if anyone has any solutions, please let me know! thank you