i have this problem:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Plot = workspace:WaitForChild("PLOT")
local Player = game.Players.LocalPlayer
local leaderstats = Player:FindFirstChild("leaderstats")
local Cash = leaderstats.Cash
local CatsHandler = {}
function CatsHandler:GetCatToPlot(Cat)
local CatClone = Cat:Clone()
CatClone.Position = Plot.Position + Vector3.new(0, 0, 0)
CatClone.Parent = workspace.Cats
end
function CatsHandler:PurchaseCat(Cat, Cost)
if not leaderstats then return end
if Cash.Value >= Cost then
Cash.Value -= Cost
local BoughtCat = ReplicatedStorage.Assets.Cats:FindFirstChild(Cat)
CatsHandler:GetCatToPlot(BoughtCat)
else
warn("Player cant afford this cat!")
return
end
end
return CatsHandler
this dosnt do anything