#What am I doing wrong

1 messages · Page 1 of 1 (latest)

lusty bone
#

I get this error:

stack traceback:
    [C]: in metamethod '__index'
    [string "/stats/effects/nuuracialstat/nuuracialstat.lu..."]:25: in function <[string "/stats/effects/nuuracialstat/nuuracialstat.lu..."]:17>```

When I do this in an attempt to check if the player's hands are empty:
```if not type(player.primaryHandItem()) == "string" and not type(player.altHandItem()) == "string" then

end```
gleaming mango
#

effects dont have player

#

i think theres some world functions that can get the hand items instead

lusty bone
#

💀

lusty bone
#

Thanks!
world.entityHandItem(entity.id(), "primary") == null and world.entityHandItem(entity.id(), "alt") == null