Instance disappears when not anchored

I was doing a clone script in roblox but for some reason it clones but it gets destroyed. (OBS: When it is anchored it clones, but when it is not it is destroyed)

I’ve already tested it with a part and it didn’t work, it disappears just like the mesh part

SCRIPT:

while wait() do
	wait(3)
	local clone = script.nuvem:Clone()
	clone.Parent = script.Parent
	clone.Anchored = true
	wait(.1)
	clone.Anchored = false
	clone.CanCollide = true
	clone.Transparency = 0
	clone.Script.Disabled = false
end
2 Likes

Are you sure that the part that you just cloned didn’t fall off the map?

3 Likes

I see that after unanchoring the part, you enable a script, but not when you anchor it. Are you sure that this script has nothing to do with this problem?

3 Likes

Keep your base part anchored with the checkbox in Properties so it won’t fall into the void. Once it gets cloned, parent it to the workspace and THEN unanchor it.

2 Likes

I understood why it wasn’t going, it was because the part was off the map. Your comment made me realize that, thank you.

1 Like