All parts inside rig disappear after using :Clone()

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a Seek rig that clones from ReplicatedStorage into the workspace and chases you.
  2. What is the issue? Include screenshots / videos if possible!
    The issue is that the rig, after a few seconds deletes all the body parts inside of it after using the :Clone() function.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have checked all over the Developer Hub but could not find anything.

This is the code: (also sorry if it is formatted wrongly this is my first post)

	ReplicatedStorage.Events.TriggerChase:FireAllClients(entranceCF)
	
	enemyModel.PrimaryPart.Anchored = true
	enemyModel:PivotTo(entranceCF * offset)
	enemyModel.Parent = workspace
	
	enemyModel.PrimaryPart.Scream:Play()
	local tween = TweenService:Create(enemyModel.PrimaryPart, TweenInfo.new(2), {CFrame = entranceCF})
	tween:Play()
	enemyModel.PrimaryPart.Anchored = false
	tween.Completed:Wait()
	print(enemyModel.Parent)
	print(enemyModel.PrimaryPart)
	
	enemyModel.PrimaryPart.SeekRunning:Play()
	
	enemyModel.Humanoid.WalkSpeed = 26
	
	for i, v in enemyModel:GetDescendants() do
		if v:IsA("BasePart") then
			v.CollisionGroup = "Monster"
		end
	end
	
	

	print(enemyModel.PrimaryPart)
	local connection
	connection = RunService.Heartbeat:Connect(function()
		print(enemyModel.PrimaryPart)
		if not enemyModel.PrimaryPart then
			warn("NO PRIMARY PART")
			connection:Disconnect()
			return
		end
		
		if not currentRoomNumber then
			warn("NO CURRENTROOMNUMBER")
			return
		end

The output:

Screenshot 2025-03-15 073228
I’ve tried setting the rig’s parts Archivable to true but that did not help. (They were always Archivable set to true)

The “enemyModel” is the cloned rig by the way

Are you sure they are getting deleted, or are the joints not working and the body Parts are falling through the map.
Maybe check your CollisionGroups to make sure that Monster will actually collide with the terrain/baseplate/default Parts.

Try testing it in Run mode while looking at the model. This might show you if the Parts are instantly dropping through the map (using Play may take a few seconds and you won’t get the chance to see the parts disappear.

1 Like

I tried this and I noticed that it seems to fall down off the map and then get deleted. I don’t know how to fix it though

I fixed it, turns out the problem was I was setting Anchored to false before the Tween had completed.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.