|
| 18 Jan 2014 11:52 PM |
I was thinking about making an inventory gui, and to open you press 'e'.
GUI's called: "Inventory"
inventory = game.workspace.Inventory.open
if inventory == false then key "e".....
I don't know WHAT to do.
>.< |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 12:08 AM |
Have you EVER scripted before?
Inventories aren't great for starting out. |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 12:10 AM |
| Learn loops, arrays, functions, conditions (if statements) first. |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 19 Jan 2014 12:11 AM |
Start from the top, not using any code speak.
What, *exactly*, are you trying to accomplish?
Too exact is perfect. |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 12:12 AM |
| I want to make an inventory GUI which is easy, but I want to make it so when you press the 'e' key the inventory gui will open. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:15 AM |
plrmouse = game.Players.LocalPlayer:GetMouse() open = false
function keyDown(key) if key == "e" then if open then game.Players.LocalPlayer.PlayerGui.Inventory.Visible = false else game.Players.LocalPlayer.PlayerGui.Inventory.Visible = true end
plrmouse.KeyDown:connect(keyDown)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 12:21 AM |
Well, is it in a LocalScript?
What are you calling the GUI? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:21 AM |
Oops, also add 2 ends after the first one.
I'm starting to lose it. Getting late. x.x |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:23 AM |
| lol, Yes its a local script, and the GUI's called "Inventory" |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 19 Jan 2014 02:00 AM |
'Master Scripter'
*applause*
._.
Go Home. |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 19 Jan 2014 02:02 AM |
^ yea @OP get out u lie
liar
the shible say if ppl lie they get aten by doge's pet human douge |
|
|
| Report Abuse |
|
|
Crakkitty
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 17408 |
|
|
| 19 Jan 2014 02:52 AM |
| OP is an idiot tbh, made multiple threads asking for help whilst being in a 'Master Scripter' group, ugh. |
|
|
| Report Abuse |
|
|