Get ID from AnimationId

k so you know how the animationId is “rbxassetid://69420666” right? I tried multiple ways but mostly resulted in error bc cant much use string. etc. Anyone can help me just get the id FROM the script?

3 Likes

this is the id 69420666 this is it

1 Like

f u n n y, right? I meant like the script gets the id from the animation

If I recall, You could do some string matching get the digits part only

local animationId = "rbxassetid://69420666"
local id = animationId:match("%d+") --Gets digits only

print(id) --69420666

It should work as I tried a similar thing out and it worked for me, if you want the id as a number, remember to tonumber the result

local id = tonumber(animationId:match("%d+"))
2 Likes

I didnt knew this function existed. Thank you

1 Like