Error with the end all the way to the bottom
--if _ Keydown delete and create new Gui
game:GetService("UserInputService").InputBegan:connect(function(key)
if key.KeyCode == Enum.KeyCode.Tab then
print 'the key Tab has been pressed'
local Gui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("One")
if Gui then
Gui:Destroy()
end
end
------------------------------------------------------------------------------------
game:GetService("UserInputService").InputBegan:connect(function(key)
if key.KeyCode == Enum.KeyCode.Tab then
player = game.Players.LocalPlayer
gui = game.Lighting.Two
gui:Clone().Parent = player.PlayerGui
end
game:GetService("UserInputService").InputBegan:connect(function(key)
if key.KeyCode == Enum.KeyCode.Tab then
local Gui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("Two")
if Gui then
Gui:Destroy()
end
end --ERROR
