I'm trying to make it so if a key is pressed (e), a script will be disabled. The script I want to disable is called "Footstep", basically a script that makes the player have footstep sounds when they walk. This is the script that I have been using, but it is not working.
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(KeyPressed)
if KeyPressed == "e" then
game.Workspace.Footstep.Disable = true
end
end)
Sorry if this question has an obvious answer, I'm new to LUA. Thanks :)

2 comments
use Keyboard input instead.
and it Disabled