|
Post by billur on Jan 21, 2019 19:50:52 GMT
Hello. How to randomly click in a particular region?
|
|
edison12344
Contributors
Target Mission: Help Gamers
Posts: 142
|
Post by edison12344 on Jan 21, 2019 23:39:35 GMT
while(true) do local randomizer=math.random(0,1) if(randomizer==1) then click(region) end end
|
|
|
Post by billur on Jan 22, 2019 4:10:28 GMT
I incorrectly formulated the question. I meant in a given region to click on a random point.
|
|
joee
New Member
Posts: 9
|
Post by joee on Jan 22, 2019 4:24:38 GMT
Area = Region(0, 0, 0, 0) click(Location(Area:getX() + math.random(0, Area:getW()), Area:getY() + math.random(0, Area:getH())))
|
|
|
Post by billur on Jan 22, 2019 4:57:21 GMT
Thanks
|
|