Do this uses Tween or RunService?

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?

1 Like

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.

1 Like

I would guess it applies a force only, also you’re in Studio so just look at the code lol

1 Like

not my studio, someone else. And applying force make sense.

Could you tell more

1 Like

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.

1 Like

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.

1 Like

could you give a code sample for any of the things you mentioned, I have never used velocity related stuff.

1 Like

Can i something that can run on client side. I dont how much server can handle. Anyway to do this on client side??

1 Like

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