I'm trying to create a sword shop and I have all the swords in ServerStorage. When you select your weapon, it saves it as a string value stored in your player and then at a certain point in the game, the sword is cloned into your backpack. Some swords I selected work perfectly, and others do not do damage and the animation does not work. In order to trouble shoot, I added them to StarterPack and they still do not work. There is an error in the console:
19:03:59.869 Model.MainModule:5: attempt to call a nil value - Studio 19:03:59.869 Stack Begin - Studio 19:03:59.869 Script 'Model.MainModule', Line 5 - Studio 19:03:59.869 Stack End - Studio 19:03:59.869 Requested module experienced an error while loading - Server - SwordScript:7 19:03:59.869 Stack Begin - Studio 19:03:59.869 Script 'Players.wantingjam5125.Backpack.BambooKatana.SwordScript', Line 7 - Studio - SwordScript:7 19:03:59.870 Stack End - Studio
All the swords are loaded into the game using the "Load Catalog Items" Plugin by rxdesire. The lines of code this refers to is:
--// Made by StarWars local Tool = script.Parent local Handle = Tool:FindFirstChild("Handle") if not Handle then return end local Sword = require(754568173)
I figure the problem doesn't lay in the code as it is written by a ROBLOX developer so I'm thinking it might be something I'm overlooking? Again, it is in StarterPack and does not work so I do not believe it is my code to clone into the backpack that is wrong.