I’m just trying to figure out how to play an animation of a model once that model spawns into workspace. I’ve tried this so far but it’s not working.
local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local animationTrack = humanoid:LoadAnimation(animation)
local normalSpeedTime = animationTrack.Length / animationTrack.Speed
animationTrack:AdjustSpeed(3)
if workspace:FindFirstChild("Map1") then
wait(10)
animationTrack:Play()
end