While the character is in the middle of walking, I have this script run:
Plyr = game.Players.LocalPlayer.Character.Humanoid
Plyr.StateChanged(None):connect(function()
script.Disabled = true
end)
But when it tries to run, it just gives the error: attempt to call field 'Running' (a userdata value) (line 1).
What is wrong with this?

1 comment
Actually I just needed it to fire when the State changed to anything at all. None was just being specific (but not necessary). My problem was that even when I was using nothing after StateChanged, I had empty parentheses there (which needed to be removed for the script to work). Looking at your script made me realize that, so thanks!