-LocalScript
repeat wait() until game.Players.LocalPlayer
local p = game.Players.LocalPlayer
local m = p:GetMouse()
local folder = p.PlayerGui:WaitForChild("GUINAME")
local guitoopen = folder["Directoryhere"] -- What does this mean?
m.KeyDown:connect(function(key)
if key:lower() == "x" then
if guitoopen.Visible then
guitoopen.Visible = false
else
guitoopen.Visible = true
end
end
end)
Hello, thank you for reading. I needed a GUI where it'll open if you press a certain Key, which is "x". I found this in the history of ScriptingHelpers, but I was wondering what "Directoryhere" meant. If anyone can explain to me, I would be so grateful!
