The damages are set to 15 but it does max damage. Please help.
local function WaitForChild(parent, childName)
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
local SLASH_DAMAGE = 15
local DOWNSTAB_DAMAGE = 15
local THROWING_DAMAGE = 15
local HOLD_TO_THROW_TIME = 0.38
local Damage = 15
local MyHumanoid = nil
local MyTorso = nil
local MyCharacter = nil
local MyPlayer = nil
local Tool = script.Parent
local Handle = WaitForChild(Tool, 'Handle')
local BlowConnection
local Button1DownConnection
local Button1UpConnection
local PlayStabPunch
local PlayDownStab
local PlayThrow
local PlayThrowCharge
local IconUrl = Tool.TextureId -- URL to the weapon knife icon asset
local DebrisService = game:GetService('Debris')
local PlayersService = game:GetService('Players')
local SlashSound
local HitPlayers = {}
local LeftButtonDownTime = nil
local Attacking = false
function Blow(hit)
if Attacking then
BlowDamage(hit, Damage)
end
end
function BlowDamage(hit, damage)
local humanoid = hit.Parent:FindFirstChild('Humanoid')
local player = PlayersService:GetPlayerFromCharacter(hit.Parent)
if humanoid ~= nil and MyHumanoid ~= nil and humanoid ~= MyHumanoid then
if not MyPlayer.Neutral then
-- Ignore teammates hit
if player and player ~= MyPlayer and player.TeamColor == MyPlayer.TeamColor then
return
end
end
-- final check, make sure weapon is in-hand
local rightArm = MyCharacter:FindFirstChild('Right Arm')
if (rightArm ~= nil) then
-- Check if the weld exists between the hand and the weapon
local joint = rightArm:FindFirstChild('RightGrip')
if (joint ~= nil and (joint.Part0 == Handle or joint.Part1 == Handle)) then
-- Make sure you only hit them once per swing
TagHumanoid(humanoid, MyPlayer)
print("Sending " .. damage)
local checksound = humanoid.Parent:findFirstChild("Sound")
if checksound == nil then
local givesound = script.Parent.Sound:clone()
givesound.Parent = humanoid.Parent
givesound.Disabled = false
else
checksound:remove()
local givesound = script.Parent.Sound:clone()
givesound.Parent = humanoid.Parent
givesound.Disabled = false
end
wait()
humanoid:TakeDamage(humanoid.MaxHealth)
if humanoid.Health == math.huge or humanoid.MaxHealth == math.huge then
humanoid.Parent:BreakJoints()
end
end
end
end
end

2 comments
Could you include the part of the script where the humanoid takes damage? Look for the line that says something like Humanoid:TakeDamage
Might be because of the "humanoid.Parent:BreakJoins()"