Untitled

 avatar
unknown
lua
10 months ago
270 B
5
Indexable
local damageAmount = 20

local function onTouch(hit)
	local character = hit.Parent
	local humanoid = character:FindFirstChild("Humanoid")
	
	if humanoid then
		humanoid.Health = humanoid.Health - damageAmount
	end
end


script.Parent.Touched:Connect(onTouch)
Editor is loading...
Leave a Comment