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

trails for a car from what surface and how fast you are going?

Asked by 3 years ago

right now, I'm working on a game called mud runner for Roblox and what I want is, when i drive the car fast on mud, sand, or grass, the trail will activate and add a trail from whatever ground you are on, onto the back of the tires, and the bigger it is, depends on how fast you are going. if anyone can help me with it, please reply, I really want to make my game as realistic and full of content as possible when its done :D

0
I would check the speed of the car and what material it is touching then go from there! I recommend writing some code THEN ask for help. MAKE SURE YOU POST YOUR CODE!!!! l_diue 30 — 3y
0
What you can try doing is getting the speed (local speed = car.vehicleseat.AssemblyLinearVelocity.Magnitude) then get the material (if car.Wheel:GetTouchingParts()[1] then local material = car.Wheel:GetTouchingParts()[1] .Material end end) Then try creating a trail the amount of speed studs behind the wheel (gonna need toobjectspace for that) to detect how long the trail is. kepiblop 124 — 3y
0
so thank you for the help, but if i were to implement the code onto the car how would i do it? SplatSquadYT1 0 — 3y
0
im so sorry, but im new to scripting and not very familiar :(, but thanks for the help so far SplatSquadYT1 0 — 3y

Answer this question