So, I am, like the title says, trying to make a charge attack, I have some code but it doesn't work, all it does is play the charge up sound but it doesn't actually do the attack. Here is the code:

timer = 0 swingCharge = false mouse1down = false function swing() if activu == true then return end if appeared == false then return end mouse.Button1Down:connect(function() mouse1down = true swingCharge = true end) if mouse1down == true then casey_charge:Play() casey_anim:Play() repeat timer = timer + 1 wait(0.2) until timer == 15 end if mouse1down == false and timer >= 7 then coroutine.resume(coroutine.create(function() for _ = 1, 10 do wait() hito2(stand.Blade, 4.7, 30, 0.5, 0.25, rot.CFrame.lookVector * 40 + Vector3.new(0, -10, 0)) end end)) wait(0.5) end end

Also, sorry if I am misusing the website again, I am kind of unsure.

1 comment

0

People will not help you if they can't read your code. Before you upload your question, press the Preview button to see what your post looks like. To format your code, highlight your code and press Tab to indent it. This will make your post a helluva lot more legible.