|
| 03 Jun 2015 06:22 PM |
SO WHAT IT'S SUPPOSED TO DO IS FILL IN THE AREAS I SELECT WITH A COLOR
INSTEAD WHAT HAPPENS IS ALL THE PIXELS OF THAT COLOR CHANGE INTO THE COLOR I WANT INSTEAD OF JUST A SMALL AREA
IT DOESN'T STOP THERE, AS IT LAGS THE SERVER TO DEATH EVEN AFTER IT RUNS
SEE FOR YOURSELVES http://www.roblox.com/games/187361696/ROBLOX-Paint-xuerwasd#!/game-instances
function fill(frame,bcolor) local frameX = 0 local frameY = 0 local frame1 = nil for i=1,#frames do if frames[i][1]==frame then frameX=frames[i][2] frameY=frames[i][3] frame1=i end end repeat wait() until frame1 for i=1,#frames do if frame1 then print("jesus christ does this work") if frames[i][2]==frames[frame1][2]+1 and frames[i][1].BackgroundColor3==bcolor then frames[i][1].BackgroundColor3=color fill(frames[i][1],bcolor) print("filled") elseif frames[i][2]==frames[frame1][3]+1 and frames[i][1].BackgroundColor3==bcolor then frames[i][1].BackgroundColor3=color fill(frames[i][1],bcolor) print("filled") elseif frames[i][2]==frames[frame1][2]-1 and frames[i][1].BackgroundColor3==bcolor then frames[i][1].BackgroundColor3=color fill(frames[i][1],bcolor) print("filled") elseif frames[i][2]==frames[frame1][3]-1 and frames[i][1].BackgroundColor3==bcolor then frames[i][1].BackgroundColor3=color fill(frames[i][1],bcolor) print("filled") end end end end |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 06:40 PM |
OR IF U PREFER THIS (its the same thing)
function fill(frame,bcolor) local frameX = 0 local frameY = 0 local frame1 = nil for i=1,#frames do if frames[i][1]==frame then frameX=frames[i][2] frameY=frames[i][3] frame1=i end end repeat wait() until frame1 for i=1,#frames do if frame1 then --print("jesus christ does this work") if (frames[i][2]==frames[frame1][3]-1 and frames[i][1].BackgroundColor3==bcolor) or (frames[i][2]==frames[frame1][2]-1 and frames[i][1].BackgroundColor3==bcolor) or (frames[i][2]==frames[frame1][3]+1 and frames[i][1].BackgroundColor3==bcolor) or (frames[i][2]==frames[frame1][2]+1 and frames[i][1].BackgroundColor3==bcolor) then frames[i][1].BackgroundColor3=color fill(frames[i][1],bcolor) print("filled") end end end end
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
5GJ
|
  |
| Joined: 29 May 2015 |
| Total Posts: 59 |
|
|
| 03 Jun 2015 09:01 PM |
| Idk = print("I don't know") |
|
|
| Report Abuse |
|
|
| |
|