Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a function like Doesnotfindfirstchild?

Asked by
hokyboy 270 Moderation Voter
3 years ago

im making a script and its waiting for something to be not found in a folder i would try a for loop but Thats not possible cause im using a repeat wait loop and cant add a for loop after until

1 answer

Log in to vote
4
Answered by 3 years ago

If you are trying to NOT find a value then simply do (if you are making an if statement)

if not player:FindFirstChild(add object or value name here) then
    -- code if they don't have object/value
end

Be sure to wait until player is fully loaded otherwise the if would run due to incomplete loading.

1
Forgot this existed Lmao hokyboy 270 — 3y
Ad

Answer this question