Hello!
For my DataStore system, I am trying to make it secure againts RemoteEvent abuse, how should I manage it?
This section for my code is responsible for controlling Data requests
function TranslateCall(callData)
for i, v in pairs(callData) do
local suc, err = pcall(function()
local PlrId = v.PlrId
local Ttype = v.Type
local value = v.Value
local LPlrFol = PlayerDataFolder[PlrId]
local SVal = LPlrFol[Ttype]
SVal.Value = SVal.Value + value
end)
if not suc then warn(err) end
end
end
Should I introduce a key system, where each call needs a special key to execute?
Please share me your ideas 