Damage script doing more damage then it is supposed to

For one of the attacks in my game, getting hit by it will deal a set amount of damage if you are touching the hitbox.

The script works fine, but for some reason, the amount of damage being dealt is higher than the damage that I have set.

For reference, I have the damage value set to 60, but it instantly kills the player despite their hp being over 100,

Script:

local Debounce = false
Touching = false
Damage = game.Workspace.Values.Damage.Value --(60 Damage)

script.Parent.Touched:connect(function(hit)
	local plr = game.Players:FindFirstChild(hit.Parent.Name)
	if plr ~= nil and Touching == false then
		if Debounce == false then
		Debounce = true
		local hum = plr.Character:FindFirstChild('Humanoid')
		local char = plr.Character
		Touching = true
		hum:takeDamage(Damage)
		end
		end
end)

How do I solve this issue?

local Debounce = false
Touching = false
Damage = game.Workspace.Values.Damage.Value --(60 Damage)

script.Parent.Touched:connect(function(hit)
local plr = game.Players:FindFirstChild(hit.Parent.Name)
if plr ~= nil and Touching == false then
if Debounce == false then
Debounce = true
local hum = plr.Character:FindFirstChild('Humanoid')
local char = plr.Character
Touching = true
hum:takeDamage(Damage)
else
Touching = false
end
end
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.