Help with scripts

Hello devs!

I am a brazillian builder and script, and now i need help with one script:

Here's my script
for o, m in pairs(script.Parent.Parent:GetChildren()) do
	if m:IsA("ImageLabel") then
		if not m.Name == "Credits" then
			print("a")
		end
	end
end

The script don’t print the information, I initially wanted to make everything that didn’t have the same given name, I would make it print “a”.

Please, reply!

1 Like
for _, Child in ipairs(script.Parent.Parent:GetChildren()) do
	if Child:IsA("ImageLabel") then
		if Child.Name ~= "Credits" then
			print("a")
		end
	end
end

try this

1 Like