so im trying to make a combo system for my game. I want to make a script that fires when the player hits the mouse buttons in a certain order consecutivly. For example, i want a combo like Mouse1+Mouse2+Mouse2 = Combo. When they enter in this order it wil fire. This is what i have so far
player = game.Players.LocalPlayer
uis = game:GetService("UserInputService")
uis.InputBegan:connect(function(key,procy)
if not proc then
local keys = uis:GetKeysPressed()
local needed = {"Mouse1","Mouse2","Mouse2"}
for i ,v in pairs(keys) do
if keys == needed then
print("I Got a Combo")
end
end
end
end)
This doesnt work at all and im not sure if I'm even doing it correctly >.>
