I am trying to run a function that has a timer inside. I want it to return right after the function is called, but right now, it is waiting for the function to stop running. This causes an error with developer products, which is what the function is used for. Right now, I am doing this whenever they successfully purchase a developer product.
coroutine.wrap(spinWheel(plr))()
return Enum.PurchaseDecision.PurchaseGranted
But I am getting these 2 errors.