Eternal-Service [ OPEN SOURCE DATASTORE MODULE ]
: INFORMATION : version = 0.1
A free datastore at your disposal.
Ever wanted to permanently ban someone? Then this is perfect for you!
Features / Characteristics / Advantages
-
1] Beginner Friendly ( Never give up, it gets fun! )
-
2] Extremely secure ( Server manages Player-Data, no requests)
-
3] Best practices ( This module only requests for data twice, >on leave, > on join )
-
4] Modular ( You are in charge of your own Data Structure )
5] Extremely fast ( Lightweight, varies )
- 6] Anti duplication ( Proper use of UpdateAsync() )
… … … … space … … … …
: SETTING UP :
Thankfully I’m a straightforward guy. Follow the steps & spare the hard work.
-
Step 1
Ensure you API access enabled
-
Step 2
Place "EternalService" in ReplicatedStorage
-
Step 3
Open "EternalService" and modify the Format table to your liking.
-
Step 4
Create a Script and insert this code:
local PlayerService = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local EternalService = require(ReplicatedStorage:WaitForChild("EternalService")) --Location of the Module
PlayerService.PlayerAdded:Connect(function(Player)
EternalService:MyPlayerJoined(Player) --Sets up data
end)
PlayerService.PlayerAdded:Connect(function(Player)
EternalService:MyPlayerLeft(Player) --Saves data
end)
- - - Questions and Answers - - -
1] Question:
Is that it?
Answer:
yes
2] Question:
How can I access the Data?
Answer:
Player Data is accessible in ReplicatedStorage.
Example for accessing Player Data in a local script :
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local EternalService = require(ReplicatedStorage:WaitForChild("EternalService")) --Location of the Module
local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
local Vault = ReplicatedStorage:WaitForChild(EternalService:GetPlayerKey(PlayerService.LocalPlayer))
Vault:GetAttributeChangedSignal("Cash"):Connect(function()
print("New Value:",Vault:GetAttribute("Cash"))
end)
3] Question:
Why did you make this?
i just want the " regular " rank to report bugs but i somehow i haven’t gotten it,
if you could, heart this & enjoy (& tag a mod jkjkjk)