tech/game
21/08/02 Pcalls - When and how to use them
tech-lover
2021. 8. 2. 09:56
source : Pcalls - When and how to use them
Pcalls - When and how to use them
Intoduction Protected calls, formally known as pcalls, can run functions without erroring and provide if your code was successfully ran but what’s the best way to use them and when should I? In this tutorial I will be covering the entirety of pcalls and
devforum.roblox.com
Every function you’ll need to pcall
There may be more than this, but here’s a list of functions that will need to be pcall’d:
List
- https://developer.roblox.com/en-us/api-reference/function/Players/GetUserThumbnailAsync
- https://developer.roblox.com/en-us/api-reference/function/Players/GetUserIdFromNameAsync
- https://developer.roblox.com/en-us/api-reference/function/Players/GetNameFromUserIdAsync
- https://developer.roblox.com/en-us/api-reference/function/Players/GetFriendsAsync
- https://developer.roblox.com/en-us/api-reference/function/Players/GetCharacterAppearanceAsync
- https://developer.roblox.com/en-us/api-reference/function/Players/GetCharacterAppearanceInfoAsync
- https://developer.roblox.com/en-us/api-reference/function/Players/GetHumanoidDescriptionFromOutfitId
- https://developer.roblox.com/en-us/api-reference/function/Players/GetHumanoidDescriptionFromUserId
- https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/GetAsync
- https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/IncrementAsync
- https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/RemoveAsync
- https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/SetAsync
- https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/UpdateAsync
- https://developer.roblox.com/en-us/api-reference/function/StarterGui/SetCore