|
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.
>.< |
|
|
|
Have you EVER scripted before?
Inventories aren't great for starting out. |
|
|
|
Learn loops, arrays, functions, conditions (if statements) first. |
|
adarkJoin Date: 2008-01-13 Post Count: 6412 |
Start from the top, not using any code speak.
What, *exactly*, are you trying to accomplish?
Too exact is perfect. |
|
|
|
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. |
|
|
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)
|
|
|
|
Well, is it in a LocalScript?
What are you calling the GUI? |
|
|
Oops, also add 2 ends after the first one.
I'm starting to lose it. Getting late. x.x |
|
|
lol, Yes its a local script, and the GUI's called "Inventory" |
|
GoulstemJoin Date: 2012-07-04 Post Count: 7177 |
'Master Scripter'
*applause*
._.
Go Home. |
|
robomax11Join Date: 2011-07-07 Post Count: 6828 |
^ yea @OP get out u lie
liar
the shible say if ppl lie they get aten by doge's pet human douge |
|
CrakkittyJoin Date: 2009-12-25 Post Count: 17408 |
OP is an idiot tbh, made multiple threads asking for help whilst being in a 'Master Scripter' group, ugh. |
|