blah blah blah blah blah blah
COMMUNITY QUESTION
Hi i wanna ask if i can Check if object exist ???? blah blah blah
1 answer
Hello! Yes of course you can and the way you achieve this is by using FindFirstChild
Example :
local part_to_find = workspace:FindFirstChild("part_name")
if part_to_find then
print("found")
else
print("not found")
end
This function of instance returns NIL (false) if the instance you specified isn't found and returns TRUE if found.
Of course if the object doesn't exists it will return NIL (false) as it can't find it. If it does however exists then it returns TRUE as it can find it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
pwease help