i don’t have errors and i don’t know why its not destroying the random part that chosen
1 Like
You’re looking through and deleting the mapDupe in ReplicatedStorage because the Child variable is set to mapDupe (the one in replicatedStorage). If I understood your question right, move the Child variable below where you are defining mapCL and mapDupeCL and change mapDupe to either of those variables. (I’m not sure which one you want it to delete a random part from)
(Also, make sure to put your code in a code block. It makes it a lot easier to search through and modify)
1 Like
hi thank you for help, but it still not working i will send you again the fixed code and if you can help me i appreciate it a lot
1 Like
Change
local Child = mapDupe:GetChildren()
To this.
local Child = mapDupeCL:GetChildren()
2 Likes
working thank you very much
2 Likes