Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ofx, ofy = 132, 75
- local sx, sy = 71, 35
- local x, y = 0, 0
- local last = 0
- hook.Add("Tick","fill",function ()
- cur = CurTime()
- if cur - last > 0.6 then
- net.Start("pixelbattle")
- net.WriteUInt(ofx + x, 24)
- net.WriteUInt(ofy + y, 24)
- net.WriteUInt(pixelbattle.encode(HSVToColor((x / sx) * 180 + (y / sy) * 180, 1, 1)), 24)
- net.SendToServer()
- last = cur
- x = x + 1
- if x > sx then
- x = 0
- y = y + 1
- end
- if y > sy then
- for i=1, 10 do
- print("Finished painting")
- end
- error("Ready")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement