I’m trying to make it to where if they buy it it saves and saves what they buy and they dont have to buy it again unless they dont have it nomore.
How would I implement it into this?
local MainModule = require(Services.ServerScriptService.MainModule)
local SaiyanCombat = game.Workspace.NPCS.SaiyanCombat
local Price = 20
local module = {
{Text = "Learn Saiyan Style?",
Question = true,
Option1 = {"Please", "Alright here you go.",
func = function(plr)
local Stats = MainModule.GetStats(plr)
local char = plr.Character
if Stats.Zeni.Value >= Price then
Stats.Zeni.Value = Stats.Zeni.Value - Price
end
end},
Option2 = {"N/A", "Alright here you go."},
Option3 = {"Nevermind", "Stop wasting my time."},
}
}
return module