Roblox Studio Tutorial | Scripting a Kill Brick

Roblox Studio Tutorial | Scripting a Kill Brick

Script:
local Debounce = false

script.Parent.Touched:Connect(function(hit)

if hit.Parent:FindFirstChild(“Humanoid”) and Debounce == false then

Debounce = true

hit.Parent.Humanoid:TakeDamage(100)

wait(1)

Debounce = false

end

end)

Thank you for watching!

Post Author: hatefull