im stumped on this code, its output error says the the load animation cant be nil, but i can seem to figure it out
local psuedoanimetrack
local playablity = true
local ape = script.Parent
local animetable ={
idle ="http://www.roblox.com/Asset?ID=1265687850",
run ="http://www.roblox.com/Asset?ID=1265540413"
}
function playdaanime (animName,humanoid)
local anin = animetable[animName].anin
psuedoanimetrack= humanoid:LoadAnimation(anin)
psuedoanimetrack:Play()
end
function runs(speed)
if playablity and speed >0 then
playdaanime("run",ape.Humanoid)
else
playdaanime("idle",ape.Humanoid)
end
end
ape.Humanoid.Running:connect(runs)

1 comment
thanks, got it working, though still some bugs