Whenever doing weapon systems just do it all on the server. All ya need for a weapon to even work in the first place is the time when the player needs it (Which would be a remote event firing the server) in this case.
A projectile system all ya need is the remote event of course, and the coordinates of where the player’s mouse is pointing or the 3D coordinates of the mouse depending on what you’re doin.
Just use the client to get your simple stuff then have the server do the important stuff for ya.
The exploiters won’t find any need for scripts grabbing the mouse position because that’s already all over the internet.
Im aware, again I like modules so I put everything in modules, any client functions for weapons would also go in said module so Id leave it in rstorage. But anyhow any server modules will not be exclusive to the server, as thats what I am doing now
What part of your weapon system are you needing to replicate to the client? If you don’t mind me asking, you can be vague, but then again there’s a lot of systems out there.
Mainly just getting the information for the weapon, which I store in a module, I also have a setup weapon function in the module so those things.
I hope ya know if the module is in replicatedstorage the exploiter can change the information on the weapon, given that the information contains the damage and whatnot. Just store the module in serverstorage then just have ur weapon system (Inside serverscriptservice) reference it. The client does not need that since serverscriptservice will be the one dealing the damage to the player.
You kinda got the spirit, however, you should give both of these posts a good read.
1 Like
Dont worry, they can change the info on the client, but not on the server so its not an issue how im doing it
1 Like
I think exploiters yoinking your scripts should be the least of your concerns
2 Likes