I am trying to make a Blade, and when you hold Q it charges an attack, more time = bigger attack. But I am really confused at the moment, because I am doing a "TakeoHonorable" Type gear (Person who made the periastrons) so luckymaxer's (or RBLXLucky's) gear which involves holding down the mouse will not help me at all :C.
Current Code so far!
Tool.Strike.OnServerEvent:Connect(function(Client,KeyCode) --Registers ability from LocalScript
if not KeyCode then return end
if KeyCode == Enum.KeyCode.Q and Handle.Particle.Flare.Enabled == true then
Handle.SunCharge:Play()
Tool.Enabled = false
LeftDown = true
local HoldTime = 0
while LeftDown do
HoldTime = HoldTime + Heartbeat:wait()
if HoldTime >= 6 then
break
elseif HoldTime <= 3 then
break
elseif HoldTime <= 1 then
break
end
end
end
end)
you never know, this might be a good code, or it will go horribly!

1 comment
Meanwhile this stays up, i will update my code a bit, so this may be outdated