-- Nations Roleplay X | Auto-Painter — real remote finder + painter -- Runtime: Xeno local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInput = game:GetService("UserInputService") local TweenSvc = game:GetService("TweenService") local lp = Players.LocalPlayer local mouse = lp:GetMouse() -- ─── XOR decrypt — copied from decompiled LocalScript ───────────────────────── local char, byte, sub = string.char, string.byte, string.sub local bxor = (bit32 or bit).bxor local concat, insert = table.concat, table.insert local function xorDecrypt(p1, p2) local t1 = {} for i = 1, #p1 do insert(t1, char(bxor(byte(sub(p1,i,i+1)), byte(sub(p2, i % #p2 + 1, i % #p2 + 1 + 1))) % 256)) end return concat(t1) end -- ─── Find real remote ───────────────────────────────────────────────────────── local function getRealRemote(bucket) local remotes = bucket:WaitForChild("Remotes", 10) if not remotes then return nil end -- wait for AC to signal remotes are ready local n = 0 repeat task.wait(0.1) ; n += 1 until remotes:GetAttribute("RemotesReady") or n >= 100 -- decrypt the attribute key same way the LocalScript does local attrName = xorDecrypt("\226\218\213&Ͽ", "~\177\163\187E\134ۧ") local remoteName = bucket:GetAttribute(attrName) if remoteName then local remote = remotes:FindFirstChild(remoteName) if remote then print("[olliE] real remote found:", remoteName) return remote end end print("[olliE] attribute decrypt failed, dumping all attributes:") for k, v in pairs(bucket:GetAttributes()) do print(" ", k, "=", tostring(v)) end return nil end -- ─── State ──────────────────────────────────────────────────────────────────── local paintColor = Color3.fromRGB(255, 255, 255) local painting = true local safeMode = false local keepTerColor = false local selectingProvince = false local removingProvince = false local selectingColor = false local provinces = {} local paintsThisSec = 0 local realRemote = nil -- ─── wait for bucket + find remote ─────────────────────────────────────────── task.spawn(function() local char = lp.Character or lp.CharacterAdded:Wait() local bucket = char:WaitForChild("PaintBucket", 15) if not bucket then print("[olliE] no PaintBucket found — equip it first") return end realRemote = getRealRemote(bucket) if realRemote then print("[olliE] ready to paint") else print("[olliE] could not find real remote — paste attribute dump above") end end) -- also re-find on respawn lp.CharacterAdded:Connect(function(newChar) realRemote = nil local bucket = newChar:WaitForChild("PaintBucket", 15) if bucket then realRemote = getRealRemote(bucket) end end) -- ─── Paint loop ─────────────────────────────────────────────────────────────── local function startPainting(province) for _, info in pairs(provinces) do if info.Province == province then return end end local savedColor = province.Color local active = true local event event = RunService.Stepped:Connect(function() if not active then return end if not painting then return end if not realRemote then return end local targetColor = keepTerColor and savedColor or paintColor if province.Color == targetColor then return end paintsThisSec += 1 pcall(function() realRemote:InvokeServer( "PaintPart", {["Part"] = province, ["Color"] = targetColor}, "Peace" ) end) if safeMode then task.wait(1) end end) local sel = Instance.new("SelectionBox") sel.Adornee = province sel.Color3 = paintColor sel.LineThickness = 0.05 sel.Parent = workspace table.insert(provinces, { Province = province, Event = event, Highlight = sel, Saved = savedColor, Stop = function() active = false end, }) end local function removeProvince(province) for i, info in pairs(provinces) do if info.Province == province then info.Stop() info.Event:Disconnect() info.Highlight:Destroy() table.remove(provinces, i) return end end end local function clearAll() for _, info in pairs(provinces) do info.Stop() info.Event:Disconnect() info.Highlight:Destroy() end provinces = {} end local function setColor(c) paintColor = c for _, info in pairs(provinces) do info.Highlight.Color3 = c end end -- ─── UI ─────────────────────────────────────────────────────────────────────── local gui = Instance.new("ScreenGui") gui.Name = "NRXPainter" gui.ResetOnSpawn = false gui.Parent = lp.PlayerGui local main = Instance.new("Frame") main.Size = UDim2.new(0, 230, 0, 460) main.Position = UDim2.new(0, 20, 0.5, -230) main.BackgroundColor3 = Color3.fromRGB(25, 25, 35) main.BorderSizePixel = 0 main.Parent = gui Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8) local topbar = Instance.new("Frame") topbar.Size = UDim2.new(1, 0, 0, 32) topbar.BackgroundColor3 = Color3.fromRGB(40, 40, 58) topbar.BorderSizePixel = 0 topbar.Parent = main Instance.new("UICorner", topbar).CornerRadius = UDim.new(0, 8) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -10, 1, 0) title.Position = UDim2.new(0, 10, 0, 0) title.BackgroundTransparency = 1 title.Text = "NRX Auto-Painter" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextScaled = true title.Font = Enum.Font.SourceSansBold title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = topbar local statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(1, -20, 0, 18) statusLabel.Position = UDim2.new(0, 10, 0, 36) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "status: waiting for bucket..." statusLabel.TextColor3 = Color3.fromRGB(247, 226, 112) statusLabel.TextScaled = true statusLabel.Font = Enum.Font.SourceSans statusLabel.Parent = main local ppsLabel = Instance.new("TextLabel") ppsLabel.Size = UDim2.new(1, -20, 0, 18) ppsLabel.Position = UDim2.new(0, 10, 0, 56) ppsLabel.BackgroundTransparency = 1 ppsLabel.Text = "0 paint/sec | 0 provinces" ppsLabel.TextColor3 = Color3.fromRGB(80, 255, 123) ppsLabel.TextScaled = true ppsLabel.Font = Enum.Font.SourceSans ppsLabel.Parent = main local modeLabel = Instance.new("TextLabel") modeLabel.Size = UDim2.new(1, -20, 0, 16) modeLabel.Position = UDim2.new(0, 10, 0, 76) modeLabel.BackgroundTransparency = 1 modeLabel.Text = "mode: idle" modeLabel.TextColor3 = Color3.fromRGB(180, 180, 180) modeLabel.TextScaled = true modeLabel.Font = Enum.Font.SourceSans modeLabel.Parent = main -- update status label when remote found task.spawn(function() while task.wait(0.5) do if realRemote then statusLabel.Text = "status: remote locked ✓" statusLabel.TextColor3 = Color3.fromRGB(80, 255, 123) else statusLabel.Text = "status: waiting for bucket..." statusLabel.TextColor3 = Color3.fromRGB(247, 226, 112) end end end) local btnY = 98 local function makeButton(label, color, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, -20, 0, 28) btn.Position = UDim2.new(0, 10, 0, btnY) btn.BackgroundColor3 = color or Color3.fromRGB(55, 55, 75) btn.BorderSizePixel = 0 btn.Text = label btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.TextScaled = true btn.Font = Enum.Font.SourceSansBold btn.AutoButtonColor = false btn.Parent = main Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6) btn.MouseButton1Down:Connect(callback) btnY = btnY + 32 return btn end local function makeToggle(label, default, callback) local row = Instance.new("Frame") row.Size = UDim2.new(1, -20, 0, 28) row.Position = UDim2.new(0, 10, 0, btnY) row.BackgroundColor3 = Color3.fromRGB(40, 40, 58) row.BorderSizePixel = 0 row.Parent = main Instance.new("UICorner", row).CornerRadius = UDim.new(0, 6) local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(0.68, 0, 1, 0) lbl.Position = UDim2.new(0, 8, 0, 0) lbl.BackgroundTransparency = 1 lbl.Text = label lbl.TextColor3 = Color3.fromRGB(255, 255, 255) lbl.TextScaled = true lbl.Font = Enum.Font.SourceSans lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.Parent = row local pill = Instance.new("Frame") pill.Size = UDim2.new(0, 44, 0, 20) pill.Position = UDim2.new(1, -50, 0.5, -10) pill.BackgroundColor3 = default and Color3.fromRGB(53, 227, 153) or Color3.fromRGB(241, 33, 103) pill.BorderSizePixel = 0 pill.Parent = row Instance.new("UICorner", pill).CornerRadius = UDim.new(1, 0) local knob = Instance.new("Frame") knob.Size = UDim2.new(0, 16, 0, 16) knob.Position = default and UDim2.new(1,-18,0.5,-8) or UDim2.new(0,2,0.5,-8) knob.BackgroundColor3 = Color3.fromRGB(255, 255, 255) knob.BorderSizePixel = 0 knob.Parent = pill Instance.new("UICorner", knob).CornerRadius = UDim.new(1, 0) local state = default row.InputBegan:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.MouseButton1 then state = not state TweenSvc:Create(pill, TweenInfo.new(0.1), { BackgroundColor3 = state and Color3.fromRGB(53,227,153) or Color3.fromRGB(241,33,103) }):Play() TweenSvc:Create(knob, TweenInfo.new(0.1), { Position = state and UDim2.new(1,-18,0.5,-8) or UDim2.new(0,2,0.5,-8) }):Play() callback(state) end end) btnY = btnY + 32 return row end -- color swatch local swatch = Instance.new("Frame") swatch.Size = UDim2.new(1, -20, 0, 24) swatch.Position = UDim2.new(0, 10, 0, btnY) swatch.BackgroundColor3 = paintColor swatch.BorderSizePixel = 0 swatch.Parent = main Instance.new("UICorner", swatch).CornerRadius = UDim.new(0, 6) local swatchLbl = Instance.new("TextLabel") swatchLbl.Size = UDim2.new(1,0,1,0) swatchLbl.BackgroundTransparency = 1 swatchLbl.Text = "Color — R random, E eyedrop" swatchLbl.TextColor3 = Color3.fromRGB(255,255,255) swatchLbl.TextScaled = true swatchLbl.Font = Enum.Font.SourceSans swatchLbl.Parent = swatch btnY = btnY + 30 -- RGB sliders local rgbValues = {r=255, g=255, b=255} local function updateFromRGB() local c = Color3.fromRGB(rgbValues.r, rgbValues.g, rgbValues.b) setColor(c) swatch.BackgroundColor3 = c end local function makeSlider(labelText, key, colorTint) local frame = Instance.new("Frame") frame.Size = UDim2.new(1,-20,0,22) frame.Position = UDim2.new(0,10,0,btnY) frame.BackgroundColor3 = Color3.fromRGB(40,40,58) frame.BorderSizePixel = 0 frame.Parent = main Instance.new("UICorner", frame).CornerRadius = UDim.new(0,4) local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(0,18,1,0) lbl.BackgroundTransparency = 1 lbl.Text = labelText lbl.TextColor3 = colorTint lbl.TextScaled = true lbl.Font = Enum.Font.SourceSansBold lbl.Parent = frame local track = Instance.new("Frame") track.Size = UDim2.new(1,-50,0,6) track.Position = UDim2.new(0,22,0.5,-3) track.BackgroundColor3 = Color3.fromRGB(60,60,80) track.BorderSizePixel = 0 track.Parent = frame Instance.new("UICorner", track).CornerRadius = UDim.new(1,0) local fill = Instance.new("Frame") fill.Size = UDim2.new(rgbValues[key]/255,0,1,0) fill.BackgroundColor3 = colorTint fill.BorderSizePixel = 0 fill.Parent = track Instance.new("UICorner", fill).CornerRadius = UDim.new(1,0) local valLabel = Instance.new("TextLabel") valLabel.Size = UDim2.new(0,24,1,0) valLabel.Position = UDim2.new(1,-26,0,0) valLabel.BackgroundTransparency = 1 valLabel.Text = tostring(rgbValues[key]) valLabel.TextColor3 = Color3.fromRGB(200,200,200) valLabel.TextScaled = true valLabel.Font = Enum.Font.SourceSans valLabel.Parent = frame local sliding = false track.InputBegan:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.MouseButton1 then sliding = true end end) UserInput.InputEnded:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.MouseButton1 then sliding = false end end) UserInput.InputChanged:Connect(function(inp) if sliding and inp.UserInputType == Enum.UserInputType.MouseMovement then local rel = math.clamp((inp.Position.X - track.AbsolutePosition.X) / track.AbsoluteSize.X, 0, 1) rgbValues[key] = math.floor(rel * 255) fill.Size = UDim2.new(rel,0,1,0) valLabel.Text = tostring(rgbValues[key]) updateFromRGB() end end) btnY = btnY + 26 return fill, valLabel end local rFill, rVal = makeSlider("R", "r", Color3.fromRGB(255,80,80)) local gFill, gVal = makeSlider("G", "g", Color3.fromRGB(80,255,80)) local bFill, bVal = makeSlider("B", "b", Color3.fromRGB(80,120,255)) btnY = btnY + 4 makeButton("+ Select Provinces", Color3.fromRGB(35,110,70), function() selectingProvince=true; removingProvince=false; selectingColor=false modeLabel.Text="mode: selecting — click provinces" modeLabel.TextColor3=Color3.fromRGB(80,255,123) end) makeButton("- Remove Province", Color3.fromRGB(110,35,35), function() removingProvince=true; selectingProvince=false; selectingColor=false modeLabel.Text="mode: removing — click provinces" modeLabel.TextColor3=Color3.fromRGB(255,100,100) end) makeButton("💉 Eyedrop", Color3.fromRGB(60,60,110), function() selectingColor=true; selectingProvince=false; removingProvince=false modeLabel.Text="mode: eyedrop — click a province" modeLabel.TextColor3=Color3.fromRGB(120,180,255) end) makeButton("✓ Done", Color3.fromRGB(55,55,75), function() selectingProvince=false; removingProvince=false; selectingColor=false modeLabel.Text="mode: idle" modeLabel.TextColor3=Color3.fromRGB(180,180,180) end) makeButton("Clear All", Color3.fromRGB(90,30,30), function() clearAll() modeLabel.Text="mode: idle" modeLabel.TextColor3=Color3.fromRGB(180,180,180) end) makeToggle("Toggle Paint", true, function(v) painting = v end) makeToggle("Safe Mode (1s delay)", false, function(v) safeMode = v end) makeToggle("Keep Territory Color", false, function(v) keepTerColor = v end) -- drag local dragging, dragStart, startPos topbar.InputBegan:Connect(function(inp) if inp.UserInputType == Enum.UserInputType.MouseButton1 then dragging=true; dragStart=inp.Position; startPos=main.Position inp.Changed:Connect(function() if inp.UserInputState == Enum.UserInputState.End then dragging=false end end) end end) UserInput.InputChanged:Connect(function(inp) if dragging and inp.UserInputType == Enum.UserInputType.MouseMovement then local d = inp.Position - dragStart main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset+d.X, startPos.Y.Scale, startPos.Y.Offset+d.Y) end end) -- mouse click local function syncSliders(c) local r,g,b = math.floor(c.R*255), math.floor(c.G*255), math.floor(c.B*255) rgbValues.r,rgbValues.g,rgbValues.b = r,g,b rFill.Size=UDim2.new(r/255,0,1,0); rVal.Text=tostring(r) gFill.Size=UDim2.new(g/255,0,1,0); gVal.Text=tostring(g) bFill.Size=UDim2.new(b/255,0,1,0); bVal.Text=tostring(b) swatch.BackgroundColor3=c end mouse.Button1Down:Connect(function() local t = mouse.Target if not t then return end if selectingColor and t.Name == "Province" then setColor(t.Color); syncSliders(t.Color) selectingColor=false modeLabel.Text="mode: idle"; modeLabel.TextColor3=Color3.fromRGB(180,180,180) return end if t.Name ~= "Province" then return end if selectingProvince then startPainting(t) end if removingProvince then removeProvince(t) end end) -- keybinds UserInput.InputBegan:Connect(function(inp, isTyping) if isTyping then return end if inp.KeyCode == Enum.KeyCode.R then local c = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) setColor(c); syncSliders(c) elseif inp.KeyCode == Enum.KeyCode.E then selectingColor=true; selectingProvince=false; removingProvince=false modeLabel.Text="mode: eyedrop — click a province" modeLabel.TextColor3=Color3.fromRGB(120,180,255) elseif inp.KeyCode == Enum.KeyCode.Q then painting = not painting end end) -- stats loop task.spawn(function() while task.wait(1) do ppsLabel.Text = paintsThisSec.." paint/sec | "..#provinces.." provinces" ppsLabel.TextColor3 = paintsThisSec>=300 and Color3.fromRGB(235,8,10) or paintsThisSec>=100 and Color3.fromRGB(245,128,37) or paintsThisSec>=50 and Color3.fromRGB(247,226,112) or Color3.fromRGB(80,255,123) paintsThisSec = 0 end end)