i have this ui and i have a module doing this : ```lua local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CatStats = require(ReplicatedStorage.Assets.Cats.CatStats)
local CatShopData = {}
function CatShopData:LoadCatShopData(Frame : Frame)
if not Frame then return end
if Frame.Parent == script.Parent then
local CatName = Frame:FindFirstChild("CatName")
local Price = Frame:FindFirstChild("Price")
local MoneyPerClick = Frame:FindFirstChild("MoneyPerClick")
CatName.Text = Frame.Name
Price.Text = CatStats[Frame.Name].Price .. "$"
MoneyPerClick.Text = "+" .. CatStats[Frame.Name].MoneyPerClick .. "$ Per Click"
else
warn("Script is not parent of " .. Frame.Name .. " Frame")
return CatShopData
end
end
return CatShopData ```
i have a script not a local script doing thjis inside the frame: ```lua local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CatShopData = require(ReplicatedStorage.UI.CatShopData)
CatShopData:LoadCatShopData(script.Parent) ```
what is wrong?