Trying to make an input change the colour of the screenstint, nothing to difficult though this is my first time doing this and i cant figure it out
local ui = game.StarterGui.HUD
local screen = game.Lighting.Screen
local Open = true
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(keyCode)
if keyCode.keyCode == Enum.KeyCode.V then
if Open then
Open = false
ui.Enabled = false
wait(0.5)
screen.TintColor = "0, 0, 0"
else
Open = true
screen.TintColor = "212, 235, 255"
wait(0.5)
ui.Enabled = true
end
end
end)

2 comments
Works but now the HUD wont disable
nvm got it