Untitled
Anonymous
lua
08/22/2024 12:54 AM
360 B
16
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