UIS = game:GetService("UserInputService")
local Key1 = false
local Key2 = false
UIS.InputBegan:Connect(function(input, gp)
if input.KeyCode == Enum.KeyCode.LeftShift then
Key1 = true
end
if input.KeyCode == Enum.KeyCode.F then
Key2 = true
end
if Key1 and Key2 then
Key1, Key2 = false, false
print("done") -- or whatever you want to do
end
end)
UIS.InputEnded:Connect(function(input, gp)
if input.KeyCode == Enum.KeyCode.LeftShift then
Key1 = false
end
if input.KeyCode == Enum.KeyCode.F then
Key2 = false
end
end)