Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago
Edited 2 years ago

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)

0
wdym by not being able to be deleted? Sarturex857 109 — 2y
0
A part that cannot be deleted by "players" MOJANGcreator091 60 — 2y

1 answer

Log in to vote
0
Answered by
AronYstad 101
2 years ago

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)
Ad

Answer this question