So i was trying to Re-Make a combat i had a while ago Here Is The Script
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
Combo = 0
Enabled = true
Mouse.KeyDown:connect(function(key)
key = key:lower()
if key ~= "q" then return end;
if Combo == 0 and Enabled == true then
Enabled = false
print("PunchRight")
wait(1)
Enabled = true
Combo = 1
end
if Combo == 1 and Enabled == true then
Enabled = false
print("PunchLeft")
wait(1)
Enabled = true
Combo = 0
end
end)
But The Real Problem Is At:
if Combo == 1 and Enabled == true then
Enabled = false
print("PunchLeft")
wait(1)
Enabled = true
Combo = 0
end
So for some reason every time i press q the script does what it should, print "Punch Right", but..then Punch Left Prints? anyway i could somehow fixed that to where if i press q again it prints "Punch left" ?? any help will be greatly appreciated!
