local Part = game.Workspace.Baseplate
while wait(1) do
local S,E = pcall(function()
return Part
end)
print(E)
end
This prints Baseplate
I want it to print nil when destroyed or parented somewhere else
local Part = game.Workspace.Baseplate
while wait(1) do
local S,E = pcall(function()
return Part
end)
print(E)
end
This prints Baseplate
I want it to print nil when destroyed or parented somewhere else
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
.....does it keep printing Baseplate over and over again?
inb4 memory leak