Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Why does my punch script miss half of the time?

Asked by 2 months ago
Edited 2 months 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 1726 — 2mo
0
If only it was that simple lmao, later I will edit with the animation and make it aim lower XX_Doggoa 22 — 2mo
1
You and/or your players suck at punching so you need to practice with aiming incapaxx 2881 — 2mo
0
BOI ^ RobloxWhizYT 1852 — 2mo
0
lmao, if you can't help then dont respond XX_Doggoa 22 — 2mo

Answer this question