I really am not quite sure how to do this, I want to make this for my game. Basically I want a GUI at the top of the screen which shows how many studs a Player has travelled, and it stops when they stop, keeps going when they are moving.

4 comments

0

maybe use the :GetPropertyChangedSignal function and find out the difference between the starting point of their z-axis and y-axis, and ending point of their z-axis and y-axis. I don't really know because I am not that professional myself but hope you can do something with this info.

1

You could perhaps log the amount of time that they've spent walking (ie have a function he called when W or a controller or upwards arrow key is down) and then so long as the Walkspeed is constant, you can do something similar to totalStuds = totalTime * Walkspeed as the humanoid's walkspeed is the number of studs a humanoid travels a second.

0

you could save the position of the hrp into a variable when the character starts walking/running and save the position of the hrp into a variable when the character has stopped walking/running and then grab the distance between the two positions and add that distance to the total.

0

Why are these comment's not posted as answers?