Hello, i made a game but its unplayable for some people because the animations lag too mutch. So people will fall behind on the animation because it needs to be correct for every player to look good and i dont know how to achieve it
should i try tweens or should i stick to the animations, because i think tweens will fix the flying player issues but it will take hours to make it good
this is how i sorted my model, You can see the mainShip model thats the model that animates the ship, Thank you for your help
Hmm, are you making a titanic styled game? If so I definetly suggest using tweens since the animations are just moving parts I assume (the titanic moving). Animations heavily depend on latency and can be a trouble, also if you are playing these animations from the server I suggest changing it to the client since it will still replicate to all players.
A better solution would be to never animate / tween the titanic in the first place but rather move the sea and iceberg itself to create a “moving” effect.
By animations, do you mean the ones with AnimationTracks? Remember you need to upload them on the website, meaning they can take time loading, and so creating queues that might harm your performance. Tweens seem like a better option in your scenario.
You can try replicating tweens by using a basic replication system:
A folder where you store your TweenInfos.
A server script (your script) that fires the event to every clients (if it’s server-based)
An event in ReplicatedStorage
A local script in StarterPlayerScripts that, when the event in ReplicatedStorage fires all clients, creates and plays a tween according to three arguments: the object, the TweenInfo you stored and the TweenGoal.
After the time the tween takes + 1 second in term of security, make the server script position the object at it’s desired goal. This makes the animation smooth for every client, and doesn’t overload the people’s devices.
adding onto ALonelyGalaxy, using tweenservice is a really good way to animate smoothly in your game, but you must also learn how to use BetterTween. BetterTween essentially creating a tween on the server which will send all the information the tween holds to the every single client (player). so that way, every single client plays the tween locally on their copy of the game so it looks nice and smooth instead of being choppy.
you should consider using tweenservice and bettertweens because it wont result in higher network usage from your server to your clients.
(incase you dont understand what im saying in this post, just respond and ill edit it so you can understand)
Oh. Well, then try playing important tweens like the ones for parts with collisions (like your boat) in the server. Considering how you already debloated stuff by putting most tweens in client, the server should handle the important ones flawlessly.