So it is supposed to only print "That brick got rekt" if the brick is deleted, but when I took away the line that calls the Partwreck() function, it still printed "That brick got rekt" instead of "Why dat brick still alive??" Anyone know why? Also the script is in workspace, and it is named "Script1"
function Partwreck()
local Tester = workspace.Tester
wait(3)
workspace.Tester:Destroy()
end
Partwreck()
wait(1)
function Destro()
local Script1 = workspace.Script1
if Tester == nil then
print("That brick got rekt")
if Tester ~= nil then
print("Why dat brick still alive??")
end
end
end
Destro()

2 comments
This still won't; work?~~ local Tester = workspace.Tester local Script1 = workspace.Script1 function Destroyer() wait(2) workspace.Tester:Destroy() end function Talker() if Tester == nil then print("That Brick is Dead Boi") elseif Tester ~= nil then print("Why is this brick still here?") end end Destroyer() wait(1) Talker()~~
Swap == and ~=, seems to detect them backwards.