Script not cloning

Hello, I’m a newbie scripter making a missile turret. I want the ammo cloned and rename to “Missile” so the main script can detect it and fire. The problem I met with is that the script wont clone the ammo and the missile wont reload.
Screenshot_2
Screenshot_3

You need to set the parent of the new clone you created. So while you have created it, it doesnt really exist since it isn’t in the game yet.

1 Like

Move that Ammo:Clone to where value missile is created. And set parent too.

2 Likes

Oof TYSM I’ve been trying to figuring out the problem for half day!

1 Like