Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animation Not Working from Catalog Sword?

Asked by 3 years ago

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.

0
I loaded the module being required into my game and found the error. "local RbxUtility = LoadLibrary("RbxUtility")". LoadLibrary is not defined and therefore nil, and the nil value is being treated as a function (being called). appxritixn 2235 — 3y
0
Oh I see LoadLibrary is depreciated. Is there any way to go around this? It seems weird that they would not have updated this to be working for purchasable gear. wantingjam5125 0 — 3y

Answer this question