Help with making a system where 1 primary and 1 secondary gun is allowed

How am I able to make a system where you are only allowed to carry 1 primary gun and 1 secondary gun?

1 Like

categorize your guns as primary and secondary and script it so that when the player selects their loadout they can only have one of each kind

1 Like

if player is constantly getting guns, add a variable inside or a thing that separates it from other types and check for that every second or something

How will I do that? I am not an advanced enough scripter, so it would be appreciated if you showed examples.

is the gun a tool or a pseudo tool?

A tool, not sure what a pseudo tool is.

just either check the name or add something for a script to check and replace when needed