Need help to solve an errormessage!

Hey everyone !
I’m scripting a little script to make PilesOfLeaves appear around a place.
I made a rarity selecter (for the rarity of each pile) in a Module script.
I’m just trying to return the chosenPile but I’m facing a strange error :confused:

This is my script:

and this is the errormessage:
output3

currentPilesNumber.Value =/= currentPilesNumber

You’ve put:
currentPilesNumber < maxPiles

instead of:

currentPilesNumber.Value < maxPiles

1 Like

Thx you very much for your help!
My head is in the space haha ^^
Sorry for this obvious error !

1 Like