tool.Activated:Connect(function()
if game.Players.LocalPlayer.Settings.CanBuild.Value == true then
local t = Mouse.Target
for _,blocks in pairs(workspace.Paintable:GetChildren()) do
if t == blocks then
local color = BrickColor.new[game.Players.LocalPlayer.PlayerGui.ColorPallete.Colorv.value]
Remotes.Paint:FireServer(t, color)
end
end
end
end)
tool.Activated:Connect(function()
if game.Players.LocalPlayer.Settings.CanBuild.Value == true then
local t = Mouse.Target
for _,blocks in pairs(workspace.Paintable:GetChildren()) do
if t == blocks then
local color = Color3.new(game.Players.LocalPlayer.PlayerGui.ColorPallete.Colorv.value)
Remotes.Paint:FireServer(t, color)
end
end
end
end)
Server:
Remotes.Paint.OnServerEvent:connect(function(player, part, color)
if player.Settings.CanBuild.Value == true then
if part.Paintable.Value == true then
if player.Settings.Banned.Value == false then
part.Color = Color3.new(color)
part.Holder.Value = player.Name
part.Paintable.Value = false
end
end
else
print("You can't build")
end
end)
Checked your code, turns out you’re trying to create another Color3 value WITH the BrickColor. You should’ve just directly set the part’s color to the brickcolor.