As the title says, Im trying to make a claymore that has a lunge attack when double clicked, when simply clicked once, It simply slashes, I am new at making tools that has a double click feature, and when (double) clicked It prints out nothing
Script:
local tool = script.Parent
local CanDoubleClickBoolValue = tool.CanDoubleClick
local Timer = 0.3
local Boolens = {
Debounce = false
}
tool.Activated:Connect(function()
if not Boolens.Debounce then
Boolens.Debounce = true
print("The tool has been clicked")
CanDoubleClickBoolValue.Value = true
if tool.Activated == true and CanDoubleClickBoolValue.Value == true and Timer <= 0 then
print("The tool has been double clicked")
CanDoubleClickBoolValue.Value = false
end
wait(Timer)
CanDoubleClickBoolValue.Value = false
end
end)
