Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
iSpoofinq -11
6 years ago

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

Log in to vote
1
Answered by
Jo_Bot 67
6 years ago

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- ;  `    `--^---'          ,'     | 
          \  `                    /      / 
           \   `    _ _          / 
            \           `       / 
             \           '    ,' 
              `.       ,   _,' 
                `-.___.---' 

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. iSpoofinq -11 — 6y
0
https://wiki.roblox.com/index.php?title=API:Class/Tool this shows all you should need to know about tools I think. Jo_Bot 67 — 6y
0
Alright, I'll look into it more but I'm still confused on the entire process of scripting and how to disable this. iSpoofinq -11 — 6y
0
this comment is solid gold Le_Teapots 913 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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.

0
I'm sorry but I'm not sure HopperBins are still in the game.. iSpoofinq -11 — 6y

Answer this question