local items
function scaleItem()
items = game.CurrentCharacter.Items
for i =1, #items do
if game.CurrentObject:getName() == items[i]:getName() then
if ActiveAnimations[items[i]:getName()].AnimationCurrentSpriteIndex < 4 then
setAnimFrames(items[i]:getName(), 1, 5)
else
setAnimFrames(items[i]:getName(), 5, 5)
end
else
if ActiveAnimations[items[i]:getName()].AnimationCurrentSpriteIndex > 0 then
ActiveAnimations[items[i]:getName()].PlayOppositeDirection = true
setAnimFrames(items[i]:getName(), 1, 5)
else
ActiveAnimations[items[i]:getName()].PlayOppositeDirection = false
setAnimFrames(items[i]:getName(), 1, 1)
end
end
end
end