So, today I wanted to make an animation (Lets say a dance animation.) where you had a gui where u could press something and dance or do other cool emotes, then I made the module script a require(###) so if I would be in a different game were I had owner I could import it and do the same fun stuff. but, the animations arent working cause the account that made that game isnt me. so I made KeyframeSequence and used HashId’s to make the animations IN the files. but it still didnt work, it only worked in my games even tho the animation was In the game with all Keyframes. I tried doing other things but nothing work. I dont wanna upload all animations again on my friends account cause thats annoying. thats the main reason why people use CFrames for animations I guess. Welp if theres anyway how to make animations work on other games please tell me.
Script I used to convert the keyframes to hash ids
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
for _,i in pairs(script.Parent:GetDescendants()) do
if i:IsA("Animation") then
local hashId = KeyframeSequenceProvider:RegisterKeyframeSequence(i.Clip)
if hashId then
i.AnimationId = hashId
end
end
end