Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a part that cannot be deleted or will respawn if deleted?

So im trying to make a part that cannot be deleted Im a little new so idk what to do please help

(im not trying to make a virus or something)

2 comments

0

wdym by not being able to be deleted?

0

A part that cannot be deleted by "players"

1 answer

✓ Accepted answer

I'm not entirely sure what you mean. But if you want 1 part to respawn when destroyed, you could name it RespawnPart and put it in game.Workspace, and make a duplicate with the same properties in game.Lighting, and then use this script:

workspace.ChildRemoved:Connect(function(child)
	if child.Name == "RespawnPart" then
		local RespawnPart = game.Lighting.RespawnPart:Clone()
		RespawnPart.Parent = workspace
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.