I want this script to target anything that is named "Accessory2" instead of it's ClassName "Accessory", how would I change the script to do so?
local variable = script.Parent:WaitForChild("ClickDetector") variable.MouseClick:Connect(function(p) if p.Character then for _,v in next,p.Character:GetChildren() do if v:Is("Accessory") then v.Part2.Mesh.VertexColor = Vector3.new(0, 0, 0) end end end end)

1 comment
Works great, thank you!