How would I make the smoothest ride system?

Hey Developers! :wave:

I have made many posts about this kinda topic but there result has not really been what I was looking for and don’t really all add together and work as I intend for them to work. I have tried many things but nothing is working for me so I have decided to make a detailed post on what I want my system to do and how I would like it to work to see if anyone could possible help me. I love theme park rides and attractions and make real life systems but in Roblox for different groups & for fun!

I use TweenService but I know when I have many Tweens running on the server it becomes very laggy for the players and I don’t want that. Now I am starting to advance my scripts & systems I am trying to run the systems of the LocalClient. For example, running the Tweens for the ride to work on the players client so it is REALLY smooth. I have managed to get the basic Tween running on the client by follow this YouTube Tutorial. I have found a problem with this tutorial / module though. When I try welding different parts to the TweeningPart it does not move the WeldedParts. (I have asked around on different platforms, such as discord, of why this is happening and how I can fix it but I got no real response why apart from the module not Replicating the welded parts. I was unsure on how to fix this.

So I have came here to ask on how I could make a really smooth simple system where there is a part that drops about 20 studs, waits at the bottom for 15 seconds and then returns slowly up to the original position. As stated above I know how to make this on the Server with TweenService but not on the client.

Feel free to suggest aso other and maybe better ways I can achieve my goal (For example, using Lerp) but please if it it possible I am not wanting to use Roblox Physics as I have heard that it is really not the best for what I am wanting to achieve.

Anyway, a massive THANK YOU to anyone who can help me. It will be very much appreciated :slight_smile:

(Once I have found a successful method I will be making a big DevForum post completely explaining how I did it for other upcoming developers who want to make theme park rides or anything really that relates to making a smooth tween system etc so they have something to learn from)

2 Likes

Are the Parts you have welded to the tweened Part Anchored? Only the tweened Part should be welded.

1 Like

Non of my parts where anchored apart from the TweenPart itself.

It works when I am server Tweeing but not when I use the LocalTween that I made by following the youtube tutorial that is linked in my original post.

Are you sure you followed the tutorial? As far as I know Anchored Parts are only handled by the Server. I haven’t seen how the tutorial says to do it and I can’t see how you did it. Triple check to see that the tutorial isn’t outdated, that you don’t have a spelling error in your script(s), that you aren’t using a serverscript when the tutorial says use a localscript (and vice-versa), and you have everything set up with the same hierarchy as in the tutoral.
Does the tutorial have welded Parts as well, or does it only deal with the Anchored Part? If it doesn’t then maybe it won’t work for your case.

Becomes laggy for the player? Like when I used to make elevators for tween service, and it would be rigidy?

I fixed this by using AlignOrientation and AlignPosition.

1 Like

The tutorial only uses 1 anchored part. I will double check and completely try it again.

I tried to look for more tutorials like this but I cannot find any good ones that I can clearly follow.

I have just heard on many posts that when you have lots of tweens running on a game it is very laggy. Like the part is very jittery.

consider using TweenService on the client side to create smooth animations for your ride system. You could also try using Lerp to interpolate between two positions to create a smooth movement.

I have also tried to lerp a little bit but it do not know how to run on the client. Would you know how and what I could try? :slight_smile:

Did anyone find any more info on how I could make a system? :slight_smile: