The problem is that I had someone else help me outside the forum. The solution was much more complex in the case of how i have scripted my NPCs. and required a couple different factors in scripting it, hence why there is no solution within this forum post. if you would like i can post the moduleScript that we made for reference, but I am not sure how much it will help.
I have been tackling my NPC issue for about half a year, so i try to learn from every similar issue⌠if its not too much trouble and you donât want it shared with everyone, you can message me directly and I would be very appreciative.
Just watch out for the tool if itâs in Replicated storage, the exploiter can take it illegally. And thatâs why I use ServerStorage, but otherwise it doesnât matter where itâs located.
Please explain what you mean by they can take it illegally.
niÄ, len som odpovedal @TortenSkjold, only the translator translated it incorrectly
I meant they can put it in their inventory if itâs in replicated storage.
I tested it on one gun. Other players did not see the weapon (in his hand), but when he fired (sent a remote event to the server), he could actually use it and cause chaos. (for example, a weapon that could be acquired)
but this has nothing to do with this topic (only that I prefer to use ServerStorage as I mentioned, but otherwise it doesnât matter.
I agree, but I think itâs better to clone a new one from server storage.
This service behaves similarly to
ServerStorage
except that its contents are replicated.
Then youâre not checking correctly on the server, if they can do damage with an item they donât have.