This is what I have so far in my quest in trying to make this work, all of this part is done in a local script that is inside the player's character.
local flipping = false
local player = game.Players.LocalPlayer
local character = player.Character
local hum = character:FindFirstChild("Humanoid")
local UIS = game:GetService("UserInputService")
UIS.InputBegan:connect(function(input, event)
if event then return end
if input.KeyCode == Enum.KeyCode.Q then
if not flipping then
flipping = tick()
else
if tick() - flipping < 0.2 then
flipping = true
--Do Stuff here
wait(1)
flipping = false
else
flipping = false
end
end
end
end)
I keep getting this error which I don't know if this is contributing to it not working that well, and I don't really understand how I would fix it.
Workspace.MyTradeJustWentViral.StaminaMoves:87: attempt to perform arithmetic on upvalue 'flipping' (a boolean value)
It's not really that accurate at detecting if you actually double tapped the button. Any help on this would be appreciated.

2 comments
Worked, thats a lot!
No problem.