Taller Lua

Catálogo/Lava y kill bricks

ObbyFácil

Lava y kill bricks

Toca una parte taggeada Kill y el humanoid muere. Sirve para lava, pinchos o bordes del mapa.

Valores

Dónde va

  1. 01

    Tag Kill

    Selecciona lava o pinchos y añade el tag Kill.

  2. 02

    Script

    Pega en ServerScriptService.

Explorer → ServerScriptServiceScriptKillParts

KillParts.luaScript
--[[
  Lava y kill bricks · Taller Lua
  Pega este Script en ServerScriptService y pulsa Play.
  Es para TU juego en Roblox Studio — no es un exploit.
  Taggea las partes con: Kill
]]

local CollectionService = game:GetService("CollectionService")

local function hook(part)
	if not part:IsA("BasePart") then
		return
	end
	part.Touched:Connect(function(hit)
		local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")
		if humanoid and humanoid.Health > 0 then
			humanoid.Health = 0
		end
	end)
end

for _, inst in ipairs(CollectionService:GetTagged("Kill")) do
	hook(inst)
end
CollectionService:GetInstanceAddedSignal("Kill"):Connect(hook)