script is in StarterGui, doesn't work. No idea why.
01 | Local = game.Players.LocalPlayer |
02 | Mouse = Local:GetMouse() |
03 | inventory = Local.PlayerGui.Inventory:findFirstChild( "InventoryGui" ) |
04 | open = false |
05 |
06 | function open() |
07 | inventory.Visible = true |
08 | end |
09 |
10 | function close() |
11 | inventory.Visible = false |
12 | end |
13 |
14 | Mouse.KeyDown:connect( function (Key) -- q pressed |
15 | if Key = = "q" then |
open = true else open = false
I think I should take a break now...