-
What do you want to achieve?
It’s been a year since i tried this. I’ve been trying to make FE Gun Kit to have only ONE Gunscript_Local controlling all the tools using CollectionService. (Originally, the Gunscript_Local is copy pasted into every tool as part of the setup to make it work) -
What is the issue?
The code works as it is supposed to be only for 1 gun, There seems to be a rendering problem on the other tools when it’s tested with multiple tools. It says that i’ve been trying to index nil with ‘GetDescendants’ which i don’t know how to fix that.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Using Tables supposedly solve the problem, But i’m not sure how to use it.
Here’s the code. It’s been months since i tried to fix the script to work for all weapons that was tagged, But there seems to be still a problem
Gunscript_Local with CollectionService problem - Pastebin.com
The problem that was reported in the output leads me to line 587. I would appreciate it if you found a solution for my problem, and I would be very glad if someone gave me a better way to organize the scripts and thing.
Edit: LoadsOfMoney123 suggested me with the CollectionService so thanks to him for helping me achieve my goal! This is the current problem now.