This is the code. A localscript inside a tool. what is the error?
local anim = Instance.new(“Animation”)
anim.AnimationId = “rbxassetid://1188415703”
anim.Parent = script.Parent
anim.Name = “CardHold”
local key = script.Parent
local hum = game.Players.LocalPlayer.Character.Humanoid
local animTrack = hum:LoadAnimation(anim)
key.Equipped:Connect(function()
animTrack:Play()
end)
key.Unequipped:Connect(function()
animTrack:Stop()
end)

5 comments
Your quotations for the strings are the wrong character. Your quotations should look like a " and always face the same direction. This goes for every other major programming language as well.
i did that there’s only 1 quotation key in a keyboard lol
He is right, your quotation are off. They should be highlighting the words that they are qoutating. But there not.
add a wait for the character doesn't load immediately so add a wait(1) then the character should be loaded unless your connection is slow
i dont think roblox supports those kind of quotes, you can also try using ' or just copy and paste "