Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Hi i wanna ask if i can Check if object exist ???? blah blah blah

blah blah blah blah blah blah

1 comment

0

pwease help

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.