I've scripted these goggles that change the tint of your screen. Issue is, every time I press the key, with or without the tool equipped. How can I fix this?
Code:
local UserInputService = game:GetService("UserInputService")
local function GetInput(input, gpe)
if input.KeyCode == Enum.KeyCode.T then
local thermal = Instance.new("ColorCorrectionEffect", game.Lighting)
thermal.Brightness = 0.3
thermal.Saturation = 1
thermal.TintColor = Color3.fromRGB(255,0,0)
end
end
UserInputService.InputBegan:Connect(GetInput)
