So this is a Kart race game and on click it increases player speed, but i dont know what math to use to make a system like this where player have a certain speed when he have certain score. And while racing it should increase that speed when clicked.
DO this uses tween?? idts cause if this uses a tween then how can we change a running tween?
TweenService:Create() returns a tween, which can have :Play() and :Stop() called on it. So yes, you can stop a tween. If they were using TweenService, they were probably setting it to :Stop() and every click momentarily doing :Play() to make you go forward again.
just change the cart’s velocity based on your score. If the cart uses wheel stuff, make them spin faster. If it uses forces, make the force stronger, if it uses velocity stuff, increase the velocity. etc.
Using a VectorForce or whatever it was called, just give it a force and delete it after x time, if the user clicked, don’t delete it, if it’s a single part u can use ApplyImpulse if you want, but that’ll also give acceleration.
I don’t really use those stuff either. What I was trying to say is that the way you do this depends on your system. since but whatever your method to make the carts move is, you would just need to constantly update the speed/power of your method to match the score