Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make the players legs deal damage when the keycode C is pressed?

Asked by 2 years ago

Hi, what i want to happen is so that the players legs deal damage (when you click C) when they touch another player but my problem is that the legs constantly deal damage, please help

01--Made By 123Marooxd123
02local lleg = script.Parent:FindFirstChild("Left Leg")
03local rleg = script.Parent:FindFirstChild("Right Leg")
04 
05local UIS = game:GetService("UserInputService")
06local character = script.Parent
07local humanoid = character:WaitForChild("Humanoid")
08local DropAnim= Instance.new("Animation")
09DropAnim.AnimationId = "rbxassetid://9642052968"
10 
11local dmg = false
12local CanDropkick = false
13local Keybind = Enum.KeyCode.E
14local LeftLeg = game.Players.LocalPlayer.Character["Left Leg"]
15local RightLeg = game.Players.LocalPlayer.Character["Right Leg"]
View all 73 lines...
0
there's a problem with ur debounce ZeroToH3ro 82 — 2y
0
i dont have debounce because i dont know how to implement it 123marooxd123 13 — 2y

Answer this question