how to get animation id from intvalue (eg 7198237)
and if intval has no value/id it will wait till theres a value
local hum = script.Parent.Humanoid
local intVal = script.intValue
local anim = script.Animation.AnimationId -- idk where toput this lol
local LoadAnimID = "rbxassetid://"..intVal
local play = hum:LoadAnimation(LoadAnimID)
play:Play()
i already fix that
i think theres something todo with the, Local anim, like how do i apply the rbxassetid and the invtval
to the Animation.AnimationID = section
Are you talking about setting your LoadAnimID to your Animations’ AnimationId?
If this is correct, then simply do:
local anim = script.Animation -- I wouldn't reference .AnimationId in this variable. Just reference the Animation object instead.
local LoadAnimID = "rbxassetid://" .. tostring(intVal.Value)
anim.AnimationId = LoadAnimID