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:IsA("Hat") then
v.Part.Mesh.VertexColor = Vector3.new(1,1,1)
end
end
end
end)
COMMUNITY QUESTION
How would I make this script work when clicking an ImageButton instead of a part?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
