-- places a death touch on all green parts, kill blocks.


local waits = .01
local debounce = false

for _, x in pairs(game:GetService("Workspace"):GetDescendants()) do
	if x:IsA("Part") then
		if x.Color == Color3.fromRGB(0,255,0) then
			x.Touched:Connect(function(player)
				pcall(function()
					local plr = game:GetService("Players"):GetPlayerFromCharacter(player.Parent)
					local human = plr.Character.Humanoid
					if human then
						if not debounce then  -- Check that debounce variable is not true
							debounce = true  -- Set variable to true
							plr.Character:WaitForChild("Humanoid").Health = 0
							debounce = false  -- Reset variable to false
						end
					else

					end
				end)
			end)
		end
	end
end
