Hello! You can use the Debris Service!!! Here's how it goes:
Debris has a function called AddItem. The first argument is the object to be removed and the second is the how long does Debris have to wait before removing the object.
Debris:AddItem(<item>, <lifetime>)
When applied to your script:
local Debris = game:GetService("Debris")
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local ragdollV3 = script.RagdollV3:Clone()
ragdollV3.Parent = character
ragdollV3.Disabled = false
Debris:AddItem(ragdollV3, 3)
end)
end)
I hope this helps!
1 comment
wait()