explain this code pls ```local part = script.Parent -- Assuming the script is inside the part
local function checkTool(tool)
local mesh = tool:FindFirstChild("Mesh") -- Replace "Mesh" with the name of your mesh
if mesh then
local attribute = mesh:GetAttribute("Color") -- Replace "Attribute" with the name of your attribute
if attribute == "Red" then
part.BrickColor = BrickColor.new("Bright red")
end
end
end
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.CharacterAdded:Connect(function(character)
local backpack = character:WaitForChild("Backpack")
for _, tool in ipairs(backpack:GetChildren()) do
if tool:IsA("Tool") then
checkTool(tool)
end
end
end)
end
end)```
** You are now Level 10! **