How would I spawn coins on these parts (On the client)

Hey, how do i spawn coins on these parts, not on the server but on the client side. (basically what i want is for the local script to get the folder and choose parts to spawn coins on and spawn x amount of coins)

1 Like

this is bad practice, an exploiter can spawn as much coins as he wants unless these coins dont matter outside the client

Yeah, I will fix that later, I just need a script

you can put all the parts in a folder do an i = 1 , amountofcoins loop, then you do something like this to pick the random parts

  • local randompart = folder:GetChildren()[math.random(1,#folder:GetChildren())]
    so you run this during the loop and then you can spawn the coin in that part

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.