What 's wrong with this script?

local SkinLizards = getuseroption('skin')

auto(1000)

if itemcount('obsidian knife') > 0 and SkinLizards then
if ($wptsection == 'Hunt' and maround(7) == 0 and $lootsaround == 0) then
wait(50,100)
skin(7, false)
end
end

The character takes the lizard skin , but sometimes it is stopped, or if you have another another body beneath the lizard it is locked and will not start and is still standing in the same place , how to solve this ? sorry for the bad English