For some reason, the ColorCorrectEffect which I've named ''Sharingan" only turns on (enables) if I'm holding "u", if I let go of the Key "u" the ColorCorrectEffect turns off (disables) which is something I don't want, it's only supposed to disable if I press "u" again after I've already pressed "u" to enable it. Any help?
Script:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Humanoid = player.Character:FindFirstChild('Humanoid')
local sharingan = game.Lighting.Sharingan
mouse.KeyDown:Connect(function(Key)
if Key == "q" then
sharingan.Enabled = true
Humanoid.WalkSpeed = 20
end
end)
mouse.KeyUp:Connect(function(Key)
if Key == "q" then
sharingan.Enabled = false
Humanoid.WalkSpeed = 16
end
end)

3 comments
KeyDown must be connected with a loop
Oh.
KeyDown is deprecated, use UserInputService.InputBegan()