partyhat.lua

main 10 lines · 347 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onUse(player, item, fromPosition, target, toPosition, isHotkey)
2 local headSlotItem = player:getSlotItem(CONST_SLOT_HEAD)
3 if not headSlotItem or item.uid ~= headSlotItem:getUniqueId() then
4 return false
5 end
6 player:addAchievementProgress("Party Animal", 200)
7 player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
8 return true
9end
10
Top