I want to make a script in which it detects if there is an object and does its function, and if there is not, it does not leave any error and does not do its function.
if Object:FindFirstChild("OtherObject") then
--Do stuff here, or a function
end
I suppose another alternate would be to use a pcall, but it’s entirely up to choice on what you want to do
1 Like