How do I make it so that whenever a player walks actively, in return it gives +1 leaderstats, I know how to do it with functions (touched), but the only problem is I don't want to put it in ever single brick, is there a way to have just one script work for walking in general.
In general I want an explanation if possible.

7 comments
no more boring simulators plz
not sim but I can see where you're coming from lol
Maybe UIS enum to walking keys? Or a loop for walking with a :Changed in it? Im just brainstorming sitting in traffic sorry.
the :Changed might work but how exactly would I get it know the difference between on walking on a platform then just in air, or does it matter?
well, if you want to know if a player is in the air you can use player.Character.Humanoid.FloorMaterial it'll be Enum.Material.Air if their not on the ground. or you could use raycasting
they're*
interesting, alright thanks