Hello there! I started learing profile service and wrote this code:
local module = {}
local profiles ={}
local players = game.Players
local template = {
EquippedDecoration={},
UnlockedDecoration={},
Coins=200
}
print('asdadf')
local profileService = require(game.ServerScriptService.ProfileService)
print(profileService)
local profileStore = profileService.GetProfileStore('PlayerData',template)
players.PlayerAdded:Connect(function(plr)
local profile = profileStore:LoadProfileAsync('Player_'..plr.UserId)
if profile then
profile:Reconcile()
if not plr:IsDescendantOf(players) then profile:Release() return end
profile:ListenToRelease(function()
profiles[plr]=nil
plr:Kick("DATA LOADED UNCORRECTLY SORRY REJOIN YEAH")
end)
profiles[plr]=profile
else
plr:Kick("DATA LOADED UNCORRECTLY SORRY REJOIN YEAH")
end
end)
players.PlayerRemoving:Connect(function(plr)
local profile = profiles[plr]
if profile then
profiles[plr]=nil
end
end)
function module.GetProfile(plr)
local profile =profiles[plr]
if profile then
return profile
end
end
return module
And I get this result:

I searched for all local scripts and none of them requires this module script.