Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mat = Material( "https://avatars.akamai.steamstatic.com/8ce5e58726b034567de364c8dc150c768b33d995_medium.jpg" )
- local text = mat:GetTexture("$basetexture")
- print(text)
- wid = text:Width()
- hei = text:Height()
- local x, y = 1, 1
- local last = 0
- hook.Add("Tick","sas",function ()
- cur = CurTime()
- if cur - last > 0.6 then
- net.Start("pixelbattle")
- net.WriteUInt(x,24)
- net.WriteUInt(y,24)
- net.WriteUInt(pixelbattle.encode(text:GetColor(x,y)),24)
- net.SendToServer()
- x = x + 1
- if x > wid then
- x = 0
- y = y + 1
- end
- if y > hei then
- y = 0
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement