I wanna know if I should wrap this in a pcall
Players:CreateHumanoidModelFromUserId(userId)
I wanna know if I should wrap this in a pcall
Players:CreateHumanoidModelFromUserId(userId)
Depends where userId
is coming from, if it is from player input you likely should.
Its from the datastore the userId %100 exists
Then you don’t need to wrap it in pcall.
any part of code that you know may error, like HTTP or Datastore based methods, you should always wrap them in a pcall and error handle them accordingly
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.