I’m trying to insert all of the clones of LightBullet into LightBulletTable, The problem is that for some reason only one LightBullet ends up inside the table, despite the for loop being there. How would I fix this?
FinalBulletAmount isn’t set to 1, the 1 there is how much LightBullets increases by each loop. The loop loops 7 times and I can tell because all 7 of the bullets spawn and get positioned correctly. Unless I’m severely mistaking something here?
Try parsing the “LightBullets” value in the loop from a outside loop defined value like the “FinalBulletAmount” and remove the “LightBullets = 1,” from the loop.
That makes roblox expect me to put “in” and then I’ll have to use pairs or ipairs, the problem isn’t that the loop only loops once, the problem is that only ONE bullet is getting inserted into LightBulletTable, despite the loop working fine.
Alright I see, then your code seems okay. I think If the loop is looping 7 times fine it should also Clone the Part in the Moved folder in the ServerStorage. Does that also work fine?