i want to make a function that handle multiple animation events by using conditional nesting. But i dont know how to get both animation event name and value.
Basically in Animations, there is a KeyframeReached event. You can use this to get the name of the keyframe, and then handle the actual animation.
So basically:
[ur animation track].KeyframeReached:Connect(function(kfName)
local eventName, eventValue = string.match(kfName, "(%w+):(%w+)")
if not eventName then
eventName = kfName
eventValue = nil
end
handleAnimationEvent(eventName, eventValue)
end)
so, like it separates a keyframe name into name and value?
hm… great idea, tysm
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.