-
What do you want to achieve?
I wanted to make a progress bar that got animation and shows 0% to 100% of the player and the distance to a part to make a working racing system -
What is the issue?
I’ve tried making one using Walkspeed and stuff and it did not work well, they are just not accurate. -
What solutions have you tried so far?
I’ve tried to look for solutions for them on YouTube and DevForum but I cannot find any, so I deleted the script and came up here to ask
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
1 Like
For the progress bar, search up about TweenService
Everything else is unclear. What do you mean by using walkspeed “and stuff”? I don’t see why you would need distance to a part for a racing system.
I’m trying to find the distance as I wanted for the progress bar to move its percentage based on the player and how long it takes to reach the end to estimate the race progress they made
You can find the distance between 2 parts using magnitude.
local magnitude = (workspace.Part1.Position - workspace.Part2.Position).Magnitude
print(magnitude)
This should print the distance between these 2 parts, except in your case, make one of the parts the humanoid root part.