maumau94
(Mau)
January 14, 2021, 8:32pm
#1
Hello! I was wondering how would i be able to to keep track of the Roblox Basic Car’s Speed.
I want to use it to display it as a text and to make the car sounds smoother, as well as making the car system smoother too
Here is a link to the car im talking about:
https://developer.roblox.com/en-us/articles/building-carkit-1
You anyone could help me out that would be great!
Thanks for reading:D
heII_ish
(heII_ish)
January 14, 2021, 8:37pm
#2
You can probably just track the car body’s velocity
workspace.Base.Velocity.Magnitude
1 Like
maumau94
(Mau)
January 14, 2021, 8:40pm
#3
I will try it out, im a programmer but i don’t have too much experience with these types of systems
maumau94
(Mau)
January 14, 2021, 8:43pm
#4
I also wanted to ask how could i covert the speed text into MPR?
heII_ish
(heII_ish)
January 14, 2021, 8:47pm
#5
MPR? Did you mean miles per hour?
maumau94
(Mau)
January 14, 2021, 8:50pm
#6
yea i did, or some way to make it easier for players to read
heII_ish
(heII_ish)
January 14, 2021, 8:59pm
#7
According to the roblox world panel, 16 studs = 4.48 meters, therefore 1 stud = 4.48 / 16 = 0.28 meters. Knowing that 1 stud is 0.28 meters, you can easily convert the velocity in studs to meters and then to KMH or MPH. (1 kilometer = 1000 meters, 1 mile = 1609 meters)
2 Likes
maumau94
(Mau)
January 14, 2021, 9:00pm
#8
Is there an article on dev hub or here on the forum that i could read on?
heII_ish
(heII_ish)
January 14, 2021, 9:04pm
#9
About what? Converting distance units?
maumau94
(Mau)
January 14, 2021, 9:06pm
#10
yes, please it would help me out a lot
heII_ish
(heII_ish)
January 14, 2021, 9:10pm
#11
Just use the search bar or google it.
How come that 1 stud per second is 44 miles per hour.
local function toMPH(x)
return x * 20 * 2.237
end
print(toMPH(1))
44.74
1 Like
maumau94
(Mau)
January 14, 2021, 9:11pm
#12
Thank you so much for the help i appreciate it:D