Change colors gui
Key Required

Change colors gui

Nations Roleplay 2OuterTreesOuterTrees 24.5K views 73 executesUpdated May 18, 2024
5.0/ 5(2 votes)
20100% Positive
Lua Script•176 lines (5475 chars)
local lp = game:GetService("Players").LocalPlayer
local chr = lp.Character
local bp = lp.Backpack
local color = Color3.new(0,0,0)
local badcolor = Color3.new(0,0,0)
local colors={}
local mouse = lp:GetMouse()

local sg = game:GetService("StarterGui")

local paintBucket = chr:FindFirstChild('PaintBucket') or lp.Backpack:FindFirstChild('PaintBucket')
if paintBucket.Parent.ClassName == 'Backpack' then
    paintBucket.Parent = chr
end
local paint = paintBucket.Remotes.ServerControls

local colorTool = Instance.new("Tool", bp)
colorTool.Name = "get color"
colorTool.RequiresHandle = false

local badColorTool = Instance.new("Tool", bp)
badColorTool.Name = "get BadColor"
badColorTool.RequiresHandle = false

local function onColorToolActivated()
    local target = mouse.Target

    if target then
        color = target.Color
    end
end

local function onBadColorToolActivated()
    local target = mouse.Target

    if target then
        badcolor = target.Color
    end
end

colorTool.Activated:Connect(onColorToolActivated)
badColorTool.Activated:Connect(onBadColorToolActivated)

Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/VeztWare/KavoUi/main/KavoUi.lua"))()

local Window = Library.CreateLib("Colorizer", "DarkTheme")
local Tab = Window:NewTab("Main")
local enabled1 = false
local enabled2 = false

local colors = Tab:NewSection("Colors")

colors:NewTextBox("change color from", "Type here color in RGB spliting with spaces", function(txt)
	colors={}
    for i in string.gmatch(txt, "%S+") do
        table.insert(colors, i)
    end
    badcolor = Color3.fromRGB(colors[1], colors[2], colors[3])
end)

colors:NewTextBox("change color to", "Type here color in RGB spliting with spaces", function(txt)
	colors={}
    for i in string.gmatch(txt, "%S+") do
        table.insert(colors, i)
    end
    color = Color3.fromRGB(colors[1], colors[2], colors[3])
end)

local btns = Tab:NewSection("Buttons")

btns:NewButton("Change every province color", "Changes to color from 2 label", function()
    sg:SetCore("SendNotification",{
	  Title = "Message",
	  Text = "Started, wait until end.",
	  Icon = "rbxassetid://14529775287"
	})
    paintBucket = chr:FindFirstChild('PaintBucket') or lp.Backpack:FindFirstChild('PaintBucket')
    if paintBucket.Parent.ClassName == 'Backpack' then
        paintBucket.Parent = chr
    end
    paint = paintBucket.Remotes.ServerControls
    for _, v in pairs(workspace:GetDescendants()) do
        if v.Name == 'Province' then
            if v.Color ~= color then
                paint:InvokeServer("PaintPart", {["Part"] = v, ["Color"] = color}, "Peace")
            end
        end
    end
    sg:SetCore("SendNotification",{
	  Title = "Message",
	  Text = "END!!!",
	  Icon = "rbxassetid://14529775287"
	})
end)

btns:NewButton("Change only ... province color", "Changes from color from 1 label to color from 2 label", function()
    sg:SetCore("SendNotification",{
	  Title = "Message",
	  Text = "Started, wait until end.",
	  Icon = "rbxassetid://14529775287"
	})
    paintBucket = chr:FindFirstChild('PaintBucket') or lp.Backpack:FindFirstChild('PaintBucket')
    if paintBucket.Parent.ClassName == 'Backpack' then
        paintBucket.Parent = chr
    end
    paint = paintBucket.Remotes.ServerControls
    for _, v in pairs(workspace:GetDescendants()) do
        if v.Name == 'Province' then
            if v.Color == badcolor then
                paint:InvokeServer("PaintPart", {["Part"] = v, ["Color"] = color}, "Peace")
            end
        end
    end
    print('END')
    sg:SetCore("SendNotification",{
	  Title = "Message",
	  Text = "END!!!",
	  Icon = "rbxassetid://14529775287"
	})
end)

