#ProfileStore problem - Headache of doing this since 1 day ago

1 messages · Page 1 of 1 (latest)

drowsy forge
#

Hello, i'am making a battlegrounds system taht i started 2 days ago, and, like, i started making Data but im getting confused with ProfileStore.
So, ill give for you, helper, my code and other informations to make easier for ya to help me:
Obs (codes in the files i sent)

The error: fail on trying to update kill for Breirot_19. Profile not loaded! - Server - UserDataService:87

if it is possible for you to help me, ill appreciate it! 🌟

edit: i discovered that "profile" does not exists

glass pulsar
#

where are you calling the .OnStart function

drowsy forge
#

here:

local UserDataService = require(script.Parent)
local Players = game:GetService("Players")

for _, plr in Players:GetPlayers() do
    task.spawn(UserDataService.Local.OnStart, plr)
end

Players.PlayerAdded:Connect(UserDataService.Local.OnStart)