For ex a player has to click EEQ to do a certain move or animation
✓ ANSWER ACCEPTED
How do i make a combo using UIS?
1 answer
✓ Accepted answer
local UIS = game:GetService("UserInputService")
local keys = {}
UIS.InputBegan:connect(function(key)
table.insert(keys, {key, tick()}
if tick() - keys[#keys - 2][2] < 1 then
if keys[#keys - 2][1].KeyCode == Enum.KeyCode.E then
if keys[#keys - 1][1].KeyCode == Enum.KeyCode.E then
if keys[#keys][1].KeyCode == Enum.KeyCode.Q then
--Combo
end
end
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Line 6 has an error
nvm i fixed it thx