How are skill slots possible?

By reading this I’m assuming this method of handling data is the extent of your data storing knowledge.

I recommend you learn how to create datastore modules to store and edit tables aswell as view them
your current method of storing data (folders within player) would just make it difficult and tedious.

I couldn’t find the Datastore module tutorial I used that was on the documentation website. to give you as a resource.heres all i could fidnd atm

I recommend using ProfileService after you learn how to make / use datastore modules I find it very useful

Example of my datastore modules with ProfileService
function StatsManager.AddToStat(Player,Stat,Amount)
local Profile = DataManager:GetPlayerProfile(Player)
local Data = Profile.Data

Data[Stat] += Amount
end

An Example of how you might do what you asked

let’s say your player data table looks like…

local PlayerData_Example = {
Speed = 1
Strength = 1 
SkillSlots = {} -- Table where u manager SkillSlots in player data
}

We make a datastore manager for skill slots like…

SkillSlotManager = {}
function SkillSlotManager.AddSkill(Player,Skill_ID)
	local Data = "How ever you decide to retrieve Player Data"
	table.insert(Data.SkillSlots,Skill_ID) --// Skill_ID would be  an ID or name of the skill being stored
end

--RemoveSkill()  // An function u will need to make
return SkillSlotManager

This is just a rough idea of how everything might look / work this code doesn’t work it is just an example

3 Likes