Question on VFX & SFX

ive read up about VFX lately for constructing my explosion system.

most people say to keep your VFX client sided because it’s laggy to do it on the server side or something from what i saw in a few posts?

so i thought about it. since my system is projectile orientated should i do :FireAllClients() and activate the VFX on the client side from there instead of doing it on the server? and if so should i do the same for sound effects and stuff or should i keep that on the server side?

my assumption is that i should probably keep the sound effects on the server side and the VFX on the client side. tysm! ^^

Hello

Server Responsibilities

  • Handle gameplay logic (damage, scoring, etc)
  • Ensure security to prevent cheating
  • Notify clients of relevant events using :FireAllClients() or :FireClient()

Client Responsibilities

  • Handle visual-only elements (particles, screen shake, UI effects, etc)
  • Play most sounds

Client-side sounds

  • Cosmetic or positional sounds (explosions, gunshots, footsteps, environmental noises, etc)
  • These don’t affect gameplay mechanics
  • Clients can play them locally for performance and smoothness

Server-side sounds

  • Global or gameplay-critical sounds (round start/end alarms, timers, announcer calls, etc)
  • These must be triggered by the server to ensure all players hear them at the same time
  • If left to the client, some players could miss them due to lag or desync
1 Like

thanks a million for the valuable info vinyl, i appreciate that a lot!

just for some clearance, i would also play throw animations for example like an animation for throwing a grenade on the client side as well right? i just want to make sure that everyone can see the animation and that i’m scripting it correctly.

yes, playing an animation client sided will be replicated to the server

1 Like

legend. cheers for clearing that up!!!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.