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

How do I run a script if the script did't find first child?

script.Parent.MouseButton1Click:Connect(function()
 local find = game.Players.LocalPlayer.Character:FindFirstChild("halo")
 if find then 
  
      -- i want to run a script if FindFirstChild is not here		
		
end

end)

1 answer

✓ Accepted answer
script.Parent.MouseButton1Click:Connect(function()
	local find = game.Players.LocalPlayer.Character:FindFirstChild("halo")
	if find then 

	else
		--code here
	end
end)

2 comments

0

Thank you dude :D

0

Ouch, I’ll accept this for you lol.

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