Untitled
unknown
lua
a year ago
270 B
8
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