Sorry, yea declare players needed for that. Nvm that.
SCAR Code:
If(FindColorSpiralTolerance(xl, yl, 5535856, xl - 20, yl - 20, xl + 20, yl + 20, 12))then
Thats your problem, xl and yl dont actually have any values. What are you trying to do here?
If its finding on the main screen use..
SCAR Code:
If(FindColorSpiralTolerance(xl, yl, 5535856, MSX1, MSY1, MSX2, MSY2, 12))then
If its near your character then..
SCAR Code:
If(FindColorSpiralTolerance(xl, yl, 5535856, MSCx-40, MSCy-40, MSCx+40, MSCy+40, 12))then