I’ve been cracking my head on this for days, and I cant seem to get the answer I want.
So I’m just making a melee system, and I have a dilemma on where to run the animations
If I run them on a local script, exploiters could easily run the anim again and confuse players,
If I run them on a server script, I negate this problem but I do stress my server into doing unwanted work when I could’ve just done it on the local script.
So im just interested on your thoughts about this.
I see no reason not to run them locally. They’ll automatically replicate to the server.
If you’re determined to have them be exploit-safe, you’re forced to play them on the server.
It’s not really a good reason to be worried on where you should be handling Animations, Animations are more of a Detail Aspect of the game, and Details should be handled on the Client to avoid latency and other Networking Issues, while the Main Components like maybe a Ray or a Region3 for anything you use to maybe caclulate Damage or maybe an Explosion’s Range are to be handled on the Server.
What @Negativize says wouldn’t be exactly true, nor would it actually help with what you think, You have to Keep in Mind that Any Exploiter can simply say to Play an Animation on the Client, It could be any animation, and it may be an Animation that you have for the Weapon, and that said Animation would Replicate to the Server for everybody to see, which would undermine the protection for what you were trying to prevent. There is only so much that the Server can handle, but utilizing it in this way would just a burden to the Server rather than a Benefit.
Plus, your Animations like your Walking, Running, and Jumping Animations that Roblox has Provided you are all Handled on the Client if you have ever looked at what your Character is Animated with.