Here is the part that when someone clicks on it prompts the product purchase
Now, this is the script that checks if the player has that asset :
will this cause a lot of problems and what are the problems and how can I solve them?
Thanks!
Here is the part that when someone clicks on it prompts the product purchase
The only issue is that the thread will yield until a result is ready.
I would increase the wait time if anything.
You can also look into MarketplaceService | Roblox Creator Documentation to avoid that loop.
Thank you for the reply and yes I have now found the way to do it without the other script looping again and again
But I was wondering what you meant by “thread will yield”
I am pretty new to scripting and don’t really have much experience with other languages as well so it would be really helpful if you could explain what that means
Thanks.
Basically yielding means that the whole script will stop until that particular function/line has ran. (simplified)
Here’s an example: multithreading - What is a "thread" (really)? - Stack Overflow