I'm working on a painting tool since currently with roblox's new pallete it broke the old paint tools, and people are starting to annoy me about my game, I'm working on the color picker GUI but I dont want to spend the time making all of the buttons for BrickColors, How do I return the whole pallete and put the buttons in? Here's my code for the tool itself, the full code currently: (If you didnt get the gist, my problemo is adding the buttons and returning the color pallete)
player = game.Players.LocalPlayer
mouse = player:GetMouse()
Interface = script.Parent.Interface
Item = nil
gui = Interface:Clone()
gui.Parent = player.PlayerGui
gui.BTPaintToolGUI.Visible = false
colorpallete = nil --I have no idea how to return the pallete, so it's nil
--The button creation code would go here
script.Parent.Equipped:connect(function() --when the tool is equipped, we want it to do something
gui.BTPaintToolGUI.Visible = true --Make the GUI visible
clickedconn = mouse.Button1Down:connect(function() --Put a function for when you click
if mouse.Target ~= nil then --If your mouse is not clicking blank space, then run this code
if mouse.Target.Locked ~= true then --Make sure that the part is unlocked, after all, we dont want abusers :)
script.Parent.Selector.Adornee = mouse.Target --Make the selectionbox visible on the part
mouse.Target.BrickColor = script.Parent.Color.Value --Set the color
Item = mouse.Target --Set the item to the mouse target, so if you set a new color and you've still selected a part,
--it will roll over the same part.
else --If not..
script.Parent.Selector.Adornee = nil --Hide the SelectionBox
Item = nil --Remove the item
end
else --If the part's locked then
script.Parent.Selector.Adornee = nil --Hide the selectionbox
Item = nil --Remove the item
end
end)
end)
script.Parent.Unequipped:connect(function() --When the tool is unequipped, we want it to stop itself
clickedconn:disconnect() --Stop the clicking so that you cant use the tool when unequipped
gui.BTPaintToolGUI.Visible = false --Hide the GUI
end)
Please help guys, It took me a while to get most of it to work

2 comments
Roblox actually has a paintbucket gear. It may be worth taking a look at it.
@Perci1 Thanks, I'll take a look at it.