How would i datastore save if i possess an certain Spell?

This has been on my mind lately. I dont know if it would be good to make a giant list in the player with every spell and their bool values.

Simple solution: using module scripts
Best solution: use ProfileService or Datastore2 modules smh

2 Likes

hmm how would i use module scripts in this scenario?

make tables, add attributes, and do some cody stuff

1 Like

hmm can you give me an example

--module
local table = {
     ["Fire"] = false,
     ["Water"] = false,
}

return table
1 Like

ohh i understand now, but now how do i save the table?

i’d recommend you learn about profile service, check it out here
and OOP (object oriented programming), FP (functional programming)

1 Like

datastore http service, jsonencode jsondecode and some stuff

So i can still uses the tables for profile service right?