Near Instant Paint
Key Required

Near Instant Paint

Color by number SkullsSkulls 3.2K views 27 executesUpdated Apr 30, 2022
5.0/ 5(1 votes)
10100% Positive
Lua Script•59 lines (2004 chars)
-- Huge shoutout and thanks to Votteq https://v3rmillion.net/showthread.php?tid=1164422
function GetOwner()
local stringy

for i,v in pairs(game:GetService("Workspace").Map.Blocks:GetDescendants()) do
if v.Name == "OwnerFace" and v.Parent.Name == "SpawnLocation" then 
if v:FindFirstChild("SurfaceGui"):FindFirstChild("ImageLabel").Image == tostring("rbxthumb://type=AvatarHeadShot&id="..game:GetService("Players").LocalPlayer.UserId.."&w=420&h=420") then
stringy = tostring("rbxthumb://type=AvatarHeadShot&id="..game:GetService("Players").LocalPlayer.UserId.."&w=420&h=420")
end
end
end

for i,v in pairs(game:GetService("Workspace").Map.Blocks:GetDescendants()) do
if v.Name == "OwnerFace" and v.Parent.Name == "SpawnLocation" then 
if v:FindFirstChild("SurfaceGui"):FindFirstChild("ImageLabel").Image == stringy then
stringy = v
end
end
end
return stringy.Parent.Parent
end

local usrPlot = GetOwner()

local R = false

function Build()
   if R == false then 
       R = true
   local remote = game:GetService("ReplicatedStorage").Knit.Services.PixelGeneratorService.RF.DrawPixel
   for i,v in pairs(usrPlot:WaitForChild("Draw"):GetChildren()) do -- Replace WaitForChild with FindFirstChild if you want it to be per-execute
       task.spawn(function()
   if v.Name == "Part" and v:WaitForChild("Texture").Transparency == 0 then
       v:FindFirstChild("Texture").Transparency = 0.1 -- To avoid re-painting this and lagging out
           task.wait(math.random(0,15)) -- I suggest leaving the max on 15. Lower may lag out, higher will take too long.
   remote:InvokeServer(v)
   end
       end)
   end
   end
   R = false
end

function IsNoSurvivors()
   local te = 0
   for i,v in pairs(GetOwner().Draw:GetChildren()) do
if v.Name == "Part" and v:FindFirstChild("Texture") then
if v.Name == "Part" and v:FindFirstChild("Texture").Transparency ~= 0.75 or v:FindFirstChild("Texture").Transparency ~= 0 then
te = te + 1
end
end
end
   return te
end

while IsNoSurvivors() ~= 0 do
task.wait()
Build()
end

Features & Information

rEaD tHe ScRiPt NaMe 💀

Community Comments (3)

randomguyrandomguyApr 30, 2022(edited)

laggy as **** but works

SkullsSkullsApr 30, 2022(edited)

Trying to find a way to make it smoother but it's gon take me 10 yrs 💀

AXDWTAXDWTMay 1, 2022(edited)

it works but it kicks you for few mins

More Scripts for Color by number