#How do I prevent people from dual wielding?
1 messages · Page 1 of 1 (latest)
there is an event in the event reciever for a player picking something up. You could check when an item is picked up, and check if they are already holding something using - might be the wrong name - get equipped items; if they are already holding an item, unequip the one they just picked up
you'd need a delay between picking it up and dropping it, though, which can break
I have thought of a better method, but have not tested it: when a player picks up an item, give them a role that blocks them from picking up all items. When they drop an item, remove the role
(You can do that by editing the role, going to the restricting pick up section, and blocking all. Items already held don't get unequipped, I believe!)
use a get equipped objects
then an event recviver with update
and use an if is valid and if has tag twice for each hand
and give all the weapons a tag that you will put into the if has tag
That uses more cpu than necessary
if doing it that way, you only need to check when an item is picked up
if fixes the problem of duel wielding still existing
from my experience it takes like 1/10-1/5 of an fps
but it does it in a less efficient way 
cool but fps is slightly less important than game breaking bugs
this would use less chips and less cpu
and, in my opinion, would be a smoother user experience
cool but fps is slightly less important than game breaking bugs
most other things take multiple times more cpu this takes like 0.02%-0.05%
(depending on if you are holding something)
dont trust delays ever
it wouldn't use a delay
it's just using the built in item restriction feature lol
functions better, less chips, less cpu
isaac his idea is just objectively better
since things such as holding a grenade and a gun would count as a dual wield with your idea
giving the weapons tags would just be better
@rustic raven how tf do I connect the and chip
nope
the pickup restrictions has a tag feauture
you only need the is valid output
if you're using an and chip, I think you need to instead use has tag
as that will output a bool
• Player get Equipped items
• Dominant If is valid
Has tag (Your Tag)
• Off-Hand If is valid
Has tag (Your Tag)
• Both has tags to an And
• And to an if (on true) - unequip
thanks nerd
0-o
what and chip