Try this:
wait(10)
local dangerousPart = Instance.new("Part",game.Workspace)
dangerousPart.Anchored = false
local dangerousPartChildren = {
"Part",
"Part"
}
for _, v in pairs(dangerousPartChildren) do
Instance.new(v)
v.Parent = dangerousPart
end
I read your comment to Decimaprism but didn't have space to add this. However, if you want a flash (if that's what you mean by light), you'll need to insert a BillboardGui into the gun. Then insert an ImageButton into the BillboardGui. Change the image property in ImageButton to what you would like your flash to look like. Keep the Gui invisible until the player shoots the gun. Make sure the script in your gun enables the BillboardGui (or makes the ImageButton visible) when your gun is activated, and that the flash lasts for a VERY short amount of time if that's what you want.
Hope this helps!
2 comments
No i am asking how to add children, not to clone the part. Like how a gun fires (Warbound for example) it has a light in it.
You can still add children by cloning them from another Service and into the part, just like what Decimaprism did.