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

Why does my punch script miss half of the time?

Asked by 5 years ago
Edited 5 years ago
--server script 1 
function game.ReplicatedStorage.Punching:OnServerInvoke(player)
local damage = script.Dmg:Clone()
    damage.Disabled = false
    damage.Parent = player.Character.LeftHand 
    wait(0.3)
    damage:Destroy()
    end
--Actual script that does damage 
local LHand = script.Parent
    local hurt = script.DMG
        LHand.Touched:connect(function(Part)
if Part.Parent:FindFirstChild("Humanoid") then
        local Human = Part.Parent:FindFirstChild("Humanoid")
Human.Health = Human.Health - hurt.Value
end
        end)

Basically half of the time it works and damages the other player. Half of the time it does not. I think this is either a script issue or animation issue. The animation punch's around where your neck would be, so if it did hit it would hit your head, upper torso, or part of your arm.

0
punch better xd theking48989987 2147 — 5y
0
If only it was that simple lmao, later I will edit with the animation and make it aim lower XX_Doggoa 24 — 5y
1
You and/or your players suck at punching so you need to practice with aiming User#24403 69 — 5y
0
BOI ^ DeceptiveCaster 3761 — 5y
0
lmao, if you can't help then dont respond XX_Doggoa 24 — 5y

Answer this question