local loops = Tab:NewSection("loops")

local toogle1 = loops:NewToggle("Change every province color", "Changes to color from 2 label", function(state)
    if not enabled2 then
        paintBucket = chr:FindFirstChild('PaintBucket') or lp.Backpack:FindFirstChild('PaintBucket')
        if paintBucket.Parent.ClassName == 'Backpack' then
            paintBucket.Parent = chr
        end
        enabled1 = state
    end
end)

local toogle2 = loops:NewToggle("Change only ... province color", "Changes from color from 1 label to color from 2 label", function(state)
    if not enabled1 then
        paintBucket = chr:FindFirstChild('PaintBucket') or lp.Backpack:FindFirstChild('PaintBucket')
        if paintBucket.Parent.ClassName == 'Backpack' then
            paintBucket.Parent = chr
        end
        enabled2 = state
    end
end)

spawn(function()
    while wait() do
        if enabled1 then
            for _, v in pairs(workspace:GetDescendants()) do
                if v.Name == 'Province' then
                    if v.Color ~= color then
                        paint:InvokeServer("PaintPart", {["Part"] = v, ["Color"] = color}, "Peace")
                    end
                end
                if not enabled1 then
                    break
                end
            end
        end
    end
end)

spawn(function()
    while wait() do
        if enabled2 then
            for _, v in pairs(workspace:GetDescendants()) do
                if v.Name == 'Province' then
                    if v.Color == badcolor then
                        paint:InvokeServer("PaintPart", {["Part"] = v, ["Color"] = color}, "Peace")
                    end
                end
                if not enabled2 then
                    break
                end
            end
        end
    end
end)

Features & Information

You with this script can change all colors to 255 127 255. Or only from 255 255 0 to 127 255 127. Nations Roleplay 2 UPDATE 22.06.2024 Added get color tools to set colors easily. Update 27.06.2024 Added mobile support Update 21.08.2024 Fixed!!! PLS KEEP THIS A SECRET FROM THE DEVELOPERS, ADMINS AND MODERATORS OF THIS GAME!!! - ПОЖАЛУЙСТА ХРАНИТЕ ЭТО В СЕКРЕТЕ ОТ РАЗРАБОТЧИКОВ, АДМИНОВ И МОДЕРАТОРОВ ЭТОЙ ИГРЫ!!!
#change#color#trolling#Nations Roleplay#cool

Community Comments (13)

crucifixnewcrucifixnewMay 18, 2024(edited)

FINALLY after 1/2 years i can get something like this

barconbarconAug 4, 2024(edited)

doesnt work maybe

OuterTreesOuterTreesAug 4, 2024(edited)

@barcon Why do you think so?

lkjhgcffolkjhgcffoAug 20, 2024(edited)

doesnt work :sob:

OuterTreesOuterTreesAug 21, 2024(edited)

@barcon @kuononnon Fixed!!!

barconbarconAug 21, 2024(edited)

how to use this

OuterTreesOuterTreesAug 21, 2024(edited)

With the Get Color tool, you can click on a color, that you want to pick from the map and paint them. Bad color tool, for picking a color, that you want to change from. Also, you can write this in GUI like 255 0 0 or 0 128 255, and click enter. It has one-time functions, and there is a loop alternative.

lkjhgcffolkjhgcffoAug 24, 2024(edited)

@OuterTrees REALLY? TYSM!

lkjhgcffolkjhgcffoAug 24, 2024(edited)

@OuterTrees but still doesnt working

OuterTreesOuterTreesAug 25, 2024(edited)

@kuononnon give me errors here from the console! Bcuz I made this script on the computer(Byfron) and it may NOT support mobile.

OuterTreesOuterTreesAug 26, 2024(edited)

@barcon @kuononnon Fixed second time!!!

azelartben168azelartben168Jan 25, 2025(edited)

doesnt work anymore

ejpogitotejpogitotFeb 19, 2025(edited)

how to use script to invade others?