Well, I'm trying to make an undeletable block, but the script only works once. I need help finding out what is causing this and why... Here's my script.
local x = script.Part
local clone = x:Clone()
script.ChildRemoved:connect(
function(Object)
if Object == x then
clone.Parent = Workspace
x = clone
clone = x:Clone()
print("PROTECTED")
end
end
)

2 comments
Try again?
Well, what do you mean by undeletable? Like a player with a delete tool can't come and delete it? If so, change the Locked property to true. If it's something like it falling off the map, your script looks fine. The only thing I would suggest is within your function, you should then clone x.