# Criminal refill not working

**URL:** <https://forum.stateview.io/t/criminal-refill-not-working/9400>\
**Category:** Bug Reports\
**Created:** [August 22, 2023, 4:41am UTC](https://forum.stateview.io/t/criminal-refill-not-working/9400 "2023-08-22T04:41:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rolo\_the\_dev\_bunny](https://forum.stateview.io/user_avatar/forum.stateview.io/rolo_the_dev_bunny/32/4498_2.png) [@rolo\_the\_dev\_bunny](https://forum.stateview.io/u/rolo_the_dev_bunny)\
**Post date:** [August 22, 2023, 4:41am UTC](https://forum.stateview.io/t/criminal-refill-not-working/9400/1 "2023-08-22T04:41:58Z")

</div>

![image](https://forum.stateview.io/uploads/default/original/2X/a/ab9cbe2dc562f7376d53d02d1e9f601cdf541750.jpeg)  
When I interact with the proximity prompt to refill my guns with my MP5, M4A1, or no tools equipped it doesn’t refill them. I attached a screenshot of the console. No errors are printed when I trigger the proximity prompt however there are quite a few errors with the gun replicator system.

---

<div class="post-metadata">

**Author:** ![turbine\_exploder](https://forum.stateview.io/user_avatar/forum.stateview.io/turbine_exploder/32/7527_2.png) [@turbine\_exploder](https://forum.stateview.io/u/turbine_exploder)\
**Post date:** [August 22, 2023, 9:28am UTC](https://forum.stateview.io/t/criminal-refill-not-working/9400/2 "2023-08-22T09:28:41Z")

</div>

Seems like the FindFirstChild function in the code has been broken in some way

---

<div class="post-metadata">

**Author:** ![rolo\_the\_dev\_bunny](https://forum.stateview.io/user_avatar/forum.stateview.io/rolo_the_dev_bunny/32/4498_2.png) [@rolo\_the\_dev\_bunny](https://forum.stateview.io/u/rolo_the_dev_bunny)\
**Post date:** [August 22, 2023, 5:57pm UTC](https://forum.stateview.io/t/criminal-refill-not-working/9400/3 "2023-08-22T17:57:36Z")

</div>

Lol it’s not that the FindFirstChild method is erroring, just that the instance they are indexing with this method does not exist. Either they forgot to use a FindFirstChild method when attempting to locate the instance or they did but never checked if it successfully found the child.
