This code is inside a local script in a button, but I don't understand what attempt to index local 'plr' (a number value) means or how to fix it, Please help!
Script:
local Animation = script.Parent.Animation
local button = script.Parent
button.MouseButton1Down:connect(function(plr)
wait(0.1)
local animeTrack = plr.Humanoid:LoadAnimation(Animation)
animeTrack:Play()
wait(1.5)
animeTrack:Pause()
end)
The error is on
local animeTrack = plr.Humanoid:LoadAnimation(Animation)
how can you fix this so that it will work and fix the error too?
If works/helped answer will be upvoted and accepted, thanks for trying or helped

2 comments
Thanks, upvoted and accpeted
You're welcome and thank you!