Closed checkm4te8 closed 2 years ago
I tried removing ----- Initialize -----
-- In case Players have joined the server earlier than this script ran: for _, player in ipairs(Players:GetPlayers()) do coroutine.wrap(FunctionTable.PlayerAdded)(player) end
and that seemed to help but not fully, sometimes still errors.
Nevermind, looks like it was caused by another script doing the same, pardon my retardation.
[ProfileService]: Profile [Store:"PlayerData";Key:"Player_2908787387"] is already loaded in this session.
Hello, I made a DataHandler ModuleScript for ProfileService and I put functions like PlayerAdded and SetValue, sadly sometimes, not always but about 75% of the time, I get this error: [ProfileService]: Profile [Store:"PlayerData";Key:"Player_2908787387"] is already loaded in this session.
I use this simple code in a script:
DataHandler.PlayerAdded(Player) DataHandler.SetValue(Player, "Kills", 5)
And here is my full ModuleScript: