So I discovered that humaoid:LoadAnimation() is depreciated but I can’t figure out another way to load an animation.
I saw in the Roblox Developer Educational Page that they use the “Animator” in the character to load animations but I can’t insert this “Animator” property.
What other ways can I load an animation to the character/NPC?
Current Code:
local animationwave = Instance.new("Animation")
animationwave.AnimationId = "rbxassetid://7008128758"
local animationpoint = Instance.new("Animation")
animationpoint.AnimationId = "rbxassetid://7213070154"
local waveTrack = script.Parent:LoadAnimation(animationwave)
local pointTrack = script.Parent:LoadAnimation(animationpoint)
waveTrack.Looped = true
wait(1)
waveTrack:Play()
wait(5)
waveTrack:Stop()
wait(1)
pointTrack:Play()