Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Does anyone know how to disable not holding an item in your backpack?

I'm making an fps game, and there's one big issue. Whenever I press number 1, 2, or any number, my weapon is gone, and I have my hand. The FOV while holding my hand is different than what is the gun, so I was wondering if I could disable not holding an item at all times, if that makes any sense. If anyone thinks they know what I mean, or what they can do to help, please let me know because this has been stumping me for the past day. I also want to make it so that you can't see the items at the bottom of your screen if that's possible as well. Thanks!

2 answers

I'm not going to try to give you the script, but rather just an explanation on what you can do. Have an unequipped event that causes you to re-equip the gun. I don't know if this makes sense, I think it does. :P

                      _____ 
                   ,-'     `._ 
                 ,'           `.        ,-. 
               ,'               \       ),.\ 
     ,.       /                  \     /(  \; 
    /'\\     ,o.        ,ooooo.   \  ,'  `-') 
    )) )`. d8P"Y8.    ,8P"""""Y8.  `'  .--"' 
   (`-'   `Y'  `Y8    dP       `'     / 
    `----.(   __ `    ,' ,---.       ( 
           ),--.`.   (  ;,---.        ) 
          / \O_,' )   \  \O_,'        | 
         ;  `-- ,'       `---'        | 
         |    -'         `.           | 
        _;    ,            )          : 
     _.'|     `.:._   ,.::" `..       | 
  --'   |   .'     """         `      |`. 
        |  :;      :   :     _.       |`.`.-'--. 
        |  ' .     :   :__.,'|/       |  \ 
        `     \--.__.-'|_|_|-/        /   ) 
         \     \_   `--^"__,'        ,    | 
   -hrr- ;  `    `--^---'          ,'     | 
          \  `                    /      / 
           \   `    _ _          / 
            \           `       / 
             \           '    ,' 
              `.       ,   _,' 
                `-.___.---' 

4 comments

0

Not really lol. I think I understand what you mean, but since I am fairly new to this, I'm entirely clueless on where to start, but thanks for the idea haha.

0

https://wiki.roblox.com/index.php?title=API:Class/Tool this shows all you should need to know about tools I think.

0

Alright, I'll look into it more but I'm still confused on the entire process of scripting and how to disable this.

0

this comment is solid gold

Might want to use a hopper-bin instead of a tool, from my understanding you want to have a tool without a handle. As for seeing the item at the bottom left of the screen, just make a HUD/Screen GUI then write up an equipped function that changes the item name or picture (whatever you decide to do) to the equipped item.

1 comment

0

I'm sorry but I'm not sure HopperBins are still in the game..

This discussion is preserved as it was. New answers, comments, and votes are closed.