I've recently tried to make the "Paint Bucket" filtering enabled, but for some reason it wont paint.
This is the code, could you tell me whats wrong with it? Even the output doesnt tell me the errors:
This is the part where you setcolor
function setColor(part)
if canSelectObject(part) then
if (part.BrickColor ~= primaryColor.BackgroundColor) then
script.Parent.Paint:FireServer("ting", part.BrickColor, primaryColor.BackgroundColor)
if (part:findFirstChild("Properties")) then
if (part.Properties:findFirstChild("Color")) then
--part.Properties.Color.Value=primaryColor.BackgroundColor
script.Parent.Paint:FireServer("newcolor", part.Properties.Color.Value,primaryColor.BackgroundColor)
end
end
Tool.Handle.PaintSound:Play()
Tool.Handle.PaintSound.Pitch = .9 + (math.random() * .1)
end
end
end

1 comment
This is a LocalScript right?