|
| 15 Nov 2013 11:29 PM |
how would i make a script
when you hold "B" your backpack coregui will show and all tools in players backpack will become enabled
and when you stop holding "B" the coregui backpack hides and all tools become disabled
soap is good for you |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Nov 2013 11:33 PM |
KeyDown event of mouse SetCoreGuiEnabled event of startergui |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2013 11:34 PM |
| and to enable and disable all the tools? (if im correct wont let you be able to hold them) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Nov 2013 11:35 PM |
| Just force disequipping tools, since they can't equip a tool if they can't access it (when the backpack core gui is disabled) |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2013 11:36 PM |
did they make it so when backpack is disabled you cant press 1 and the 1st tool shows?
soap is good for you |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 15 Nov 2013 11:42 PM |
local script and where?
soap is good for you |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 15 Nov 2013 11:48 PM |
would
local function onKeyDown(B) game.StarterGui:SetCoreGuiEnabled("Backpack",false) end mouse.KeyDown:connect(onKeyDown)
local function onKeyUp( B) game.StarterGui:SetCoreGuiEnabled("Backpack",true) end mouse.KeyUp:connect(onKeyUp)
i just combined scripts from wiki
soap is good for you |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2013 11:57 PM |
how do i find the key that is pressed and also how do i make the backpack disabled by default?
soap is good for you |
|
|
| Report Abuse |
|
|
| |
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 16 Nov 2013 12:06 AM |
function on keydown if key = "b" then --code |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2013 12:08 AM |
i have got
local function onKeyDown( key ) if key == "B" then script.Parent:SetCoreGuiEnabled("Backpack",false) end mouse.KeyDown:connect(onKeyDown)
local function onKeyUp( key ) if key == "B" then script.Parent:SetCoreGuiEnabled("Backpack",true) end end end mouse.KeyUp:connect(onKeyUp)
wont work
soap is good for you |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Nov 2013 01:36 AM |
| Soap is not good for you, but good for your skin :) |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2013 01:38 AM |
Unnecessary @yoshimaster
Did you ever define player? The script is only looking for B not b. If you do key:lower() == "b" then it will work if caps or not. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2013 01:39 AM |
| Oops, meant to asked if you defined mouse? |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Nov 2013 01:03 AM |
how do i define it
soap is good for you |
|
|
| Report Abuse |
|
|
| |
|