I know how to make a regular if key == "" then script but how do you make it so that you have to press the key twice
COMMUNITY QUESTION
How can I make a double tapped key script?
1 answer
local timeBeforePressingSecond=5
game.Players.LocalPlayer:GetMouse''.KeyDown:connect(function(k)
local time=os.time''
game.Players.LocalPlayer:GetMouse''.KeyDown:connect(function(k)
if((time-os.time'')>=timeBeforePressingSecond)then
--code
end
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks for writing the code for him so he learns nothing... He needs to write his script first then we help him.