Im writing some code and when i dont include FindFirstChild it worked and i make sure that when i have FindFirstChild there is no "Jar" object in the part. Why is it not working?
Here is the code:
script.Parent.Touched:Connect(function(part)
local parent = part.Parent
if parent.Name == "Jar" and script.parent:FindFirstChild("Jar", false) then
print("Test")
end
end)

4 comments
do you want to find "Jar" when you say :FindFirstChild() ?
i want to make sure there is no jar
k
i put an answer try it