Hello, I am using Rolimon’s API (module created by OptimisticSide) and I have recently been receiving an error (I have not edited the script since and it has worked perfectly fine in the past) that causes the whole script to break due to not being able to identify the item table in the module. I am not to familiar with API’s or modules. Does anyone know why this might be?
Script
local Item = Rolimons.Get("Item")
--local item = Item.new(8274214179)
--script.Parent.Value = tonumber(item.BestPrice / 10)
wait(1)
function GetLimitedPrice()
local item = Item.new(8274214179)
script.Parent.Value = tonumber(item.BestPrice / 10)
return item and item.BestPrice
end
while wait(10) do
GetLimitedPrice()
end
Output Error
API Item Module
local Formatter = require(Package.Formatter)
local Http = require(Package.Http)
local API = require(Package.API)
local Item = { }
Item.__index = Item
function Item:GetData(): table
return API.GetData("Item", self.Id)
end
function Item:UpdateData(): nil
local NewData = self:GetData()
for Name, Element in pairs(NewData) do -- [Line 20]
self[Name] = Element
end
end
function Item.new(ItemId: number): table
local self = setmetatable({ }, Item)
self.Id = ItemId
self:UpdateData()
return self
end
return Item