local f
f = function()
local randomTime = math.random(7000, 12000)
triggerServerEvent('runAnim', root, localPlayer, randomTime)
i = i-1
setTimer(function()
if getElementData(localPlayer,'rightHand') == 3 then
antibag = nil
if i == 0 then
triggerServerEvent("moveTrisEvent", root, tris )
end
end
if(i >= 0) then
f()
end
end, randomTime, 1)
end
f()