I'm making a game and i made a cash rain script and make a despawn script but i can't seem to get it to work...

I've tried:

wait(10)
script.Parent:Destroy()

and a few others yet when i do it it also destroys the main brick stopping any bricks from spawning. How do I fix this?

2 comments

0

Then script.Parent is apparently the main brick

0

You really need more details then two lines of code that someone could help you