I tried using spawn() to reset the timer but it sometimes resets even when I click before it resets
local combo = 1
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 and equipped then
spawn(function() -- Reset combo
wait(0.5)
combo = 1
end)
if combo == 1 then
combo = 2
PlayL1:Play()
local x = Instance.new("BodyPosition", Hrp)
x.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
x.Position = Hrp.Position
game:GetService("Debris"):AddItem(x, 0.3)
elseif combo == 2 then
combo = 1
PlayL2:Play()
local x = Instance.new("BodyPosition", Hrp)
x.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
x.Position = Hrp.Position
game:GetService("Debris"):AddItem(x, 0.3)
end
end
end)
