Hello fellow developers. Weapon Kit is a famous weapon system. I also use it in my game. However, I faced a problem recently.
I have a datastore which stores players weapon when they leave and give back to them when they rejoined the game. It works fine when I use normal tools. But when I try to save the weapons Weapon Kit, it simply doesn’t work. What do I mean by “doesn’t work”? Normally, when a player leaves, I insert all the weapon’s name into a table and save it with DataStore. When they join back, I use a for loop to run through the table and clone the weapons to player.Backpack. However, I tried multiple times, when the Weapon Kit starts to setup by itself, it simply deletes all the weapons in player.Backpack. I tried to wait it to setup before cloning the weapons to player.Backpack. But it doesn’t work. How do I disable the weapon system’s deletion upon joining?
Any feedback/helps are appreciated!
2 Likes
How long did you try to wait for it to setup before cloning the weapons to player.Backpack? I would recommend hardcoding a 10 second wait before trying to load the weapons in, and if the issue still persists, I would try deleting the ‘WeaponsSystem’ folder from the cloned weapon before giving it to the player. If it still doesn’t work, show me your cloning script and I’ll try to help you out further.
Also, just realized this is quite old lol, are you still even having this problem?