Semi-Modular Data System
Here I have created a Data System that can:
- Create a folder containing Player Data
- Automatically combine data tables when the data template is updated
- Convert data to strings for debugging purposes
- Convert Data Directories to tables
Instructions
First off, you need to create a folder called PlayerData in ReplicatedStorage.
Once that is done, simply just setup the data template with the values you want, and boom, your done 
Here is the Roblox model
The entire system is open sourced, feel free to change whatever you like 
2 Likes
Tip for your code: you can use the or
operator.
It works like this:
if a == 1 or b == 1 then
print("worked")
end
You can reduce a lot of repetition in your code by using or
(getting rid of those elseif chains).
1 Like
This is a great contribution, however there are some things you can do better:
- You should use
or
like what R0bl0x10501050 said.
- You should use the new task library that includes:
- task.spawn()
- task.wait()
- and task.delay()
-
I would recommend using :GetService() as it is the canonical way to get services, however this is not required.
-
Instead of using repeat until to get the character you can instead do:
Player.CharacterAdded:Wait()
or just use
Player.CharacterAdded:Connect(function()
end)
Thanks for the contribution!
2 Likes
Ill do that right now! Thanks for the help.