Changing properties of model in replicated storage for specific player using a server script?

This may be an issue I cant fix due to how the gun system im using is set up

So the weapon models are stored in a folder inside Replicated storage rather than a toolmodel and my script which currently changes the colours of every part inside the weapon model is done using a server script, doing this changes it for every user rather than just the one who activated it.

Using a local script would probably fix it (would everyone even be able to see the changes?), but that would allow it to be exploitable as users can then just change the properties of the weapon themselves in the local script

So is their a way to do this using a serverscript still without it being replicated to everyone?

Example of how its set up
image
(the weapon models is always only in this ā€œmodelsā€ folder, never gets copied to a toolmodel)

Really dont have a clue if itll be possible but any suggestions or alternatives are appreicated

Edit: my intial alternative was just having a seperate weapon for each skin which would be pretty simple but add a lot of additional weapons which all have to be saved then loaded in etc

Presumably youā€™re copying the models into the player somehow? Why not just change the color of the copy instead of the original?

1 Like

No this never happens, the model is always kept inisde of replicated storage

Then I guess I donā€™t understand how each player would have their own skin, if thereā€™s only a single model?

Yes that is the problem, I was hoping their might be a way around it but that doesnt look possible, ill just make an individual model for every skin

You can make clone of gun and change properties that you want to change. And give it to player.

But how does a player actually get a weapon? It canā€™t just say in ReplicatedStorage forever, right?

Or give ā€˜Modelsā€™ folder to each player when player join. Then you can change with ServerScript.

Yeah it does, im not totally sure on the ins and outs of how the weapons system operates

but here it is in the backpack:
image
and everyone can see it:

Anyway ill just move on to the other method of doing skins by having a seperate weapon for every skin but thanks for the help

If you want to do that, thatā€™s fine. You could also mention what system youā€™re usingā€”it looks like it might do something weird like Clone() the model from replicated storage only when you equip it or something.

Its alpha engine (from the guy who made carbon engine) ill look around to see if it ever gets sent to the player as im not sure how it could only ever be in replicated storage but thats what it looks like from a glance

From what I can tell, thatā€™s a paid-for engine, right? The authors will give you better support for your question than the forums could. Iā€™m pretty sure they have a discord.

Yeah ill ask around, thanks anyway