ok this error has been coming up for soo long: LoadAnimation requires the Humanoid object (DragonSpawner12.Humanoid) to be a descendant of the game object

Here is my code:




local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
 
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://5595931188"
local animation = humanoid:LoadAnimation(anim)


I HAVE SEEN SO MANY ARTICLES NOT SOLVING THIS!

PLEASE Help me!

Edit: thanks for the inspiring comments

1 comment

0

you should probably use remote events and such if you want the animation to show for all players