Code: local rp = game:GetService("ReplicatedStorage") local Combat = rp:WaitForChild("Combat")
local UIS = game:GetService("UserInputService") local debounce = false local cds = { 0, 1 } local sequence = "" local curr = 0 local prev = 0
UIS.InputBegan:Connect(function(input,isTyping) if not isTyping then if input.UserInputType == Enum.UserInputType.MouseButton1 then if debounce == false then debounce = true curr = os.clock()
local PT = curr - prev
if PT < 1 then
sequence = sequence.."L"
if string.len(sequence) > 4 then
sequence = "L"
end
else
sequence = "L"
end
Combat:FireServer(sequence)
end
end
end
end)
Combat.OnClientEvent:Connect(function(bool) prev = curr
if bool then
wait(cds[2])
debounce = false
else
debounce = false
end
end)

1 comment
script was posted pretty poorly but first time posting on here, help would be much appreciated.