local function checkifitexists(whodidit)
print(whodidit)
if whodidit.Parent.Humanoid then
if game.Workspace.TheMadPart then
script.Parent.BrickColor = BrickColor.new("Lime green")
print("The Mad Part exists!")
else
script.Parent.BrickColor = BrickColor.new("Really red")
print("The Mad Part doesnt exist!")
end
end
end
script.Parent.Touched:Connect(checkifitexists)
Okay, so what I wanted to do with this script is that I have a button beside it that spawns a part called the mad part. That works but when I don't click on the button to spawn mad part and i go on the brick to check it doesn't do the else part. It just says that there is no part called "TheMadPart" I thought that it would skip to the else part if it isn't true or doesn't exist but I guess not.
