I don’t have a way to test but would this allow me to edit profile in multiple places
local ProfileService = require(game.ServerScriptService.Data.DataStore.ProfileService)
if not workspace:FindFirstChild("LoadedProfile") then
-- loading here
local ProfileTemplate = {Guilds = {}}
local GameProfileStore = ProfileService.GetProfileStore(
"PlayerData",
ProfileTemplate
)
WindsModule.LiveProfile = GameProfileStore:LoadProfileAsync(
"profile_key",
"Steal"
)
end
game.Players.PlayerAdded:Connect(function(plr)
repeat task.wait() until WindsModule.LiveProfile
table.insert(WindsModule.LiveProfile.Guilds,plr.Name)
for i,v in pairs(WindsModule.LiveProfile) do
print(i,v)
end
end)
function WindsModule:GetProfile()
workspace:WaitForChild("LoadedProfile")
return WindsModule.LiveProfile
end