Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a GUI that shows how many studs a Player has travelled?

Asked by 4 years ago

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.

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. kingblaze_1000 359 — 4y
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. Ortron 27 — 4y
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. ryan32t 306 — 4y
0
Why are these comment's not posted as answers? ScuffedAI 435 — 4y

Answer this question