I’m trying to figure out whether a pcall is neccessary here, I haven’t used them much and i’m trying to figure out where I should put them. It’s the second line where I load the profile.
Thanks.
local function playerJoined(player)
local profile = profileStore:LoadProfileAsync("Player_"..player.UserId, "ForceLoad") --neccessary?
pcall() is used exclusively for things that may error - you will need to find official examples using pcall() on a specific piece of code or some documentation stating that you need to use pcall() for that feature. Otherwise you shouldn’t be using pcall. ProfileService guide does not mention anywhere that you need to use pcall().