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

Damage when Touched?

Asked by 10 years ago
wait(0.01)
local enabled = true
Player = game.Players.LocalPlayer
character = Player.Character
mouse = Player:GetMouse()
run = game:GetService("RunService")
RS = Player.Character.Torso["Right Shoulder"]
LS = Player.Character.Torso["Left Shoulder"]

function onKeyDown(key)
    key = key:lower()
    if key == "x" then
        for i = 1,5 do
            RS.C0 = RS.C0 *CFrame.Angles(0, 0, 0.5)
            wait()
        end
        for i = 1,5 do
            RS.C0 = RS.C0 *CFrame.Angles(0, 0, -0.5)
            wait()
        end
        for i = 1,5 do
            LS.C0 = LS.C0 *CFrame.Angles(0, 0, -0.5)
            wait()
        end
        for i = 1,5 do
            LS.C0 = LS.C0 *CFrame.Angles(0, 0, 0.5)
            wait()
        end
    end
end

mouse.KeyDown:connect(onKeyDown)

How do i add damage so that when the fist touch someone they get 5% percent of damage?

0
What do you mean by 5% damage? Do you mean like they get damaged by 5 points, or 5% of their health is gone? Octillerysnacker 115 — 10y

Answer this question