(Solved) How would I go about making a stud counter like a dusty trip

I want a stud counter like A Dusty Trip inside of my game, but I’m unsure how to exactly do that. so if anyone knows how I could do that please help!

Thanks in advance.

From what i see they just take the distance in 1 of the axies and take the absolute value, then they mutliply it by some constant to either speed it up or slow it down, after all that you just display it in some label using some loop or event that loops

To calculate distance for specific axis(for dust trip its either X or Z):

--not absolute so we also have negatives depending on direction
local distance = currentPos.Z-startPos.Z

To calculate distance between 2 3D points:

local distance = (currentPos-startPos).Magnitude
print(distance)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.