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

How do see if an Object is there or not?

is it Possible to make an piece of code to see if an object for example a "Model" in ReplicatedStorage is it even possible to detect Stuff?.

1 answer

✓ Accepted answer

Yes you can do that using :FindFirstChild()

Example FindFirstChild

local ReplicatedStorage = game:GetService("ReplicatedStorage")

if ReplicatedStorage:FindFirstChild("something") then
	--if it finds something called "something" in replicated storage this is going to run
end

-- if it doesnt exist, its going to return nil

1 comment

0

Thankyou @CaioAlpaca

This discussion is preserved as it was. New answers, comments, and votes are closed.