I need help breaking a spiderweb in farmine id of spider web is 182. i have tried many scripts that break it but not one of them work


Code:
local X,Y,Z = 33208,31404,8 --change the coordenate here dont use space 
local weaponTOuse = "machete" 

--dont change below 
local Break = { 183, 2295, 2296, 7538, 7539 } 
while toptileitem(X,Y,Z) ~= 183 and toptileitem(X,Y,Z) ~= 189 do 
moveitems(toptileitem(X,Y,Z), ground(X,Y,Z), ground(posx,posy,posz), 100) 
wait(500) 
toptileitem(X,Y,Z) 
end 

for i,j in pairs(Break) do 
   while toptileitem(X,Y,Z) == Break[i] do 
      useitemon(weaponTOuse,X,Y,Z) 
      wait(400,500) 
   end 
end
This doesnt work and yes i changed coordinates and id in it but nothing seems to work