generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: need help

Previous Thread :: Next Thread 
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Nov 2013 11:33 PM
KeyDown event of mouse
SetCoreGuiEnabled event of startergui
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
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 is not online. 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
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Nov 2013 11:38 PM
yeah
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
15 Nov 2013 11:42 PM
local script and where?



soap is good for you
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Nov 2013 11:43 PM
PlayerGui
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
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
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
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
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
16 Nov 2013 12:03 AM
bumop
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
16 Nov 2013 12:06 AM
function on keydown
if key = "b" then
--code
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
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
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
16 Nov 2013 12:19 AM
bump



soap is good for you
Report Abuse
yoshimaster240102 is not online. yoshimaster240102
Joined: 14 Apr 2012
Total Posts: 470
16 Nov 2013 01:36 AM
Soap is not good for you, but good for your skin :)
Report Abuse
RequestShutdown is not online. RequestShutdown
Joined: 18 Aug 2012
Total Posts: 4884
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
RequestShutdown is not online. RequestShutdown
Joined: 18 Aug 2012
Total Posts: 4884
16 Nov 2013 01:39 AM
Oops, meant to asked if you defined mouse?
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
16 Nov 2013 02:02 AM
no i havn't defined mouse
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
20 Nov 2013 01:03 AM
how do i define it



soap is good for you
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
20 Nov 2013 01:34 AM
bump



soap is good for you
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image