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

Is it smarter to play animation on server or fire it to client with remote event?

Asked by
imKirda 4491 Moderation Voter Community Moderator
3 years ago

Hello, I've been reading on forums that playing animation on server is not the best thing for players, my script makes play animation for all players in certain region at a certain time, since it is working with one server script and some modules i've been thinking that i should play the animation in the server script, so the question is: Should i play the animation in the server script? Or should i make remote event and fire to client to play the animation, what would be BIG smart? Thanks, kirda grrr

1
do the second, as you can control it better User#34929 0 — 3y
0
Thanks all for help! imKirda 4491 — 3y

2 answers

Log in to vote
3
Answered by 3 years ago

It's better to play an animation on the client if it's being played on a player's character. But if it's for playing an animation on an NPC(that doesn't have a client), then you can just fire the animation on the server.

Hope this helped

Ad
Log in to vote
2
Answered by
Axenori 124
3 years ago

Animations transfer between client-server boundary, so playing an animation on a local script would still make it show for other players. You can therefore play it where ever you want, remote events not needed

0
but what about debouncing? It wouldnt be possible on the client... User#34929 0 — 3y
0
^ What do you mean??? You can implement debouncing on the client. brokenVectors 525 — 3y

Answer this question