Im making a paintbrush game but i cant seem look up tutorials for this. Specifically, players can color a part but only if the part is theirs. Like the color customizer in Critical Strike... I dont know what this is called because my explanation is too broad. Please help me.
Code: (this was put inside the customizer [in a normal script])
local part = game.Workspace.Brick1
local customizer = script.Parent --part's color is orange
function onMouseClick()
part.BrickColor.new = ("Br. yellowish orange")
end
clickDetector.MouseClick:connect(onMouseClick)
Thank you for any support given.

3 comments
(i made this in notepad so there maybe an error inside this
BrickColor.new("Br. yellowish orange")
Local script only for one player, events by the server is for everyone.