u/Just_Someone_Trying

Cloning help

Hello, I'm making a game where a butterfly has to get a certain number of stars. I managed to make a script that allows the star to clone one at a time, wait for a second or two then reappear again for the butterfly to get. However, I deleted it by mistake (was half asleep) and now for the life of me, I can't do it anymore. Either the star clones once and then freezes on the screen or it clones an ungodly amount and it doesn't disappear, more keeps on cloning even if the butterfly goes to get it. (and the variable doesn't increment)

How can I make it clone like a collectible, i.e, only one appears, butterfly gets it, it deletes itself, var increments, wait for a sec or two, and reappears somewhere random?

Thank you in advance!

TLDR: I just want my star to clone one at a time, like a collectible.

reddit.com
u/Just_Someone_Trying — 5 days ago