Luau zabij skrypt z cegły

local killBrick = -- index your kill brick here

local function onTouched(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if humanoid ~= nil then
		humanoid:TakeDamage(humanoid.MaxHealth)
    	-- doesn't kill if a ForceField is guarding the Character
	end
end

killBrick.Touched:Connect(onTouched)
tomsterBG