So i was handling bullets and other server stuff in one script but now when im adding damage for the guns i cant set the damage if bullet hits the character (im using fast cast redux so i cant do it just by "function(tool, idk, something, gunsettings cuz its Caster.RayHit NOT IN THE OnServerEvent) and im thinking about moving the bullet handler into every single of gun tools BUT will it affect the server preformance ?
1 Like
This will only cost performance if each script has some code that runs constantly, as opposed to being all events.
1 Like
use remote events on a local script for raycasting and then you can do damage on server
1 Like
Gun remote event is only fired on gun shoot, reload sounds and ammo change