Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui Open and Close with :GetMouse() ?

Asked by 11 years ago

script is in StarterGui, doesn't work. No idea why.

01Local = game.Players.LocalPlayer
02Mouse = Local:GetMouse()
03inventory = Local.PlayerGui.Inventory:findFirstChild("InventoryGui")
04open = false
05 
06function open()
07    inventory.Visible = true
08end
09 
10function close()
11    inventory.Visible = false
12end
13 
14Mouse.KeyDown:connect(function(Key) -- q pressed
15    if Key == "q" then
View all 24 lines...

2 answers

Log in to vote
0
Answered by 11 years ago

open = true else open = false

I think I should take a break now...

Ad
Log in to vote
0
Answered by 10 years ago

Make it a localscript.

Answer this question