Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local target = player.GetByUniqueID(--[[CapsAdmin]] "1416729906")
- local siz = Vector(10,10)
- local r,g,b
- hook.Add("HUDPaint","mosaic",function()
- local srcpos = target:GetAttachment(target:LookupAttachment("eyes")).Pos
- local screen = srcpos:ToScreen()
- render.CapturePixels()
- for x = 1, 8 do
- x = x * siz.x
- for y = 1, 8 do
- y = y * siz.y
- local x = screen.x + x - (siz.x*4)
- local y = screen.y + y - (siz.y*4)
- local r,g,b = render.ReadPixel(x, y)
- surface.SetDrawColor(r, g, b, 255)
- surface.DrawRect(x,y, siz.x, siz.y)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment