Why does this script allow every team to use NVG?
local UserInputService = game:GetService('UserInputService')
local Enabled = false
UserInputService.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.N then
if LocalPlayer.Character.Humanoid.Health > 0 then
if LocalPlayer.Team == 'Administration' or 'Security Department' then
if not Enabled then
LocalPlayer.PlayerGui:WaitForChild("Information Gui").NVToggle:Play()
LocalPlayer.PlayerGui:WaitForChild("Information Gui").NV.Visible = true
game.Lighting.Ambient = Color3.fromRGB(0, 255, 0)
Enabled = true
elseif Enabled then
LocalPlayer.PlayerGui:WaitForChild("Information Gui").NVToggle:Play()
LocalPlayer.PlayerGui:WaitForChild("Information Gui").NV.Visible = false
game.Lighting.Ambient = Color3.fromRGB(0, 0, 0)
Enabled = false
end
end
end
end
end
end)