Model not destroying?

Hi, when i parent a model to workspace, then try to delete the model, it does not destroy. heres the script:

local event = game.ReplicatedStorage.ChangeTextDuckBoss 
local RUBBERDUCKIE = game.ReplicatedStorage.BossFightsAndOther.TheOneRubberDuckFight 
local RubberDuckClones = RUBBERDUCKIE.DuckClones
local DuckSound = game.Workspace.quack 

wait(5)
	DuckSound:Play()   
	RUBBERDUCKIE.Parent = workspace  
	event:FireAllClients(true)
	wait(3) 
	
	local rubberduckclonesclone	 = RubberDuckClones:Clone()   
rubberduckclonesclone.Parent = workspace
	wait(30) 
	rubberduckclonesclone:Destroy()  
	event:FireAllClients(false)

The model is from ReplicatedStorage, the script from a folder in ServerScriptService. Any help appreciated.

Are there any errors associated with what’s happening? Could you possibly add a print statement right under your :Destroy line to confirm that the script is getting to that point?

No errors ill put in a print statement, as well. i do not know why this could be happening.

The ducks are in a model, and when i delete the model, or try to, it does not delete/destroy.

You set RUBBERDUCKIE parent to workspace and RubberDuckClones was a child of it, then you cloned RubberDuckClones and parented it to workspace. So now you have 2 RubberDuckClones. Then you destroyed one, but it doesn’t visually look like you did because they were inside of each other.

2 Likes

Wow, i feel like an absolute idiot for this. All the ducks successfully go away!

Thanks so much!

1 Like